|
1 | | -// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | | -// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu |
3 | 1 | { |
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 | | - }, |
11 | | - "mounts": [ |
12 | | - "source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind", |
13 | | - "source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind", |
14 | | - "source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind" |
15 | | - ], |
16 | | - "customizations": { |
17 | | - "vscode": { |
18 | | - "extensions": [ |
19 | | - "AmazonWebServices.aws-toolkit-vscode", |
20 | | - "redhat.vscode-yaml", |
21 | | - "ms-python.python", |
22 | | - "ms-python.flake8", |
23 | | - "eamodio.gitlens", |
24 | | - "github.vscode-pull-request-github", |
25 | | - "orta.vscode-jest", |
26 | | - "42crunch.vscode-openapi", |
27 | | - "mermade.openapi-lint", |
28 | | - "rvest.vs-code-prettier-eslint", |
29 | | - "christian-kohler.npm-intellisense", |
30 | | - "dbaeumer.vscode-eslint", |
31 | | - "lfm.vscode-makefile-term", |
32 | | - "GrapeCity.gc-excelviewer", |
33 | | - "streetsidesoftware.code-spell-checker", |
34 | | - "timonwong.shellcheck", |
35 | | - "github.vscode-github-actions", |
36 | | - "vscjava.vscode-java-pack" |
37 | | - ], |
38 | | - "settings": { |
39 | | - "python.defaultInterpreterPath": "/workspaces/eps-FHIR-validator-lambda/.venv/bin/python", |
40 | | - "python.analysis.autoSearchPaths": true, |
41 | | - "python.analysis.extraPaths": [], |
42 | | - "python.testing.unittestEnabled": false, |
43 | | - "python.testing.pytestEnabled": true, |
44 | | - "python.linting.pylintEnabled": false, |
45 | | - "python.linting.flake8Enabled": true, |
46 | | - "python.linting.enabled": true, // required to format on save |
47 | | - "editor.defaultFormatter": "rvest.vs-code-prettier-eslint", |
48 | | - "editor.formatOnPaste": false, // required |
49 | | - "editor.formatOnType": false, // required |
50 | | - "editor.formatOnSave": true, // optional |
51 | | - "editor.formatOnSaveMode": "file", |
52 | | - "cSpell.words": ["fhir", "Formik", "pino", "serialisation"] |
53 | | - } |
| 2 | + "name": "eps-validator-lambda", |
| 3 | + "build": { |
| 4 | + "dockerfile": "Dockerfile", |
| 5 | + "context": "..", |
| 6 | + "args": { |
| 7 | + "DOCKER_GID": "${env:DOCKER_GID:}", |
| 8 | + "IMAGE_NAME": "node_24_python_3_14_java_24", |
| 9 | + "IMAGE_VERSION": "v1.1.3", |
| 10 | + "USER_UID": "${localEnv:USER_ID:}", |
| 11 | + "USER_GID": "${localEnv:GROUP_ID:}" |
| 12 | + } |
| 13 | + }, |
| 14 | + "mounts": [ |
| 15 | + "source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind", |
| 16 | + "source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind", |
| 17 | + "source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind" |
| 18 | + ], |
| 19 | + "customizations": { |
| 20 | + "vscode": { |
| 21 | + "extensions": [ |
| 22 | + "AmazonWebServices.aws-toolkit-vscode", |
| 23 | + "redhat.vscode-yaml", |
| 24 | + "ms-python.python", |
| 25 | + "ms-python.flake8", |
| 26 | + "eamodio.gitlens", |
| 27 | + "github.vscode-pull-request-github", |
| 28 | + "orta.vscode-jest", |
| 29 | + "42crunch.vscode-openapi", |
| 30 | + "mermade.openapi-lint", |
| 31 | + "rvest.vs-code-prettier-eslint", |
| 32 | + "christian-kohler.npm-intellisense", |
| 33 | + "dbaeumer.vscode-eslint", |
| 34 | + "lfm.vscode-makefile-term", |
| 35 | + "GrapeCity.gc-excelviewer", |
| 36 | + "streetsidesoftware.code-spell-checker", |
| 37 | + "timonwong.shellcheck", |
| 38 | + "github.vscode-github-actions", |
| 39 | + "vscjava.vscode-java-pack" |
| 40 | + ], |
| 41 | + "settings": { |
| 42 | + "python.defaultInterpreterPath": "/workspaces/eps-FHIR-validator-lambda/.venv/bin/python", |
| 43 | + "python.analysis.autoSearchPaths": true, |
| 44 | + "python.analysis.extraPaths": [], |
| 45 | + "python.testing.unittestEnabled": false, |
| 46 | + "python.testing.pytestEnabled": true, |
| 47 | + "python.linting.pylintEnabled": false, |
| 48 | + "python.linting.flake8Enabled": true, |
| 49 | + "python.linting.enabled": true, |
| 50 | + "editor.defaultFormatter": "rvest.vs-code-prettier-eslint", |
| 51 | + "editor.formatOnPaste": false, |
| 52 | + "editor.formatOnType": false, |
| 53 | + "editor.formatOnSave": true, |
| 54 | + "editor.formatOnSaveMode": "file", |
| 55 | + "cSpell.words": [ |
| 56 | + "fhir", |
| 57 | + "Formik", |
| 58 | + "pino", |
| 59 | + "serialisation" |
| 60 | + ] |
54 | 61 | } |
55 | | - }, |
56 | | - "remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" }, |
57 | | - "postAttachCommand": "docker build -f https://raw.githubusercontent.com/NHSDigital/eps-workflow-quality-checks/refs/tags/v4.0.4/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . && poetry run pre-commit install --install-hooks -f", |
58 | | - "features": { |
59 | | - "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { |
60 | | - "version": "latest", |
61 | | - "moby": "true", |
62 | | - "installDockerBuildx": "true" |
63 | | - }, |
64 | | - "ghcr.io/devcontainers/features/github-cli:1": {} |
65 | | - } |
| 62 | + } |
| 63 | + }, |
| 64 | + "remoteEnv": { |
| 65 | + "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" |
| 66 | + }, |
| 67 | + "postAttachCommand": "git-secrets --register-aws; git-secrets --add-provider -- cat /usr/share/secrets-scanner/nhsd-rules-deny.txt", |
| 68 | + "features": { |
66 | 69 | } |
67 | | - |
| 70 | +} |
0 commit comments