c0be2330b0
* Add validator Docker container * Add Docker contract upload container Signed-off-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net> * Add docker-compose for validators and building deploy container * One Docker image for each component * Switch from hal to punk * Add nym wallet docker * Point web browser to the correct IP * Better message parsing * Rebase on the wallet merge * Rename upload contract entrypoint script * Remove unnecessary bash magic * Put the contract image in the docker dir * Put the wallet-web image in the docker dir * Add some read-only specifiers to volumes * Move typescript container code in docker directory Also update lock files, as the containers work on a volume binded to the local filesystem * Fix volume permissions * Add mnemonic echo * Remove magic sleep value from secondary validator * Adding README.md to the docker directory * Change ENTRYPOINT to CMD for the typescript client image
Build with Docker & Docker Compose
Currently you can build and run locally in a Docker containers the following components of the Nym Privacy Platform:
- One genesis validator
- Any number of secondary validators
- A contract uploader, that uploads the contract built from the local sources
- The web wallet application, accesible on port 3000
Running
The following commands need to be run from the root of the Nym git project.
To start the dockerized environment, run the following command each time the local source code has changed:
docker-compose up --build -d --scale=secondary_validator=3
Note: The secondary_validator=3 can take any other number as value, depending on the desired setup.
The web wallet interface will become available at localhost:3000.
The mnemonic needed to connect to the admin user, which also has a pre-added number of tokens, can be obtained by running:
docker logs nym_mnemonic_echo_1
To stop the dockerized environment, run:
docker-compose down