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

Improve devcontainer to replicate vscode behavior #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

inm-certi
Copy link

Hello,

First of all, thank you for this script.

I found some issues using the script (image hash, workspace location and .devcontainer.json file) so I updated the script to suppport these.

Would you like to review/merge it?

Best regards,
Ian Maciel

inm-certi added 3 commits July 5, 2022 18:01
Devcontainer configuration might be saved on .devcontainer folder or
.devcontainer.json.

This commit add the missing support for .devcontainer.json file.
vscode mounts the entire project (where .git is located) on
/workspace. This commit changes the script behavior to find the .git
folder, mount this bind and use the current workspace inside the
docker just like vscode.
The output of a docker build command is not an image hash and this
were causing error on docker run command.

This commit parses the build command output to extract only the hash
and use later to run the docker.
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

Successfully merging this pull request may close these issues.

1 participant