-
Notifications
You must be signed in to change notification settings - Fork 497
Closed
Description
What happened?
I've tried to checkout a repository with a devcontainer.json, I hoped to find the project in /workspaces/server, but instead it checks out in /workspaces/content
What did you expect to happen instead?
That it uses /workspaces/server instead of /workspace/content
How can we reproduce the bug? (as minimally and precisely as possible)
See https://github.com/tdegrunt/devpod-container, that reproduces the issue. Basically it involves:
- Use https://github.com/tdegrunt/devpod-container.git as the Git Repo
- Use "devpod-container" as the workspace name
My 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/ruby-rails-postgres
{
"name": "boxture",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": { },
"ghcr.io/rails/devcontainer/features/activestorage": { },
"ghcr.io/rails/devcontainer/features/postgres-client": {
"version": "17"
},
"ghcr.io/devcontainers/features/github-cli:1": { },
"ghcr.io/devcontainers/features/node:1": { },
"ghcr.io/devcontainers/features/git:1": { },
"ghcr.io/rails/devcontainer/features/ruby": {
"version": "3.3.6"
// "version": "${localEnv:RBENV_VERSION}"
},
"ghcr.io/duduribeiro/devcontainer-features/tmux:1": { },
"ghcr.io/devcontainers/features/docker-in-docker:2": { },
"ghcr.io/christophermacgown/devcontainer-features/direnv:1": { }
},
"postCreateCommand": "bash .devcontainer/post-create.sh",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// This can be used to network with other containers or the host.
"forwardPorts": [ 3000, "postgres:5432", "redis:6379" ],
"containerEnv": {
"REDIS_URL": "redis://redis:6379/0",
"RAILS_REDIS_URL": "redis://redis:6379/0",
"CABLE_REDIS_URL": "redis://redis:6379/1",
"VISUAL": "code -w"
},
// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
"Shopify.ruby-lsp",
"monokai.theme-monokai-pro-vscode",
"johnpapa.vscode-peacock",
"borama.ruby-slim",
"BriteSnow.vscode-toggle-quotes",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-dutch",
"amodio.find-related",
"eamodio.gitlens",
"lokalise.i18n-ally",
"sissel.shopify-liquid",
"yzhang.markdown-all-in-one",
"bierner.markdown-mermaid",
"ninoseki.vscode-mogami",
"christian-kohler.path-intellisense",
"humao.rest-client",
"marclipovsky.string-manipulation",
"redhat.vscode-yaml",
"pavlitsky.yard",
"codezombiech.gitignore",
"github.vscode-github-actions",
"nhoizey.gremlins",
"ecmel.vscode-html-css",
"ms-vscode.live-server",
"ms-vsliveshare.vsliveshare",
"standard.vscode-standard",
"Gruntfuggly.todo-tree",
"bradlc.vscode-tailwindcss",
"solomonkinard.bookmark",
"KoichiSasada.vscode-rdbg",
"ariassd.terminal-loader"
]
}
},
"workspaceFolder": "/workspaces/server"
}
Local Environment:
- DevPod Version: v0.6.15
- Operating System: mac
- ARCH of the OS: aarch64
DevPod Provider:
- Local provider: docker
Anything else we need to know?
If you add "ghcr.io/devcontainers/features/sshd:1": { }, as a devcontainer feature it seems devpod can't connect anymore. Sort of obvious, but perhaps something that can be worked with?