bitcoin-dev Docker Images
Building and developing Bitcoin in docker containers.
- Docker 1.2+
- An X11 socket (for IDEs)
- cdecker/bitcoin-dev:common an image containing all the build dependencies required to build bitcoin from source.
- cdecker/bitcoin-dev:netbeans an image with netbeans C++ tools (inspired by fgrehm/docker-netbeans).
In order to build bitcoin in cdecker/bitcoin-dev:common
git clone https://github.com/bitcoin/bitcoin.git sudo docker run -ti -v `pwd`/bitcoin:/bitcoin cdecker/bitcoin-dev:common ./autogen.sh ./configure make
Notice: the last steps are executed in the docker container and are part of the bitcoin build process.
To run netbeans on a checked out copy of the bitcoin sources execute
xhost + sudo docker run -ti \ -v `pwd`/bitcoin:/bitcoin \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e DISPLAY=$DISPLAY \ bitcoin-dev:netbeans
Notice that this gives the container access to the host's X server.