Skip to content

Commit 4a437d1

Browse files
committed
chore: restore latest osmosis
1 parent ead5893 commit 4a437d1

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

caribic/src/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub async fn download_mithril(mithril_path: &Path) -> Result<(), Box<dyn std::er
8282
}
8383

8484
pub async fn download_osmosis(osmosis_path: &Path) -> Result<(), Box<dyn std::error::Error>> {
85-
let url = "https://github.com/osmosis-labs/osmosis/archive/refs/tags/v25.2.0.zip";
85+
let url = "https://github.com/osmosis-labs/osmosis/archive/refs/tags/v30.0.1.zip";
8686
download_repository(url, osmosis_path, "osmosis").await
8787
}
8888

chains/osmosis/configuration/Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GO_VERSION="1.21"
3+
# Please, when adding/editing this Dockerfile also take care of Dockerfile.cosmovisor as well
4+
5+
ARG GO_VERSION="1.23"
46
ARG RUNNER_IMAGE="gcr.io/distroless/static-debian11"
57
ARG BUILD_TAGS="netgo,ledger,muslc"
68

79
# --------------------------------------------------------
810
# Builder
911
# --------------------------------------------------------
1012

11-
FROM golang:${GO_VERSION}-alpine3.18 as builder
13+
FROM golang:${GO_VERSION}-alpine3.20 as builder
1214

1315
ARG GIT_VERSION
1416
ARG GIT_COMMIT
@@ -17,7 +19,8 @@ ARG BUILD_TAGS
1719
RUN apk add --no-cache \
1820
ca-certificates \
1921
build-base \
20-
linux-headers
22+
linux-headers \
23+
binutils-gold
2124

2225
# Download go dependencies
2326
WORKDIR /osmosis
@@ -27,12 +30,12 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
2730
go mod download
2831

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

3740
# Copy the remaining files
3841
COPY . .
@@ -42,7 +45,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
4245
--mount=type=cache,target=/root/go/pkg/mod \
4346
GOWORK=off go build \
4447
-mod=readonly \
45-
-tags ${BUILD_TAGS} \
48+
-tags "netgo,ledger,muslc" \
4649
-ldflags \
4750
"-X github.com/cosmos/cosmos-sdk/version.Name="osmosis" \
4851
-X github.com/cosmos/cosmos-sdk/version.AppName="osmosisd" \
@@ -62,7 +65,7 @@ FROM ${RUNNER_IMAGE}
6265

6366
COPY --from=builder /osmosis/build/osmosisd /bin/osmosisd
6467

65-
ENV HOME /osmosis
68+
ENV HOME=/osmosis
6669
WORKDIR $HOME
6770

6871
EXPOSE 26656

chains/osmosis/configuration/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ services:
55
context: ../../
66
dockerfile: Dockerfile
77
args:
8-
RUNNER_IMAGE: golang:1.21.7-alpine3.19
9-
GO_VERSION: "1.21"
8+
RUNNER_IMAGE: alpine:3.19
9+
GO_VERSION: "1.23"
1010
volumes:
1111
- ./scripts/uosmoUionBalancerPool.json:/osmosis/uosmoUionBalancerPool.json
1212
- ./scripts/uosmoUusdcBalancerPool.json:/osmosis/uosmoUusdcBalancerPool.json
@@ -36,4 +36,4 @@ services:
3636
- 6379:6379
3737
- 8001:8001
3838
volumes:
39-
- ./redis-data:/data
39+
- ./redis-data:/data

0 commit comments

Comments
 (0)