Skip to content

Commit

Permalink
docker: Start kmd in the background. (#5514)
Browse files Browse the repository at this point in the history
  • Loading branch information
winder committed Jun 30, 2023
1 parent dcafb65 commit 2f38415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
useradd --uid=999 --no-log-init --create-home --system --gid algorand algorand && \
chown -R algorand:algorand /algod

USER algorand

COPY --chown=algorand:algorand --from=builder "/dist/bin/" "/node/bin/"
COPY --chown=algorand:algorand --from=builder "/dist/files/run/" "/node/run/"

Expand Down
4 changes: 2 additions & 2 deletions docker/files/run/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
# as the algorand user.
if [ "$(id -u)" = '0' ]; then
chown -R algorand:algorand $ALGORAND_DATA
exec runuser -u algorand "$BASH_SOURCE"
runuser -u algorand "$BASH_SOURCE"
fi

# Script to configure or resume a network. Based on environment settings the
Expand Down Expand Up @@ -155,7 +155,7 @@ function start_new_public_network() {

function start_private_network() {
configure_data_dir
start_kmd
start_kmd &

# TODO: Is there a way to properly exec a private network?
goal network start -r "${ALGORAND_DATA}/.."
Expand Down

0 comments on commit 2f38415

Please sign in to comment.