Skip to content

Commit b12abc9

Browse files
authored
[Doc] Update doc to generate node keys (#302)
Fixed a regression in the doc. The docker commands were not taking the Docker entrypoint into account. We now reset the entrypoint to the default value to launch specific commands with the Docker image.
1 parent 5b27b23 commit b12abc9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

deployment/docker-build/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ An Aleph node needs an asymmetric key pair to communicate with other nodes on th
3030

3131
You can generate this key using the following commands after building the Docker image:
3232
```shell script
33-
docker run --rm -ti --user root -v $(pwd)/node-secret.key:/opt/pyaleph/node-secret.key alephim/pyaleph-node:latest pyaleph --gen-keys
33+
docker run --rm --user root --entrypoint "" -v $(pwd)/node-secret.key:/opt/pyaleph/node-secret.key alephim/pyaleph-node:latest pyaleph --gen-keys
3434
```
3535

3636
## Start the dev environment

docs/guides/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ We strongly advise to back up your keys once generated.
116116
.. parsed-literal::
117117
118118
mkdir keys
119-
docker run --rm -ti --user root -v $(pwd)/keys:/opt/pyaleph/keys alephim/pyaleph-node:|pyaleph_version| chown aleph:aleph /opt/pyaleph/keys
120-
docker run --rm -ti -v $(pwd)/keys:/opt/pyaleph/keys alephim/pyaleph-node:|pyaleph_version| pyaleph --gen-keys --key-dir /opt/pyaleph/keys
119+
docker run --rm --user root --entrypoint "" -v $(pwd)/keys:/opt/pyaleph/keys alephim/pyaleph-node:|pyaleph_version| chown aleph:aleph /opt/pyaleph/keys
120+
docker run --rm --entrypoint "" -v $(pwd)/keys:/opt/pyaleph/keys alephim/pyaleph-node:|pyaleph_version| pyaleph --gen-keys --key-dir /opt/pyaleph/keys
121121
122122
To check that the generation of the keys succeeded, print your private key:
123123

docs/guides/upgrade.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ and adjust the ownership of the folder:
2222
2323
mkdir keys
2424
cp node-secret.key keys/
25-
docker run --rm -ti --user root -v $(pwd)/keys:/opt/pyaleph/keys alephim/pyaleph-node:|pyaleph_version| chown -R aleph:aleph /opt/pyaleph/keys
25+
docker run --rm --user root --entrypoint "" -v $(pwd)/keys:/opt/pyaleph/keys alephim/pyaleph-node:|pyaleph_version| chown -R aleph:aleph /opt/pyaleph/keys
2626
2727
Download the latest image
2828
-------------------------

0 commit comments

Comments
 (0)