These steps were run to set up the local network
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo bash -c "echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get -y install docker-engine
sudo docker run hello-world
sudo docker run -it ubuntu bash
This takes a while and downloads a lot of images
sudo docker pull mist/mistio
sudo docker pull quay.io/sameersbn/apt-cacher-ng:latest
sudo docker pull f99aq8ove/gitbucket
TODO: yum caching config, tune expiry dates
mkdir -p ~/manage/volumes/apt-cacher-ng
Once the image is running, you can place the following file in /etc/apt/apt.conf.d/10proxy
Acquire::http { Proxy "http://localhost:3142"; };
Acquire::https { Proxy "DIRECT"; };
Once the image is running, login with username root, password root
mkdir ~/manage/volumes/gitbucket-repos
In /etc/default/docker
:
DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock"
Create and populate the storage volume
if [[ ! -d ~/manage/volumes/mistio/src ]]; then
mkdir ~/manage/volumes/mistio
cid=$(sudo docker run -d mist/mistio)
sleep 2m # Wait until UI is up to ensure mistio is up-to-date
sudo docker export $cid | tar xv home/mist
mv home/mist/mist.io/* ~/manage/volumes/mistio/
rm -rf home/mist/mist.io home/mist && rmdir home
sudo docker stop $cid
sudo docker rm $cid
fi