Advantages:
- usage of docker-compose allows folder
iroha
to be mounted into container. This allows you to change code in host machine, at the same time changing it inside container(s) - very easy to start development without dependencies conflicts
Note: permissions and ownership will be transfered 1-to-1 from host to container and backwards. It means, that file owned by user:user
(id=1000) will be owned inside container by some other user (probably the same) with id=1000.
It means, that file created inside container by root
will be owned by root
on the host!
First of all, you should clone iroha
repository with all submodules to your host machine:
git clone --recursive https://github.com/hyperledger/iroha
cd iroha
Then, build iroha-dev
image using latest docker-compose 1:
docker-compose build
Run container:
docker-compose run iroha-dev bash
You got shell access into container with all dependencies for iroha
. To build iroha
, go to $IROHA_HOME
folder and run build.sh
2:
cd $IROHA_HOME
./build.sh
If you want to remove container for some reason, use 1:
docker-compose down
TBD