Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with devcontainer.json #40

Open
trukhinyuri opened this issue Mar 15, 2024 · 2 comments
Open

Problem with devcontainer.json #40

trukhinyuri opened this issue Mar 15, 2024 · 2 comments
Assignees

Comments

@trukhinyuri
Copy link

devcontainer.json does not build in JetBrains IDE 2024.1 and VSCode.

JetBrains IDE Welcome screen -> DevContainers -> New DevContainer (from VCS Project, Docker must be installed.) Insert the git@ link of the repository with devcontainer.json. -> "Build container and Continue"
image
image

@madalinignisca madalinignisca self-assigned this Aug 12, 2024
@madalinignisca
Copy link
Owner

Hi @trukhinyuri

Sorry for noticing so late the issue.

I checked with lastest builds in VSCode and worked OK.

PHPStorm is still in tests, as in the spring they were forcing with root to install different packages and some binaries and messed the dev container. They make many assumptions on how a devcontainer should work, and mostly looks like against the developer expectations.

I'll look further on PHPStorm, although I did not bother with it too much last months to use it.

If you modified .devcontainer.json or docker-compose.yaml, would you share the modifications?

@madalinignisca
Copy link
Owner

madalinignisca commented Aug 12, 2024

Back with PHPStorm information.

It starts, and looks to work.

But there is one thing to be aware:

  1. Create a directory in which you'd put your devcontainer and docker compose file.
  2. Open this directory in PHPStorm.
  3. Now right clicking on the devcontainers file, select the 'Create Dev Container and Clone Sources'

This will create a volume with sources and mount it in /workspace, giving the best performance when using Windows and Macos.

On Linux, Create Dev Container and Mount will be fine, no performance penality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants