Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
- neovim

Uses [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
```