Skip to content

Commit

Permalink
v1.83.0 (#31)
Browse files Browse the repository at this point in the history
- debian 12.8
- rust 1.83.0
- libpq 15.9
  • Loading branch information
joseluisq authored Nov 29, 2024
1 parent 607130b commit 72e6faa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NOTE: Most of Dockerfile and related were borrowed from https://hub.docker.com/r/ekidd/rust-musl-builder

FROM debian:12.7-slim
FROM debian:12.8-slim

ARG VERSION=0.0.0
ENV VERSION=${VERSION}
Expand Down Expand Up @@ -132,7 +132,7 @@ RUN set -eux \


# libpq - https://ftp.postgresql.org/pub/source/
ARG POSTGRESQL_VERSION=15.8
ARG POSTGRESQL_VERSION=15.9

RUN set -eux \
&& echo "Building libpq ${POSTGRESQL_VERSION}..." \
Expand Down Expand Up @@ -220,7 +220,7 @@ RUN set -eux \
&& true

# Rust stable toolchain
ARG TOOLCHAIN=1.82.0
ARG TOOLCHAIN=1.83.0

# Install our Rust toolchain and the `musl` target. We patch the
# command-line we pass to the installer so that it won't attempt to
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Below are the default toolchains included in the Docker image.
docker run --rm \
--volume "${PWD}/sample":/root/src \
--workdir /root/src \
joseluisq/rust-linux-darwin-builder:1.82.0 \
joseluisq/rust-linux-darwin-builder:1.83.0 \
sh -c "cargo build --release --target x86_64-unknown-linux-musl"
```

Expand All @@ -52,7 +52,7 @@ docker run --rm \
docker run --rm \
--volume "${PWD}/sample":/root/src \
--workdir /root/src \
joseluisq/rust-linux-darwin-builder:1.82.0 \
joseluisq/rust-linux-darwin-builder:1.83.0 \
sh -c "cargo build --release --target x86_64-unknown-linux-gnu"
```

Expand All @@ -62,7 +62,7 @@ docker run --rm \
docker run --rm \
--volume "${PWD}/sample":/root/src \
--workdir /root/src \
joseluisq/rust-linux-darwin-builder:1.82.0 \
joseluisq/rust-linux-darwin-builder:1.83.0 \
sh -c "cargo build --release --target x86_64-apple-darwin"
```

Expand All @@ -74,7 +74,7 @@ docker run --rm \
docker run --rm \
--volume "${PWD}/sample":/root/src \
--workdir /root/src \
joseluisq/rust-linux-darwin-builder:1.82.0 \
joseluisq/rust-linux-darwin-builder:1.83.0 \
sh -c "cargo build --release --target aarch64-unknown-linux-gnu"
```

Expand All @@ -84,7 +84,7 @@ docker run --rm \
docker run --rm \
--volume "${PWD}/sample":/root/src \
--workdir /root/src \
joseluisq/rust-linux-darwin-builder:1.82.0 \
joseluisq/rust-linux-darwin-builder:1.83.0 \
sh -c "cargo build --release --target aarch64-unknown-linux-musl"
```

Expand All @@ -94,7 +94,7 @@ docker run --rm \
docker run --rm \
--volume "${PWD}/sample":/root/src \
--workdir /root/src \
joseluisq/rust-linux-darwin-builder:1.82.0 \
joseluisq/rust-linux-darwin-builder:1.83.0 \
sh -c "cargo build --release --target aarch64-apple-darwin"
```

Expand All @@ -107,7 +107,7 @@ It's known that the [`CARGO_HOME`](https://doc.rust-lang.org/cargo/guide/cargo-h
You can also use the image as a base for your Dockerfile:

```Dockerfile
FROM joseluisq/rust-linux-darwin-builder:1.82.0
FROM joseluisq/rust-linux-darwin-builder:1.83.0
```

### OSXCross
Expand Down Expand Up @@ -150,7 +150,7 @@ compile:
@docker run --rm -it \
-v $(PWD):/app/src \
-w /app/src \
joseluisq/rust-linux-darwin-builder:1.82.0 \
joseluisq/rust-linux-darwin-builder:1.83.0 \
make cross-compile
.PHONY: compile

Expand All @@ -174,12 +174,12 @@ Just run the makefile `compile` target, then you will see two release binaries `
```sh
make compile
# 1. Cross compiling example...
# rustc 1.82.0 (f6e511eec 2024-10-15)
# rustc 1.83.0 (90b35a623 2024-11-26)
# binary: rustc
# commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14
# commit-date: 2024-10-15
# commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
# commit-date: 2024-11-26
# host: x86_64-unknown-linux-gnu
# release: 1.82.0
# release: 1.83.0
# LLVM version: 19.1.1

# 2. Compiling application (linux-musl x86_64)...
Expand Down

0 comments on commit 72e6faa

Please sign in to comment.