https://github.com/zwpaper/devcontainer
Dev Env in docker
https://github.com/zwpaper/devcontainer
Last synced: 3 months ago
JSON representation
Dev Env in docker
- Host: GitHub
- URL: https://github.com/zwpaper/devcontainer
- Owner: zwpaper
- License: mit
- Created: 2017-03-29T15:14:00.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T07:18:28.000Z (about 2 years ago)
- Last Synced: 2025-01-22T17:45:34.344Z (over 1 year ago)
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# devdocker
Dev Env in docker
Software installed in docker read only, code and settings(dot files) store as volumes, changable.
- Use a Dockerfile to create docker with software installed
- Use a docker compose to set hostname, expose ports, and add volumes.
## Contents
### fedora
[fedora](https://getfedora.org/)
I use the `rawhide`, It has pretty new software in repo, it is good for create a docker
### mosh
[mosh](https://mosh.org/)
[github](https://github.com/mobile-shell/mosh)
It help me auto connect to my dev env everytime when I got back to internet.
### emacs
[emacs](https://www.gnu.org/software/emacs/)
The world's best editor
### go 1.8
[golang](https://golang.org)
[github](https://github.com/golang/go)
My life support...
# Usage
```
# build the image
docker-compose build
# startup
docker-compose up -d
# connect to it
mosh root@ip --ssh="ssh -p 2413" -p 60020:60030'
```
I alias the mosh command, as I may use it many times:
```
dev='mosh root@ip --ssh="ssh -p 2413" -p 60020:60030'
```