Skip to content

Commit

Permalink
Merge pull request #813 from public-awesome/jhernandezb/fix-docker-build
Browse files Browse the repository at this point in the history
fix wasm lib in docker
  • Loading branch information
jhernandezb authored May 25, 2023
2 parents b525005 + d1379b3 commit 97e812d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ steps:
path: /go
commands:
- apk add --no-cache ca-certificates build-base git
- wget https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a
- echo "6e4de7ba9bad4ae9679c7f9ecf7e283dd0160e71567c6a7be6ae47c81ebe7f32 /lib/libwasmvm_muslc.a" | sha256sum -c
- wget https://github.com/CosmWasm/wasmvm/releases/download/v1.1.2/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a
- echo "e0a0955815a23c139d42781f1cc70beffa916aa74fe649e5c69ee7e95ff13b6b /lib/libwasmvm_muslc.a" | sha256sum -c
- LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build
- echo "Ensuring binary is statically linked ..." && (file $PWD/bin/starsd | grep "statically linked")
environment:
Expand Down Expand Up @@ -399,6 +399,6 @@ depends_on:
- ibc-integration-test
---
kind: signature
hmac: f85967686c28ea333605a5db3a405c37aa477a3b575712835604cb3e7901c68f
hmac: c1aa01580742e57c98b29e18be4caa8f3fe853535e907bd166ee31cf6e79b712

...
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker build . -t publicawesome/stargaze:latest
# docker run --rm -it publicawesome/stargaze:latest /bin/sh
FROM golang:1.19.3-alpine3.15 AS go-builder
FROM golang:1.20.2-alpine3.17 AS go-builder


RUN set -eux; apk add --no-cache ca-certificates build-base git;
Expand All @@ -12,8 +12,8 @@ WORKDIR /code
COPY . /code/

# See https://github.com/CosmWasm/wasmvm/releases
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a
RUN echo "6e4de7ba9bad4ae9679c7f9ecf7e283dd0160e71567c6a7be6ae47c81ebe7f32 /lib/libwasmvm_muslc.a" | sha256sum -c
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.2/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a
RUN echo "e0a0955815a23c139d42781f1cc70beffa916aa74fe649e5c69ee7e95ff13b6b /lib/libwasmvm_muslc.a" | sha256sum -c

# force it to use static lib (from above) not standard libgo_cosmwasm.so file
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build
Expand Down

0 comments on commit 97e812d

Please sign in to comment.