Skip to content

Commit

Permalink
Add arch check and error message for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Oct 20, 2023
1 parent 5620fe1 commit 3245c56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker/blockchain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY Makefile sims.mk ./


# Build and install provenanced
ENV VERSION=${VERSION}
ENV VERSION=$VERSION
RUN make VERSION=${VERSION} WITH_CLEVELDB=true install

###
Expand All @@ -37,7 +37,12 @@ RUN apt-get update && \
COPY --from=build /go/src/github.com/provenance-io/provenance/vendor/github.com/CosmWasm/wasmvm/internal/api/libwasmvm.*.so /tmp
COPY --from=build /go/bin/provenanced /usr/bin/provenanced

RUN cp /tmp/libwasmvm.$(uname -m).so /usr/local/lib/. && \
RUN ARCH=$(uname -m) && \
if [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "aarch64" ]; then \
echo "Unsupported architecture (required: x86_64 or aarch64): $ARCH"; \
exit 1; \
fi && \
cp /tmp/libwasmvm.$ARCH.so /usr/local/lib/. && \
rm /tmp/libwasmvm.*.so

ENV PIO_HOME=/home/provenance
Expand Down

0 comments on commit 3245c56

Please sign in to comment.