Docker 17.09 and up is required for this Dockerfile.
Docker configuration files to create and spin up Docker images for a few Corda Nodes (banka/bankb/bankc), Networkmap, Notary and one CordApp.
The docker image is based on Alpine/OpenJDK (https://hub.docker.com/_/openjdk/)
- Check Dockerfile and docker-compose.yml (e.g. to adjust version or exposed ports)
docker-compose build
- to build base Corda images for Corda Node/Networkmap/Notarydocker-compose up
- to spin up all Corda containers (Nodes + Networkmap + Notary)docker exec -it banka /bin/sh
- to log in to one of the running Node containersdocker exec -it networkmap /bin/sh
- to log in to the running Networkmap container
At the moment java options are put into corda_docker.env. All the others are in Dockerfile/docker_compose.yml
If you need to modify Corda parameters (node or/and networkmap) change their configuration file(s) and restart container:
- modify
files/corda-banka.conf
- restart Corda node:
docker restart banka
- modify
files/corda-networkmap.conf
- restart Corda networkmap:
docker restart networkmap
In your web browser open:
http://localhost:10024
(for banka)http://localhost:10034
(for bankb)
etc
If you get the following message: <containername> exited with code 137
it's likely because the Linux OOM killer is getting triggered inside of running Docker instance.
Please adjust memory size for Docker environment:
On MacOS: https://docs.docker.com/docker-for-mac/#memory
On Windows: https://docs.docker.com/docker-for-windows/#advanced
- add more to README.md (how to customise the build, potential manual spin up without docker compose)