Skip to content

Commit

Permalink
Fixup builders 0100
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jul 31, 2024
1 parent b9a3dd9 commit 23be57a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion builders/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.77.0-alpine
FROM --platform=linux/amd64 rust:1.77.0-alpine

RUN apk add --no-cache ca-certificates build-base

Expand Down
2 changes: 1 addition & 1 deletion builders/Dockerfile.cross
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.77.0-bullseye
FROM --platform=linux/amd64 rust:1.77.0-bullseye

# Install build dependencies
RUN apt-get update \
Expand Down
6 changes: 4 additions & 2 deletions builders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ See those DockerHub repos for all available versions of the builder images.
- Rename builder image from cosmwasm/go-ext-builder to
cosmwasm/libwasmvm-builder
- Replace CentOS with Debian image for GNU linux builds
- Build all images with `--platform=linux/amd64` to avoid accidental ARM builds

**Version 0019:**

Expand Down Expand Up @@ -131,8 +132,9 @@ See those DockerHub repos for all available versions of the builder images.

## Usage

Create a local docker image, capable of cross-compling linux and macos dynamic
libs:
Create the Docker images, capable of cross-compling Linux and MacOS dynamic
libs. As the builder images are all x86_64, it can be slow and memory intense to
do this on a different architecture:

```sh
(cd builders && make docker-images)
Expand Down

0 comments on commit 23be57a

Please sign in to comment.