You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.73.1
OS Version: CentOS 7
Steps to Reproduce:
Execute "Create Dev Container" command
Select Jekyll
The command will create a devcontainer.json with the following content:
// 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:0-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": [
// Jekyll server
4000,
// Live reload server
35729
],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sh .devcontainer/post-create.sh"
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
and a post-create.sh:
#!/bin/sh
# Install the version of Bundler.
if [ -f Gemfile.lock ] && grep "BUNDLED WITH" Gemfile.lock > /dev/null; then
cat Gemfile.lock | tail -n 2 | grep -C2 "BUNDLED WITH" | tail -n 1 | xargs gem install bundler -v
fi
# If there's a Gemfile, then run `bundle install`
# It's assumed that the Gemfile will install Jekyll too
if [ -f Gemfile ]; then
bundle install
fi
Newer versions of the Jekyll dev container already contain the settings for postCreateCommand (and in port forwarding) - the entry in the JSON and the script. The generated setup results in the bundler commands being executed twice.
The text was updated successfully, but these errors were encountered:
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
The command will create a
devcontainer.json
with the following content:and a
post-create.sh
:Newer versions of the Jekyll dev container already contain the settings for
postCreateCommand
(and in port forwarding) - the entry in the JSON and the script. The generated setup results in thebundler
commands being executed twice.The text was updated successfully, but these errors were encountered: