File tree Expand file tree Collapse file tree 3 files changed +41
-2
lines changed Expand file tree Collapse file tree 3 files changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ release-build-linux:
82
82
# Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
83
83
rm -rf libwasmvm/target/x86_64-unknown-linux-gnu/release
84
84
rm -rf libwasmvm/target/aarch64-unknown-linux-gnu/release
85
- docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -centos7 build_linux.sh
85
+ docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -centos7 build_gnu_x86_64.sh
86
+ docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -debian build_gnu_aarch64.sh
86
87
cp libwasmvm/artifacts/libwasmvm.x86_64.so internal/api
87
88
cp libwasmvm/artifacts/libwasmvm.aarch64.so internal/api
88
89
make update-bindings
Original file line number Diff line number Diff line change
1
+ FROM --platform=linux/amd64 debian:12-slim
2
+
3
+ RUN apt update -y \
4
+ && apt install -y gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu wget
5
+
6
+ # GET FROM https://github.com/rust-lang/docker-rust-nightly
7
+ ENV RUSTUP_HOME=/usr/local/rustup \
8
+ CARGO_HOME=/usr/local/cargo \
9
+ PATH=/usr/local/cargo/bin:$PATH
10
+
11
+ RUN wget --no-verbose "https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init" \
12
+ && chmod +x rustup-init \
13
+ && ./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.77.0 \
14
+ && rm rustup-init \
15
+ && chmod -R a+w $RUSTUP_HOME $CARGO_HOME \
16
+ && rustup --version \
17
+ && cargo --version \
18
+ && rustc --version \
19
+ && chmod -R 777 /usr/local/cargo \
20
+ && rustup target add aarch64-unknown-linux-gnu
21
+
22
+ ## COPY BUILD SCRIPTS
23
+
24
+ WORKDIR /code
25
+
26
+ COPY guest/*.sh /usr/local/bin/
27
+ RUN chmod +x /usr/local/bin/*.sh
28
+
29
+ RUN mkdir /.cargo
30
+ RUN chmod +rx /.cargo
31
+ COPY guest/cargo-config /.cargo/config
32
+
33
+ CMD ["bash", "-c", "echo 'Argument missing. Pass one build script (e.g. build_linux.sh) to docker run' && exit 1"]
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ BUILDERS_PREFIX := cosmwasm/go-ext-builder:0019
6
6
docker-image-centos7 :
7
7
docker build --pull . -t $(BUILDERS_PREFIX ) -centos7 -f ./Dockerfile.centos7
8
8
9
+ .PHONY : docker-image-debian
10
+ docker-image-debian :
11
+ docker build --pull . -t $(BUILDERS_PREFIX ) -debian -f ./Dockerfile.debian
12
+
9
13
.PHONY : docker-image-cross
10
14
docker-image-cross :
11
15
docker build --pull . -t $(BUILDERS_PREFIX ) -cross -f ./Dockerfile.cross
@@ -15,10 +19,11 @@ docker-image-alpine:
15
19
docker build --pull . -t $(BUILDERS_PREFIX ) -alpine -f ./Dockerfile.alpine
16
20
17
21
.PHONY : docker-images
18
- docker-images : docker-image-centos7 docker-image-cross docker-image-alpine
22
+ docker-images : docker-image-centos7 docker-image-debian docker-image- cross docker-image-alpine
19
23
20
24
.PHONY : docker-publish
21
25
docker-publish : docker-images
22
26
docker push $(BUILDERS_PREFIX ) -cross
23
27
docker push $(BUILDERS_PREFIX ) -centos7
28
+ docker push $(BUILDERS_PREFIX ) -debian
24
29
docker push $(BUILDERS_PREFIX ) -alpine
You can’t perform that action at this time.
0 commit comments