Skip to content

Commit

Permalink
Refactor Docker setup and update start script
Browse files Browse the repository at this point in the history
  • Loading branch information
K-NRS committed Sep 13, 2024
1 parent ce84000 commit 5418134
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ ENV config=${HOME}/suibase/workdirs/localnet/suibase.yaml
# if FORCE_TAG is set, then checkout to the specified tag
RUN if [ -n "$FORCE_TAG" ]; then \
echo '' >> $config; \
echo 'force_tag: "devnet-v1.27.0"' >> $config; \
echo 'force_tag: "${FORCE_TAG}"' >> $config; \
localnet update; \
fi

# RUN localnet start && localnet stop
RUN localnet start && localnet stop

# Expose ports
EXPOSE 9000
Expand Down
8 changes: 0 additions & 8 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#!/bin/bash

if [ -n "$FORCE_TAG" ]; then \
config=~/suibase/workdirs/localnet/suibase.yaml
echo '' >> $config
echo 'force_tag: "${FORCE_TAG}"' >> $config
localnet update
fi

localnet start &! && \
tail -f ~/suibase/workdirs/common/logs/suibase-daemon.log

0 comments on commit 5418134

Please sign in to comment.