Skip to content

Commit

Permalink
fix: Dockerfile wasm dep (#500)
Browse files Browse the repository at this point in the history
* fix: Dockerfile wasm dep

* fix: sqsdomain dep
  • Loading branch information
PaddyMc authored Sep 3, 2024
1 parent 2a65703 commit 109493e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ COPY . .
RUN set -eux; apk add --no-cache ca-certificates build-base linux-headers && \
go mod download

RUN ARCH=$(uname -m) && WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm | sed 's/.* //') && \
# Cosmwasm - Download correct libwasmvm version
RUN ARCH=$(uname -m) && WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | sed 's/.* //') && \
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.$ARCH.a \
-O /lib/libwasmvm_muslc.a && \
-O /lib/libwasmvm_muslc.$ARCH.a && \
# verify checksum
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \
sha256sum /lib/libwasmvm_muslc.a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$ARCH | cut -d ' ' -f 1)
sha256sum /lib/libwasmvm_muslc.$ARCH.a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$ARCH | cut -d ' ' -f 1)

RUN BUILD_TAGS=muslc LINK_STATICALLY=true GOWORK=off go build -mod=readonly \
-tags "netgo,ledger,muslc" \
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/osmosis-labs/osmosis/osmomath v0.0.13
github.com/osmosis-labs/osmosis/osmoutils v0.0.13
github.com/osmosis-labs/osmosis/v26 v26.0.0-rc1
github.com/osmosis-labs/sqs/sqsdomain v0.18.4-0.20240829164133-a141f0387bc1
github.com/osmosis-labs/sqs/sqsdomain v0.19.0
github.com/prometheus/client_golang v1.20.0
github.com/sirupsen/logrus v1.9.3
github.com/spf13/viper v1.19.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ github.com/osmosis-labs/osmosis/x/epochs v0.0.5-0.20240825083448-87db4447a1ff h1
github.com/osmosis-labs/osmosis/x/epochs v0.0.5-0.20240825083448-87db4447a1ff/go.mod h1:7ylCTvH4gEtZ5E8paiwSjmOzOKOOls8Br45W9uwWnP0=
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.0-20240825083448-87db4447a1ff h1:OZGMwv/Km6xnIB16d4zghFf0x7K9JlWqRaxgOVBIv7Y=
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.0-20240825083448-87db4447a1ff/go.mod h1:AXHoG4L1AMDCMEGeSdzcy7ik2mBt5fTyzEAWlGt+aSc=
github.com/osmosis-labs/sqs/sqsdomain v0.18.4-0.20240829164133-a141f0387bc1 h1:Gzj7QJMvObV9MO+G4x8LaDldch4wNuXV5V4VId4DRsY=
github.com/osmosis-labs/sqs/sqsdomain v0.18.4-0.20240829164133-a141f0387bc1/go.mod h1:VeL3pCCrxfzKyxI4JStbKR9hvC6g5yLrBNxXzFYeiqs=
github.com/osmosis-labs/sqs/sqsdomain v0.19.0 h1:Ltd/dFU71ryCmwyxnpTLUD+35gE7v5UNRXXpn8cnCfc=
github.com/osmosis-labs/sqs/sqsdomain v0.19.0/go.mod h1:HPczKMkVKve0kbuTvngNSZ3TAonApOhYdWSQ4WbAalY=
github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=
Expand Down

0 comments on commit 109493e

Please sign in to comment.