Skip to content

Commit

Permalink
Refactor Docker setup and update start script 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 7720034 commit ce84000
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ EXPOSE 9000
EXPOSE 44340
EXPOSE 44380

## Start script
## Start script
ENTRYPOINT ["/bin/bash"]

CMD ["-c", "./start.sh && exec /bin/bash"]
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/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 &!
# wait a while
sleep 15

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

0 comments on commit ce84000

Please sign in to comment.