Skip to content

Commit

Permalink
Refactor Docker setup and update force tag in Dockerfile and start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
K-NRS committed Sep 13, 2024
1 parent ee12257 commit a63f518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ ENV FORCE_TAG=${FORCE_TAG}
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: "${FORCE_TAG}" >> ${config};' \
echo '' >> $config; \
echo 'force_tag: "devnet-v1.27.0"' >> $config; \
localnet update; \
fi

Expand Down
8 changes: 4 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
if [ -n "$FORCE_TAG" ]; then \
export config=${HOME}/suibase/workdirs/localnet/suibase.yaml \
echo '' >> ${config}; \
echo 'force_tag: "${FORCE_TAG}" >> ${config};'; \
localnet update; \
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 a63f518

Please sign in to comment.