-
Notifications
You must be signed in to change notification settings - Fork 541
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I'm encountering an issue where my container fails to build when I add the Ruby feature, but builds successfully when I remove it. I've tried setting the version to the latest and even omitting the version property, but the issue persists. Based on my troubleshooting, I suspect that the problem may be related to the Ruby feature itself.
devcontainer.json
{
"name": "Node.js & JavaScript",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/desktop-lite:1": {
"version": "latest",
"noVncVersion": "1.2.0",
"webPort": "6080",
"vncPort": "5901"
},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": true,
"installDockerBuildx": true,
"version": "latest",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/ruby:1": {
"version": "3.0.0"
},
"ghcr.io/devcontainers/features/git:1": {
"ppa": true,
"version": "os-provided"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"installDirectlyFromGitHubRelease": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/python:1": {
"installTools": true,
"version": "latest"
}
},
"forwardPorts": [
3000,
6080
],
"postCreateCommand": "bash .devcontainer/post-run.sh",
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"styled-components.vscode-styled-components",
"dsznajder.es7-react-js-snippets"
]
}
}
}Dockerfile:
ARG VARIANT=0-18-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
RUN apt-get update && export DEBIAN_FRONTEND=noninteractiveBuild log:
[2023-03-19T00:51:12.258Z]
#0 84.55 /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/request_set.rb:271:in `each'
#0 84.55 /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/request_set.rb:271:in `install_into'
[2023-03-19T00:51:12.258Z] #0 84.55 /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/request_set.rb:147:in `install'
#0 84.55 /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/dependency_installer.rb:252:in `install'
[2023-03-19T00:51:12.258Z] #0 84.55 mkrf_conf.rb:31:in `rescue in <main>'
#0 84.55 mkrf_conf.rb:24:in `<main>'
#0 84.55
[2023-03-19T00:51:12.258Z]
#0 84.55 rake failed, exit code 1
#0 84.55
[2023-03-19T00:51:12.258Z]
#0 84.55 Gem files will remain installed in /usr/local/rvm/gems/ruby-3.0.0/gems/ruby-debug-ide-0.7.3 for inspection.
#0 84.55 Results logged to /usr/local/rvm/gems/ruby-3.0.0/extensions/x86_64-linux/3.0.0/ruby-debug-ide-0.7.3/gem_make.out
[2023-03-19T00:51:12.258Z]
#0 84.55 1 gem installed
#0 84.56 ERROR: Feature "Ruby (via rvm)" (ghcr.io/devcontainers/features/ruby) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/ruby for help troubleshooting this error.
[2023-03-19T00:51:12.258Z]
------
[2023-03-19T00:51:12.262Z] Dockerfile-with-features:89
--------------------
88 | ENV PATH=/usr/local/rvm/gems/default/bin:/usr/local/rvm/gems/default@global/bin:/usr/local/rvm/rubies/default/bin:/usr/local/share/rbenv/bin:${PATH}
89 | >>> RUN --mount=type=bind,from=dev_containers_feature_content_source,source=ruby_4,target=/tmp/build-features-src/ruby_4 \
90 | >>> cp -ar /tmp/build-features-src/ruby_4 /tmp/build-features/ \
91 | >>> && chmod -R 0700 /tmp/build-features/ruby_4 \
92 | >>> && cd /tmp/build-features/ruby_4 \
93 | >>> && chmod +x ./devcontainer-features-install.sh \
94 | >>> && ./devcontainer-features-install.sh \
95 | >>> && rm -rf /tmp/build-features/ruby_4
96 |
--------------------
ERROR: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/ruby_4 /tmp/build-features/ && chmod -R 0700 /tmp/build-features/ruby_4 && cd /tmp/build-features/ruby_4 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/build-features/ruby_4" did not complete successfully: exit code: 1
[2023-03-19T00:51:12.468Z] Stop (420020 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-user123/container-features/0.31.0-1679186643845/Dockerfile-with-features -t vsc-project123-ecd8063cb977f3f6661ae68297336f23 --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-user123/container-features/0.31.0-1679186643845 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /home/user123/data/box/user123/databox/develop/project123/project-next/.devcontainer
[2023-03-19T00:51:12.477Z] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-user123/container-features/0.31.0-1679186643845/Dockerfile-with-features -t vsc-project123-ecd8063cb977f3f6661ae68297336f23 --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-user123/container-features/0.31.0-1679186643845 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /home/user123/data/box/user123/databox/develop/project123/project-next/.devcontainer
[2023-03-19T00:51:12.478Z] at hie (/home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js:1931:1698)
[2023-03-19T00:51:12.478Z] at runMicrotasks (<anonymous>)
[2023-03-19T00:51:12.478Z] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-03-19T00:51:12.478Z] at async FF (/home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js:1930:3910)
[2023-03-19T00:51:12.478Z] at async S7 (/home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js:1930:2839)
[2023-03-19T00:51:12.478Z] at async xie (/home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js:1945:2625)
[2023-03-19T00:51:12.478Z] at async Wf (/home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js:1945:3750)
[2023-03-19T00:51:12.479Z] at async noe (/home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js:2069:17325)
[2023-03-19T00:51:12.479Z] at async roe (/home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js:2069:17066)
[2023-03-19T00:51:12.494Z] Stop (431000 ms): Run in Host: /home/user123/.vscode-remote-containers/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/node /home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-12a74427-1850-4e88-b04a-40eb6d6ae2b81679186626773 --workspace-folder /home/user123/data/box/user123/databox/develop/project123/project-next --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/user123/data/box/user123/databox/develop/project123/project-next --id-label dev
container.config_file=/home/user123/data/box/user123/databox/develop/project123/project-next/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/user123/data/box/user123/databox/develop/project123/project-next/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-03-19T00:51:12.495Z] Exit code 1
[2023-03-19T00:51:12.496Z] Command failed: /home/user123/.vscode-remote-containers/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/node /home/user123/.vscode-remote-containers/dist/dev-containers-cli-0.282.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-12a74427-1850-4e88-b04a-40eb6d6ae2b81679186626773 --workspace-folder /home/user123/data/box/user123/databox/develop/project123/project-next --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/user123/data/box/user123/databox/develop/project123/project-next --id-labeldevcontainer.config_file=/home/user123/data/box/user123/databox/develop/project123/project-next/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/user123/data/box/user123/databox/develop/project123/project-next/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-03-19T00:51:12.496Z] Exit code 1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working