generated from NHSDigital/nhs-notify-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from NHSDigital/adding-dev-container
added dev container to nhs-notify repo and auto launch tasks.
- Loading branch information
Showing
9 changed files
with
151 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 |
---|---|---|
@@ -0,0 +1,104 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll | ||
{ | ||
"name": "Jekyll", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye", | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Uncomment the next line to run commands after the container is created. | ||
"postCreateCommand": "zsh scripts/devcontainer/postcreatecommand.sh", | ||
"postStartCommand": "zsh scripts/devcontainer/poststartcommand.sh", | ||
"forwardPorts": [4000], | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": [ | ||
"README.md", | ||
".github/SECURITY.md", | ||
"docs/index.md" | ||
] | ||
}, | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"files.insertFinalNewline": true, | ||
"[makefile]": { | ||
"editor.insertSpaces": false, | ||
"editor.detectIndentation": false | ||
} | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"alefragnani.bookmarks", | ||
"davidanson.vscode-markdownlint", | ||
"dbaeumer.vscode-eslint", | ||
"donjayamanne.githistory", | ||
"eamodio.gitlens", | ||
"editorconfig.editorconfig", | ||
"esbenp.prettier-vscode", | ||
"github.codespaces", | ||
"github.github-vscode-theme", | ||
"github.remotehub", | ||
"github.vscode-github-actions", | ||
"github.vscode-pull-request-github", | ||
"hediet.vscode-drawio", | ||
"johnpapa.vscode-peacock", | ||
"mhutchie.git-graph", | ||
"ms-azuretools.vscode-docker", | ||
"ms-vscode-remote.remote-containers", | ||
"ms-vscode-remote.remote-wsl", | ||
"ms-vscode.hexeditor", | ||
"ms-vscode.live-server", | ||
"ms-vsliveshare.vsliveshare", | ||
"redhat.vscode-xml", | ||
"streetsidesoftware.code-spell-checker-british-english", | ||
"tamasfe.even-better-toml", | ||
"tomoki1207.pdf", | ||
"vscode-icons-team.vscode-icons", | ||
"vstirbu.vscode-mermaid-preview", | ||
"wayou.vscode-todo-highlight", | ||
"yzane.markdown-pdf", | ||
"yzhang.dictionary-completion", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/aws-cli:1": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": { | ||
"moby": true, | ||
"azureDnsAutoDetection": true, | ||
"installDockerBuildx": true, | ||
"installDockerComposeSwitch": true, | ||
"version": "latest", | ||
"dockerDashComposeVersion": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"nodeGypDependencies": true, | ||
"version": "lts", | ||
"nvmVersion": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/github-cli:1": { | ||
"installDirectlyFromGitHubRelease": true, | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": true, | ||
"configureZshAsDefaultShell": true, | ||
"installOhMyZsh": true, | ||
"installOhMyZshConfig": true, | ||
"upgradePackages": true, | ||
"username": "automatic", | ||
"userUid": "automatic", | ||
"userGid": "automatic" | ||
} | ||
} | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 +1,19 @@ | ||
|
||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "jekyll", | ||
"options": { | ||
"cwd": "${workspaceFolder}/docs/" | ||
}, | ||
"command": "make debug", | ||
"type": "shell" | ||
} | ||
{ | ||
"label": "Start Make Config", | ||
"type": "shell", | ||
"command": "make config", | ||
"group": "none", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "new" | ||
}, | ||
"runOptions": { | ||
"runOn": "folderOpen", | ||
} | ||
} | ||
] | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "jekyll", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"command": "make debug", | ||
"type": "shell" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
rm -Rf ~/.asdf | ||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf; | ||
chmod +x ~/.asdf/asdf.sh; | ||
echo '. $HOME/.asdf/asdf.sh' >> ~/.zshrc | ||
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc | ||
|
||
source ~/.zshrc | ||
|
||
echo 'asdf setup complete' | ||
|
||
make config | ||
|
||
jekyll --version && cd docs && bundle install | ||
|
||
echo 'jekyll setup complete' |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
source ~/.zshrc | ||
make config |