-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
70 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,81 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine | ||
{ | ||
"name": "${localWorkspaceFolderBasename}", | ||
"containerEnv": { | ||
"HOST_PROJECT_PATH": "${localWorkspaceFolder}", | ||
"name": "${localWorkspaceFolderBasename}", | ||
"containerEnv": { | ||
"HOST_PROJECT_PATH": "${localWorkspaceFolder}", | ||
"PROJECT_NAME": "${localWorkspaceFolderBasename}", | ||
"PROJECT_PATH": "${containerWorkspaceFolder}", | ||
"FLASK_DEBUG": "True" | ||
}, | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "../Dockerfile", | ||
"FLASK_DEBUG": "True", | ||
"ANSIBLE_LOCALHOST_WARNING": "False", | ||
"ANSIBLE_INVENTORY_UNPARSED_WARNING": "False" | ||
}, | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "../Dockerfile", | ||
"target": "devcontainer", | ||
"args": { | ||
"args": { | ||
"PROJECT_NAME": "${localWorkspaceFolderBasename}", | ||
"PROJECT_PATH": "${containerWorkspaceFolder}" | ||
} | ||
}, | ||
"initializeCommand": "touch ${localWorkspaceFolder}/.devcontainer/.env", | ||
} | ||
}, | ||
"initializeCommand": "touch ${localWorkspaceFolder}/.devcontainer/.env", | ||
"updateContentCommand": "LC_ALL=C.UTF-8 ansible-playbook --inventory 127.0.0.1 --connection=local ${containerWorkspaceFolder}/.devcontainer/ansible/setup-container.yml", | ||
"postAttachCommand": "zsh -l", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
"runArgs": ["--name", "${localWorkspaceFolderBasename}_devcontainer", "--hostname", "${localWorkspaceFolderBasename}","--env-file",".devcontainer/.env" ], | ||
"mounts": [ | ||
"source=${localWorkspaceFolderBasename}-home,target=/home/anvil,type=volume", | ||
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/anvil/.ssh,type=bind,consistency=cached", | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" | ||
], | ||
"postAttachCommand": "zsh -l", | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
"runArgs": ["--name", "${localWorkspaceFolderBasename}_devcontainer", "--hostname", "${localWorkspaceFolderBasename}","--env-file",".devcontainer/.env" ], | ||
"mounts": [ | ||
"source=${localWorkspaceFolderBasename}-home,target=/home/anvil,type=volume", | ||
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/anvil/.ssh,type=bind,consistency=cached", | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" | ||
], | ||
|
||
//Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"jeff-hykin.better-dockerfile-syntax", | ||
"ms-azuretools.vscode-docker", | ||
"ms-vsliveshare.vsliveshare", | ||
"mikestead.dotenv", | ||
"EditorConfig.EditorConfig", | ||
"redhat.vscode-yaml", | ||
"redhat.ansible" | ||
], | ||
"settings": { | ||
"files.exclude": { | ||
"**/.dotnet": true, | ||
"**/.zcompdump": true | ||
}, | ||
"dev.containers.copyGitConfig": false, | ||
"dev.containers.gitCredentialHelperConfigLocation": "system", | ||
"editor.tabSize": 2, | ||
"files.readonlyFromPermissions": true, | ||
"terminal.external.windowsExec": "C:\\Program Files\\PowerShell\\7\\pwsh.exe", | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"terminal.integrated.defaultProfile.windows": "pwsh", | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "/bin/bash", | ||
"icon": "terminal-bash", | ||
"args": ["-l"] | ||
}, | ||
"zsh": { | ||
"path": "/bin/zsh", | ||
"icon": "terminal-linux", | ||
"args": ["-l"] | ||
}, | ||
"pwsh": { | ||
"args": ["-nologo"], | ||
"icon": "terminal-powershell", | ||
"path": "pwsh" | ||
}, | ||
}, | ||
"terminal.integrated.tabs.description": "", | ||
"terminal.integrated.tabs.title": "${local}${separator}${cwdFolder}${separator}${process}", | ||
"window.title": "${localWorkspaceFolderBasename}" | ||
} | ||
} | ||
} | ||
//Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"jeff-hykin.better-dockerfile-syntax", | ||
"ms-azuretools.vscode-docker", | ||
"ms-vsliveshare.vsliveshare", | ||
"mikestead.dotenv", | ||
"EditorConfig.EditorConfig", | ||
"redhat.vscode-yaml", | ||
"redhat.ansible" | ||
], | ||
"settings": { | ||
"files.exclude": { | ||
"**/.dotnet": true, | ||
"**/.zcompdump": true | ||
}, | ||
"dev.containers.copyGitConfig": false, | ||
"dev.containers.gitCredentialHelperConfigLocation": "system", | ||
"editor.tabSize": 2, | ||
"files.readonlyFromPermissions": true, | ||
"terminal.external.windowsExec": "C:\\Program Files\\PowerShell\\7\\pwsh.exe", | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"terminal.integrated.defaultProfile.windows": "pwsh", | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "/bin/bash", | ||
"icon": "terminal-bash", | ||
"args": ["-l"] | ||
}, | ||
"zsh": { | ||
"path": "/bin/zsh", | ||
"icon": "terminal-linux", | ||
"args": ["-l"] | ||
}, | ||
"pwsh": { | ||
"args": ["-nologo"], | ||
"icon": "terminal-powershell", | ||
"path": "pwsh" | ||
}, | ||
}, | ||
"terminal.integrated.tabs.description": "", | ||
"terminal.integrated.tabs.title": "${local}${separator}${cwdFolder}${separator}${process}", | ||
"window.title": "${localWorkspaceFolderBasename}" | ||
} | ||
} | ||
} | ||
} |
Empty file.
Empty file.
Empty file.