devcontainers / devcontainers/cli
Dockerfile for runing devcontainer/cli
- Lenguaje dominante
- TypeScript
- Estrellas
- 3k
- Forks
- 457
- Merge medio
- 13 h 17 min
- PR fusionados (30 d)
- 6
Descripción
I think it might be useful to share :
```dockerfile
FROM mcr.microsoft.com/devcontainers/base:0-alpine-3.18
RUN apk add --no-cache \
nodejs \
python3 \
npm \
make \
g++ \
docker-cli \
docker-cli-buildx \
docker-cli-compose \
;
RUN npm i -g @devcontainers/cli
```
And then Build the Dockerfile:
```shell
docker build -t devcontainer-cli .
```
Running the CLI with mounting the Host docker daemon + mounting the workspace :
```shell
docker run -it --rm -v :/workspaces -v /var/run/docker.sock:/var/run/docker.sock devcontainer-cli /bin/ash
```
I Referenced @chrmarti [post](https://github.com/devcontainers/cli/issues/236#issuecomment-1347932178) which was an answer by him regarding some issue.
But i think it's worth to share this Dockerfile ( I Can submit a PR as well ) . of course one can imagine multiple usages and pros:
1. In CI Pipeline where the host of the worker e.g Jenkins will run devcontainer/cli from within this Container based on above image.
2. One that want to test devcontainer/cli without installing things on the machine
Guía de contribución
Línea de trabajo
Comienza con el Dockerfile propuesto y sus comandos `docker build` y `docker run`, y después inspecciona el repositorio en busca de documentación existente sobre contenedores o para colaboradores para determinar dónde debe incluirse esto. Se considera terminado cuando el Dockerfile y las instrucciones de uso están incluidos en un lugar documentado adecuado y el flujo de trabajo descrito de devcontainers CLI es reproducible.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, nodejs, python
- Área
- devops, tooling
- Tipo de issue
- Documentación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100