-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rsknode docker configuration (#205)
* Update rsknode docker configuration * Modify run name
- Loading branch information
Showing
4 changed files
with
22 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
# Building | ||
# Running | ||
|
||
To build the default `PAPYRUS-2.1.0`, run in the `rsknode` folder: | ||
To run the RSKj container please use the following command: | ||
|
||
``` | ||
docker build -t rskj:2.1.0-PAPYRUS . | ||
```bash | ||
docker run -p 127.0.0.1:4444:4444 -p 127.0.0.1:4445:4445 --name enveloping-rskj -it -v $PWD/logback.xml:/etc/rsk/logback.xml -v $PWD/node.conf:/etc/rsk/node.conf rsksmart/rskj:IRIS-3 --regtest | ||
``` | ||
|
||
To build a different version, say `LOREMIPSUM-42.0.0`, use instead | ||
You could also use docker-compose: | ||
|
||
``` | ||
docker build \ | ||
--build-arg rskj_version=42.0.0 \ | ||
--build-arg rskj_codename=LOREMIPSUM \ | ||
-t rskj:42.0.0-LOREMIPSUM . | ||
docker-compose up -d | ||
``` | ||
|
||
# Running | ||
|
||
To run, use the recently generated tag (`-t` parameter for `docker | ||
build`): | ||
|
||
``` | ||
docker run -p 127.0.0.1:4444:4444 --name enveloping-rskj rskj:2.1.0-PAPYRUS --regtest | ||
``` | ||
|
||
`--regtest` can be modified to any other of the networks or parameters | ||
supported by the rskj binary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
version: "3" | ||
version: '3' | ||
services: | ||
rskj: | ||
build: | ||
context: "." | ||
args: | ||
- rskj_codename=SNAPSHOT | ||
- rskj_version=3.0.0 | ||
- working_branch=master | ||
container_name: rsk-node | ||
image: rskj:latest | ||
command: --regtest | ||
ports: | ||
- "127.0.0.1:4444:4444" | ||
networks: | ||
- "enveloping-tests-net" | ||
rskj: | ||
container_name: rsk-node | ||
image: rsksmart/rskj:IRIS-3 | ||
ports: | ||
- '127.0.0.1:4444:4444' | ||
- '127.0.0.1:4445:4445' | ||
networks: | ||
- 'rif-relay-testing' | ||
volumes: | ||
- ./logback.xml:/etc/rsk/logback.xml | ||
- ./node.conf:/etc/rsk/node.conf | ||
|
||
networks: | ||
enveloping-tests-net: | ||
external: true | ||
rif-relay-testing: | ||
external: true |