boriswilhelms / devcontainer Goto Github PK
View Code? Open in Web Editor NEWRun and use devcontainer outside of Visual Studio Code
Home Page: https://blog.wille-zone.de/post/run-devcontainer-outside-of-visual-studio-code/
License: MIT License
Run and use devcontainer outside of Visual Studio Code
Home Page: https://blog.wille-zone.de/post/run-devcontainer-outside-of-visual-studio-code/
License: MIT License
Hello!
This is not a bug, just got very curious. What do you use devcontainers for without an IDE? When and in what cases is it necessary?
Thanks in advance.
Hi thanks for a great tool.
I'm taking the Dockerfile
and devcontainer.json
from here.
The ARG
for setting the ${VARIANT}
contains a dash which seems to create a problem with the passing of command-line args in this script.
Here is the error I get:
docker: invalid reference format: repository name must be lowercase.
See 'docker run --help'.
and the debug output is:
Using workspace -v
[DEBUG] CONFIG_DIR: ./.devcontainer
[DEBUG] CONFIG_FILE: devcontainer.json
[DEBUG] CONFIG:
{
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "16-bullseye" }
},
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint"
]
}
},
"remoteUser": "node"
}
[DEBUG] DOCKER_FILE: /home/amo_chumber/scratch/devcontainer-test/.devcontainer/Dockerfile
[DEBUG] REMOTE_USER: node
[DEBUG] ARGS: --build-arg VARIANT="16-bullseye"
[DEBUG] SHELL: null
[DEBUG] PORTS:
[DEBUG] ENVS:
[DEBUG] WORK_DIR: /workspace
[DEBUG] MOUNT: --mount type=bind,source=-v,target=/workspace
Building and starting container
invalid reference format
[DEBUG] DOCKER_IMAGE_HASH: Sending build context to Docker daemon 4.096kB
Step 1/2 : ARG VARIANT=16-bullseye
Step 2/2 : FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
docker: invalid reference format: repository name must be lowercase.
See 'docker run --help'.
I suspect this is a bash-ism with some quoting...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.