|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu |
3 | 3 | { |
4 | | - "name": "Ubuntu", |
5 | | - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
6 | | - "build": { |
7 | | - "dockerfile": "Dockerfile", |
8 | | - "context": "..", |
9 | | - "args": { |
10 | | - "DOCKER_GID": "${env:DOCKER_GID:}" |
11 | | - } |
12 | | - }, |
13 | | - "mounts": [ |
14 | | - "source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind", |
15 | | - "source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind", |
16 | | - "source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind", |
17 | | - "source=${env:HOME}${env:USERPROFILE}/.npmrc,target=/home/vscode/.npmrc,type=bind" |
18 | | - ], |
19 | | - "containerUser": "vscode", |
20 | | - "remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" }, |
21 | | - "postAttachCommand": "docker build -f /workspaces/eps-common-workflows/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . && pre-commit install --install-hooks -f", |
22 | | - "features": { |
23 | | - "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { |
24 | | - "version": "latest", |
25 | | - "moby": "true", |
26 | | - "installDockerBuildx": "true" |
27 | | - } |
28 | | - }, |
29 | | - "customizations": { |
30 | | - "vscode": { |
31 | | - "extensions": [ |
32 | | - "AmazonWebServices.aws-toolkit-vscode", |
33 | | - "redhat.vscode-yaml", |
34 | | - "eamodio.gitlens", |
35 | | - "github.vscode-pull-request-github", |
36 | | - "streetsidesoftware.code-spell-checker", |
37 | | - "timonwong.shellcheck", |
38 | | - "github.vscode-github-actions" |
39 | | - ], |
40 | | - "settings": { |
41 | | - "cSpell.words": ["fhir", "Formik", "pino", "serialisation"] |
42 | | - } |
| 4 | + "name": "Ubuntu", |
| 5 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | + "build": { |
| 7 | + "dockerfile": "Dockerfile", |
| 8 | + "context": "..", |
| 9 | + "args": { |
| 10 | + "DOCKER_GID": "${env:DOCKER_GID:}" |
| 11 | + } |
| 12 | + }, |
| 13 | + "mounts": [ |
| 14 | + "source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind", |
| 15 | + "source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind", |
| 16 | + "source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind", |
| 17 | + "source=${env:HOME}${env:USERPROFILE}/.npmrc,target=/home/vscode/.npmrc,type=bind" |
| 18 | + ], |
| 19 | + "containerUser": "vscode", |
| 20 | + "remoteEnv": { |
| 21 | + "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" |
| 22 | + }, |
| 23 | + "postAttachCommand": "docker build -f /workspaces/eps-common-workflows/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . && pre-commit install --install-hooks -f", |
| 24 | + "features": { |
| 25 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 26 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { |
| 27 | + "version": "latest", |
| 28 | + "moby": "true", |
| 29 | + "installDockerBuildx": "true" |
| 30 | + } |
| 31 | + }, |
| 32 | + "customizations": { |
| 33 | + "vscode": { |
| 34 | + "extensions": [ |
| 35 | + "AmazonWebServices.aws-toolkit-vscode", |
| 36 | + "redhat.vscode-yaml", |
| 37 | + "eamodio.gitlens", |
| 38 | + "github.vscode-pull-request-github", |
| 39 | + "streetsidesoftware.code-spell-checker", |
| 40 | + "timonwong.shellcheck", |
| 41 | + "github.vscode-github-actions" |
| 42 | + ], |
| 43 | + "settings": { |
| 44 | + "cSpell.words": [ |
| 45 | + "fhir", |
| 46 | + "Formik", |
| 47 | + "pino", |
| 48 | + "serialisation" |
| 49 | + ] |
43 | 50 | } |
44 | 51 | } |
45 | 52 | } |
| 53 | +} |
0 commit comments