Add simple export/import scheme

Former-commit-id: 277be07dcd2bc4473c963119eb5d47d9739b0c21
This commit is contained in:
dboreham committed 2023-03-07 09:07:15 -07:00
1 parent eb70f2526e
commit 178de8f496
3 files changed
+7 -1

No files matched your search

@@ -51,6 +51,10 @@ RUN npm config set @lirewine:registry ${CERC_NPM_URL} \
# Globally install the cli package
RUN yarn global add @cerc-io/laconic-registry-cli
# Add scripts
RUN mkdir /scripts
ENV PATH="${PATH}:/scripts"
COPY ./import.key.sh /scripts
# Default command sleeps forever so docker doesn't kill it
CMD ["sh", "-c", "while :; do sleep 600; done"]
@@ -0,0 +1,2 @@
#!/bin/sh
echo y | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe