forked from codetocloudorg/platform-engineering
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
55 lines (49 loc) · 2.6 KB
/
devcontainer.json
File metadata and controls
55 lines (49 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
// The name of the development container configuration
"name": "Code To Cloud P.E Cloud Codespace",
// Specifies the Dockerfile to use for building the development container
"build": {
"dockerfile": "Dockerfile"
},
// Customizations for Visual Studio Code within the development container
"customizations": {
"vscode": {
// List of VS Code extensions to install automatically in the container
"extensions": [
"ms-azuretools.vscode-docker", // Microsoft Docker extension for managing containers
"HashiCorp.terraform", // Terraform extension for working with IaC
"ms-azuretools.vscode-bicep", // Bicep extension for Azure resource management
"streetsidesoftware.code-spell-checker", // Spell checker for code comments and documentation
"esbenp.prettier-vscode", // Prettier extension for code formatting
"golang.go", // Go extension for Dagger pipelines written in Go
"ms-python.python", // Python extension for Dagger pipelines written in Python
"redhat.vscode-yaml" // YAML extension for working with configuration files
],
// VS Code settings specific to the container environment
"settings": {
"extensions.ignoreRecommendations": true,
"editor.fontSize": 16,
"terminal.integrated.fontSize": 16,
"terminal.integrated.scrollback": 1000
}
}
},
// Mount Docker socket for Docker CLI access
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", // Mount Docker socket for Docker CLI
"source=${env:HOME}/.azure,target=/root/.azure,type=bind" // Mount Azure credentials
],
// Command to run after the container is created and ready
//"postCreateCommand": "make ensure", // Uncomment if needed
// Commands to run after the container starts
"postStartCommand": {
"set-git-config-safe-directory": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"set-git-config-line-endings": "git config --global core.autocrlf input",
"set-git-config-gpg-program": "git config --global --add gpg.program /usr/bin/gpg",
"print-message-of-the-day": "echo \"bash /etc/update-motd.d/00-header\" >> ~/.bashrc"
},
// Commands to run after attaching to the container
"postAttachCommand": {
"print-message-of-the-day": "bash /etc/update-motd.d/00-header"
}
}