This image has the necessary tools to build, test, edit, lint and version the Skycoin source code. It comes with the Vim editor installed, along with some plugins to ease go development and version control with git.
Plase note that there is also a sister image with "docker in docker" feature on it.
$ mkdir src
$ docker run --rm \
-v src:/go/src skycoin/skycoindev-cli \
go get github.com/skycoin/skycoin
$ sudo chown -R `whoami` src
This downloads the skycoin source to src/skycoin/skycoin and changes the owner to your user. This is necessary, because all processes inside the container run as root and the files created by it are therefore owned by root.
If you already have a Go development environment installed, you just need to mount the src directory from your $GOPATH in the /go/src volume of the container.
You can run commands by just passing the them to the image. Everything is run in a container and deleted when finished.
$ docker run --rm \
-v src:/go/src skycoin/skycoindev-cli \
sh -c "cd skycoin; make test"
$ docker run --rm \
-v src:/go/src skycoin/skycoindev-cli \
sh -c "cd skycoin; make lint"
$ docker run --rm \
-v src:/go/src skycoin/skycoindev-cli \
vim
- dep
- tig
- swig
- Ale
- tig-explorer
Docker Cloud is configured to build images from develop
branch on every push.
The same process is triggered for all feature branches matching the pattern
/^([^_]+)_t([0-9]+)_.*docker.*/
. The tag generated for those images will be of the form
feature-{\1}-{\2}
.