Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoshi-roberts/dev-container
My development environment containerized with Docker.
https://github.com/yoshi-roberts/dev-container
developer-environment docker linux ubuntu
Last synced: about 1 month ago
JSON representation
My development environment containerized with Docker.
- Host: GitHub
- URL: https://github.com/yoshi-roberts/dev-container
- Owner: yoshi-roberts
- Created: 2023-12-10T02:44:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T20:52:32.000Z (5 months ago)
- Last Synced: 2024-11-06T21:43:15.106Z (about 2 months ago)
- Topics: developer-environment, docker, linux, ubuntu
- Language: Dockerfile
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### About
My development environment inside a docker container.
Useful for not cluttering the host system with project dependencies and tools.
> Note: This will not work on Windows due to the way volumes and user permissions are handled.### Included
These are some of the included tools:
- go
- gcc
- lua
- git
- npm
- node
- java
- make
- cmake
- python
- neovimUses [zsh](https://en.wikipedia.org/wiki/Z_shell).
### Using
#### Build
```zsh
docker build -t dev:latest \
--build-arg USER_ID=$(id -u) \
--build-arg GROUP_ID=$(id -g) \
--network=host .
```#### Initial Start
Replace [DIR] with the directory you want to mount.
```zsh
docker run \
--name=dev \
-p 8000:8000 \
--mount type=bind,source=[DIR],target=/home/dev/proj \
-it dev:latest
```#### Starting
Use this command to start the container after the initial start.
```zsh
docker start -i dev
```