1
0

Very basic key export/import implementation

Former-commit-id: 8a8fef6845edbbde34e561bb1b613df1c5a9cc9b
This commit is contained in:
David Boreham 2023-03-07 10:08:04 -07:00
parent 178de8f496
commit 6ae3c252ea
4 changed files with 5 additions and 4 deletions

View File

@ -5,8 +5,9 @@ services:
image: cerc/laconicd:local
command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
volumes:
# TODO: look at folding this script into the container
# TODO: look at folding these scripts into the container
- ../config/fixturenet-laconicd/create-fixturenet.sh:/docker-entrypoint-scripts.d/create-fixturenet.sh
- ../config/fixturenet-laconicd/export-mykey.sh:/docker-entrypoint-scripts.d/export-mykey.sh
# TODO: determine which of the ports below is really needed
ports:
- "6060"

View File

@ -0,0 +1,2 @@
#!/bin/sh
echo y | laconicd keys export mykey --unarmored-hex --unsafe

View File

@ -54,7 +54,7 @@ RUN yarn global add @cerc-io/laconic-registry-cli
# Add scripts
RUN mkdir /scripts
ENV PATH="${PATH}:/scripts"
COPY ./import.key.sh /scripts
COPY ./import-key.sh /scripts
# Default command sleeps forever so docker doesn't kill it
CMD ["sh", "-c", "while :; do sleep 600; done"]

View File

@ -1,2 +0,0 @@
#!/bin/sh
echo y | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe