forked from cerc-io/stack-orchestrator
Very basic key export/import implementation
Former-commit-id: 8a8fef6845
This commit is contained in:
parent
178de8f496
commit
6ae3c252ea
@ -5,8 +5,9 @@ services:
|
|||||||
image: cerc/laconicd:local
|
image: cerc/laconicd:local
|
||||||
command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
|
command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
|
||||||
volumes:
|
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/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
|
# TODO: determine which of the ports below is really needed
|
||||||
ports:
|
ports:
|
||||||
- "6060"
|
- "6060"
|
||||||
|
2
app/data/config/fixturenet-laconicd/export-mykey.sh
Normal file
2
app/data/config/fixturenet-laconicd/export-mykey.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo y | laconicd keys export mykey --unarmored-hex --unsafe
|
@ -54,7 +54,7 @@ RUN yarn global add @cerc-io/laconic-registry-cli
|
|||||||
# Add scripts
|
# Add scripts
|
||||||
RUN mkdir /scripts
|
RUN mkdir /scripts
|
||||||
ENV PATH="${PATH}:/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
|
# Default command sleeps forever so docker doesn't kill it
|
||||||
CMD ["sh", "-c", "while :; do sleep 600; done"]
|
CMD ["sh", "-c", "while :; do sleep 600; done"]
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
echo y | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe
|
|
Loading…
Reference in New Issue
Block a user