Skip to content

Commit

Permalink
rebase to develop (#290)
Browse files Browse the repository at this point in the history
Co-authored-by: macwis <[email protected]>
  • Loading branch information
rhoop and macwis authored Jan 23, 2024
1 parent c3e5ad6 commit 173daf2
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docker/docker-compose-latest-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest
tty: true
healthcheck:
test: bash -c "[ -f /tmp/.l1_started.sh.lock ]"
test: bash -c "[ -f /tmp/.l1_started.sh.lock ]"
retries: 10
interval: 5s
Expand Down Expand Up @@ -43,7 +44,7 @@ services:
l1-geth:
condition: service_healthy
healthcheck:
test: bash -c "[ -f /tmp/.start_sp_geth.sh.lock ]"
test: bash -c "[ -f /tmp/.sp_geth_started.sh.lock ]"
retries: 10
interval: 5s
start_period: 40s
Expand All @@ -67,6 +68,7 @@ services:
sp-geth:
condition: service_healthy
healthcheck:
test: bash -c "[ -f /tmp/.sp_magi_started.sh.lock ]"
test: bash -c "[ -f /tmp/.sp_magi_started.sh.lock ]"
retries: 10
interval: 5s
Expand Down
4 changes: 2 additions & 2 deletions docker/specular.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ RUN npm install -g pnpm
RUN pnpm install


# COPY --from=build /specular/config/local_docker /specular/workspace
# COPY --from=build /specular/sbin /specular/sbin
COPY --from=build /specular/config/local_docker /specular/workspace
COPY --from=build /specular/sbin /specular/sbin

# DEBUG/LOCAL BUILD
COPY ../config/local_docker /specular/workspace
Expand Down
8 changes: 8 additions & 0 deletions sbin/start_l1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ SBIN="$(
. $SBIN/utils/utils.sh
ROOT_DIR=$SBIN/..

WAITFILE="/tmp/.${0##*/}.lock"

if [[ ! -z ${WAIT_DIR+x} ]]; then
WAITFILE=$WAIT_DIR/.${0##*/}.lock
fi

echo $WAITFILE

# Check that the all required dotenv files exists.
reqdotenv "paths" ".paths.env"
reqdotenv "genesis" ".genesis.env"
Expand Down
6 changes: 6 additions & 0 deletions sbin/start_sp_geth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ SBIN="$(
. $SBIN/utils/utils.sh
ROOT_DIR=$SBIN/..

WAITFILE="/tmp/.${0##*/}.lock"

if [[ ! -z ${WAIT_DIR+x} ]]; then
WAITFILE=$WAIT_DIR/.${0##*/}.lock
fi

# Check that the all required dotenv files exists.
reqdotenv "paths" ".paths.env"
reqdotenv "sp_geth" ".sp_geth.env"
Expand Down
6 changes: 6 additions & 0 deletions sbin/start_sp_magi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ SBIN="$(
. $SBIN/utils/utils.sh
ROOT_DIR=$SBIN/..

WAITFILE="/tmp/.${0##*/}.lock"

if [[ ! -z ${WAIT_DIR+x} ]]; then
WAITFILE=$WAIT_DIR/.${0##*/}.lock
fi

# Check that the all required dotenv files exists.
reqdotenv "paths" ".paths.env"
reqdotenv "sp_magi" ".sp_magi.env"
Expand Down

0 comments on commit 173daf2

Please sign in to comment.