Skip to content

Commit

Permalink
Update devcontainer configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-heyer committed May 16, 2024
1 parent 33c09eb commit 25d3318
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 1,102 deletions.
66 changes: 0 additions & 66 deletions .devcontainer/Dockerfile

This file was deleted.

70 changes: 46 additions & 24 deletions .devcontainer/devcontainer.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,33 +1,55 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "EDB Docs w/ Python 3 and Node.js 14",
"dockerFile": "Dockerfile",
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": true,
"azureDnsAutoDetection": true,
"installDockerBuildx": true,
"installDockerComposeSwitch": true,
"version": "latest",
"dockerDashComposeVersion": "latest"
},
"ghcr.io/devcontainers/features/git-lfs:1": {
"autoPull": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "lts",
"nvmVersion": "latest"
},
"ghcr.io/devcontainers-contrib/features/direnv:1": {
"version": "latest"
},
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {
"plugins": "ssh-agent npm",
"omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions",
"username": "vscode"
},
"ghcr.io/flexwie/devcontainer-features/op:1": {}
},

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/usr/bin/zsh"
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker",
"eamodio.gitlens",
"github.vscode-pull-request-github"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8000],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Use 'postCreateCommand' to run commands after the container is created.
// this configures NPM (without icons unless NPM_TOKEN is configured) and direnv (for root only)
// this installs Gatsby, configures NPM (without icons unless NPM_TOKEN is configured) and direnv
// for icons, will still need to create & edit .env.development
"postCreateCommand": "echo 'eval \"$(direnv hook bash)\"' >> ~/.bashrc && echo 'eval \"$(direnv hook zsh)\"' >> ~/.zshrc && ([ ! -f .envrc ] || direnv allow) && direnv exec . npm run setup",
"postCreateCommand": "npm install -g gatsby-cli && echo 'eval \"$(direnv hook bash)\"' >> ~/.bashrc && echo 'eval \"$(direnv hook zsh)\"' >> ~/.zshrc && ([ ! -f .envrc ] || direnv allow) && direnv exec . npm run setup"

// Configure tool-specific properties.
// "customizations": {},

// docker in docker (https://github.com/microsoft/vscode-dev-containers/blob/master/script-library/docs/docker-in-docker.md)
"runArgs": ["--init", "--privileged"],
"overrideCommand": false

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "node"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
Loading

1 comment on commit 25d3318

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.