Skip to content

Commit b953ebc

Browse files
authored
Merge pull request #462 from CosmWasm/update-rust
Update builders to version 0017 (Rust 1.73.0)
2 parents 2907c7d + cf6d57f commit b953ebc

File tree

7 files changed

+26
-15
lines changed

7 files changed

+26
-15
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,11 @@ test-alpine: release-build-alpine
137137

138138
@# Run the demo binary on Alpine machines
139139
@# See https://de.wikipedia.org/wiki/Alpine_Linux#Versionen for supported versions
140+
docker run --rm --read-only -v $(shell pwd):/mnt/testrun -w /mnt/testrun alpine:3.18 ./demo ./testdata/hackatom.wasm
141+
docker run --rm --read-only -v $(shell pwd):/mnt/testrun -w /mnt/testrun alpine:3.17 ./demo ./testdata/hackatom.wasm
142+
docker run --rm --read-only -v $(shell pwd):/mnt/testrun -w /mnt/testrun alpine:3.16 ./demo ./testdata/hackatom.wasm
140143
docker run --rm --read-only -v $(shell pwd):/mnt/testrun -w /mnt/testrun alpine:3.15 ./demo ./testdata/hackatom.wasm
141144
docker run --rm --read-only -v $(shell pwd):/mnt/testrun -w /mnt/testrun alpine:3.14 ./demo ./testdata/hackatom.wasm
142-
docker run --rm --read-only -v $(shell pwd):/mnt/testrun -w /mnt/testrun alpine:3.13 ./demo ./testdata/hackatom.wasm
143-
docker run --rm --read-only -v $(shell pwd):/mnt/testrun -w /mnt/testrun alpine:3.12 ./demo ./testdata/hackatom.wasm
144145

145146
@# Run binary locally if you are on Linux
146147
@# ./demo ./testdata/hackatom.wasm

builders/Dockerfile.alpine

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
# For 2. we define the Go image here. For 1. we install Rust below.
55
#
66
# See also docs/COMPILER_VERSIONS.md
7-
FROM golang:1.19.7-alpine
7+
FROM golang:1.20.10-alpine
88

99
ENV RUSTUP_HOME=/usr/local/rustup \
10-
CARGO_HOME=/usr/local/cargo \
11-
PATH=/usr/local/cargo/bin:$PATH
10+
CARGO_HOME=/usr/local/cargo \
11+
PATH=/usr/local/cargo/bin:$PATH
1212

1313
# this comes from standard alpine nightly file
1414
# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile
1515
# with some changes to support our toolchain, etc
1616
RUN set -eux \
17-
&& apk add --no-cache ca-certificates build-base
17+
&& apk add --no-cache ca-certificates build-base
1818

1919
RUN wget "https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-musl/rustup-init" \
2020
&& chmod +x rustup-init \
21-
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.69.0 \
21+
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.73.0 \
2222
&& rm rustup-init \
2323
&& chmod -R a+w $RUSTUP_HOME $CARGO_HOME
2424

builders/Dockerfile.centos7

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ RUN yum -y update \
2121

2222
# GET FROM https://github.com/rust-lang/docker-rust-nightly
2323
ENV RUSTUP_HOME=/usr/local/rustup \
24-
CARGO_HOME=/usr/local/cargo \
25-
PATH=/usr/local/cargo/bin:$PATH
24+
CARGO_HOME=/usr/local/cargo \
25+
PATH=/usr/local/cargo/bin:$PATH
2626

2727
RUN wget "https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init" \
2828
&& chmod +x rustup-init \
29-
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.69.0 \
29+
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.73.0 \
3030
&& rm rustup-init \
3131
&& chmod -R a+w $RUSTUP_HOME $CARGO_HOME \
3232
&& rustup --version \

builders/Dockerfile.cross

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM rust:1.69.0-bullseye
1+
FROM rust:1.73.0-bullseye
22

33
# Install build dependencies
44
RUN apt-get update \
55
&& apt install -y clang gcc g++ zlib1g-dev libmpc-dev libmpfr-dev libgmp-dev build-essential cmake \
6-
# Support for Windows cross-compile
7-
mingw-w64
6+
# Support for Windows cross-compile
7+
mingw-w64
88

99
## ADD MACOS SUPPORT
1010

builders/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Versioned by a simple counter that is not bound to a specific CosmWasm version
22
# See builders/README.md
3-
BUILDERS_PREFIX := cosmwasm/go-ext-builder:0016
3+
BUILDERS_PREFIX := cosmwasm/go-ext-builder:0017
44

55
.PHONY: docker-image-centos7
66
docker-image-centos7:

builders/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,18 @@ tricky. This folder contains build scripts and a Docker image to create all
1212
dynamic libraries from one host. In general this is set up for a Linux host, but
1313
any machine that can run Docker can do the cross-compilation.
1414

15+
## Docker Hub images
16+
17+
See https://hub.docker.com/r/cosmwasm/go-ext-builder/tags for all available
18+
versions of the builder images.
19+
1520
## Changelog
1621

22+
**Version 0017:**
23+
24+
- Update Rust to 1.73.0.
25+
- Update Go to 1.20.10 (for testing only).
26+
1727
**Version 0016:**
1828

1929
- Update Rust to 1.69.0.

docs/COMPILER_VERSIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ We currently use the following version:
6363

6464
| Type | Rust version | Note |
6565
| ------------------------ | ------------ | --------------------------------- |
66-
| Production Rust compiler | 1.69.0 | Builders version 0016 |
66+
| Production Rust compiler | 1.73.0 | Builders version 0017 |
6767
| Min Rust compiler | 1.67.0 | Supports builder versions >= 0015 |
6868
| Tooling Rust compiler | 1.69.0 | |

0 commit comments

Comments
 (0)