Skip to content

Commit

Permalink
rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Aug 23, 2024
1 parent f4bf2f9 commit c5b4912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contrib/images/simd-env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY core/testing/go.mod core/testing/go.sum /work/core/testing/
RUN go mod download

COPY ./ /work
RUN COSMOS_BUILD_OPTIONS=v2 LEDGER_ENABLED=false make clean build
RUN LEDGER_ENABLED=false make clean build


FROM alpine AS run
Expand All @@ -46,4 +46,4 @@ VOLUME /simd
WORKDIR /simd

COPY contrib/images/simd-env/wrapper.sh /usr/bin/wrapper.sh
COPY --from=build /work/build/simdv2 /simd/
COPY --from=build /work/build/simd /simd/
4 changes: 2 additions & 2 deletions contrib/images/simd-env/wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail
set -x

BINARY=/simd/${BINARY:-simdv2}
BINARY=/simd/${BINARY:-simd}
ID=${ID:-0}
LOG=${LOG:-simd.log}

Expand All @@ -11,7 +11,7 @@ if ! [ -f "${BINARY}" ]; then
exit 1
fi

export SIMDHOME="/data/node${ID}/simdv2"
export SIMDHOME="/data/node${ID}/simd"

if [ -d "$(dirname "${SIMDHOME}"/"${LOG}")" ]; then
"${BINARY}" --home "${SIMDHOME}" "$@" | tee "${SIMDHOME}/${LOG}"
Expand Down

0 comments on commit c5b4912

Please sign in to comment.