Giter Site home page Giter Site logo

corda-docker's Introduction

Corda on Docker is now avaliable from main Corda repo. Please take a look at: https://github.com/corda/corda/tree/master/docker

Old documentation:

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/)

Usage (automatic way - using docker compose)

  • 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/Notary
  • docker-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 containers
  • docker exec -it networkmap /bin/sh - to log in to the running Networkmap container

Corda configuration

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:

For Corda node (i.e. banka):

  • modify files/corda-banka.conf
  • restart Corda node: docker restart banka

For Networkmap node:

  • modify files/corda-networkmap.conf
  • restart Corda networkmap: docker restart networkmap

Show installed CordApps

In your web browser open:

  • http://localhost:10024 (for banka)
  • http://localhost:10034 (for bankb)

etc

Issues

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

TODO

  • add more to README.md (how to customise the build, potential manual spin up without docker compose)

corda-docker's People

Contributors

benabineri avatar gary-rowe avatar przemolb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.