Golang Development Container
- automatic recompile
- Support for non-public golang repositories
- optionally runs a local GoDoc server
- Modify Dockerfile & init-script
SITE=<ip/hostname of your CVS> # e.g. github.com
USER=<user/organization> # e.g. fschl
REPO=<repo of your project> # e.g. docker-golang-compiledaemon
- Build the image.
docker build --tag=fschl/goodl-dev .
- Run your dev-container:
docker run -it \
-v "$(shell pwd)":/go/src/$SITE/$USER/$REPO \
-v "$(shell pwd)/../<non-public dependency>":/go/src/$SITE/$USER/$DEPENDENCY_REPO \
-p 4000:4000 \
-p 6060:6060 \
fschl/goodl-dev
- add automatic running of tests
- maybe make dependency management more comfortable