This change introduces a Dockerfile to the devcontainer configuration that removes the broken Yarn repository from `/etc/apt/sources.list.d/`. This prevents `apt-get update` from failing due to an expired or missing GPG key for the Yarn repository. Fixes #3487
35 lines
1.2 KiB
JSON
35 lines
1.2 KiB
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/jekyll
|
|
{
|
|
"name": "Jekyll",
|
|
// Using a Dockerfile to fix the broken Yarn repository. See issue #3487.
|
|
"build": {
|
|
"dockerfile": "Dockerfile"
|
|
},
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
"features": {
|
|
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
|
|
"packages": "build-essential,imagemagick,inotify-tools,jupyter-nbconvert,procps,ruby-full,zlib1g-dev"
|
|
},
|
|
"ghcr.io/devcontainers-extra/features/prettier:1.0.2": {}
|
|
},
|
|
|
|
// Optionally: run jekyll serve automatically on container entering using the Docker entrypoint
|
|
"postAttachCommand": "./bin/entry_point.sh",
|
|
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": ["esbenp.prettier-vscode", "sissel.shopify-liquid", "yzhang.markdown-all-in-one"],
|
|
"settings": {
|
|
// use prettier code formatter as default formatter
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"prettier.configPath": ".prettierrc",
|
|
"editor.formatOnSave": true
|
|
}
|
|
}
|
|
},
|
|
|
|
"remoteUser": "vscode"
|
|
}
|