-
Notifications
You must be signed in to change notification settings - Fork 15
Docker Network
1. Get convenience script from the official docker site and run it with sudo priveleges.
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh2. Add your user to the 'docker' group in order to run as non-root user.
$ sudo usermod -aG docker your-user3. Log out and re-log in for the step above to take effect.
- Note: If you are having trouble with the above steps, please visit https://docs.docker.com/engine/install/ubuntu/ for alternative methods
1. Upgrade apt sources.
$ sudo apt-get upgrade2. Download Docker Compose v1.24.0 (You can install a newer version but the behaviour isn't fully tested)
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose3. Change mode of the binary to executable.
$ sudo chmod +x /usr/local/bin/docker-compose- Note: If you are having trouble installing docker-compose please refer to the official documentation: https://docs.docker.com/compose/install/
1. Install pip for python 2.7XX
$ sudo apt install python-pip2. Install python yaml package
$ pip install pyyaml1. Install git if you haven't already.
$ sudo apt install git2. Create a new directory to store your source code.
$ mkdir ~/go3. Clone Protocol repository.
$ git clone https://github.com/Oneledger/protocol.git4. Create directories to map as your shared volumes.
$ mkdir -p -- ~/oldata/docker ~/oldata/docker/bin1. Navigate to default folder in the protocol source code.
cd ~/go/protocol/DOCKER-network/default2. Build docker image.
docker build -t olprotocol .© OneLedger 2018-2020 Contact Information