Skip to content

Commit

Permalink
fix(docker): Use oasis-core-dev-23.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Oct 20, 2023
1 parent 069d90a commit d4e1451
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions docker/common/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ echo "${PARATIME_NAME}-dev ${VERSION} (oasis-core: ${OASIS_CORE_VERSION}, ${PARA
echo

if [[ ${PARATIME_NAME} == 'sapphire' ]]; then
export SAPPHIRE_BACKEND=${SAPPHIRE_BACKEND:-mock}
export SAPPHIRE_BACKEND=${SAPPHIRE_BACKEND:-mock}
else
export SAPPHIRE_BACKEND=default
export SAPPHIRE_BACKEND=default
fi

OASIS_NODE_SOCKET=${OASIS_NODE_DATADIR}/net-runner/network/client-0/internal.sock
Expand Down Expand Up @@ -52,23 +52,26 @@ while ! [[ -S ${OASIS_NODE_SOCKET} ]]; do sleep 1; done
${OASIS_WEB3_GATEWAY} --config ${OASIS_WEB3_GATEWAY_CONFIG_FILE} 2>1 &>/var/log/oasis-web3-gateway.log &
OASIS_WEB3_GATEWAY_PID=$!

echo -n " * Bootstrapping network (this might take a minute)"
if [[ ${SAPPHIRE_BACKEND} == 'mock' ]]; then
echo -n " * Bootstrapping network (this might take a minute)"

echo -n .
${OASIS_NODE} debug control wait-nodes -n 2 -a unix:${OASIS_NODE_SOCKET}

echo -n .
${OASIS_NODE} debug control set-epoch --epoch 1 -a unix:${OASIS_NODE_SOCKET}

echo .
echo -n .
${OASIS_NODE} debug control set-epoch --epoch 2 -a unix:${OASIS_NODE_SOCKET}

echo -n .
${OASIS_NODE} debug control set-epoch --epoch 3 -a unix:${OASIS_NODE_SOCKET}
else
echo " * Bootstrapping network (this might take a minute)"
# Wait for compute nodes before initiating deposit.
echo
${OASIS_NODE} debug control wait-ready -a unix:${OASIS_NODE_SOCKET}
fi

# Wait for compute nodes before initiating deposit.

echo " * Populating accounts"
echo ""
${OASIS_DEPOSIT} -sock unix:${OASIS_NODE_SOCKET} "$@"
Expand Down
2 changes: 1 addition & 1 deletion docker/sapphire-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY . /go/oasis-web3-gateway
RUN cd oasis-web3-gateway && make build

# Build simple-keymanager
FROM oasisprotocol/oasis-core-dev:stable-22.2.x AS oasis-core-dev
FROM ghcr.io/oasisprotocol/oasis-core-dev:stable-23.0.x AS oasis-core-dev

ENV OASIS_UNSAFE_SKIP_KM_POLICY=1

Expand Down

0 comments on commit d4e1451

Please sign in to comment.