Sign inSign up

cake233/rust-alpine-amd64

By cake233

Updated over 2 years ago

Quickly install rust-alpine-amd64

Image
0

4.9K

cake233/rust-alpine-amd64 repository overview

rust-alpine-amd64

How to run it?

docker run \
    -it \
    --name rust-alpine-amd64 \
    cake233/rust-alpine-amd64

How to exec shell?

docker exec -it rust-alpine-amd64 bash

Example

set env
_UID="$(id -u)" || _UID=0
_GID="$(id -g)" || _GID=0
create a new project

If "tmp/hello" already exists in the current directory, it can be skipped.

mkdir -p tmp

docker run \
    -t \
    --rm \
    -u "$_UID":"$_GID" \
    -v "$PWD"/tmp:/app \
    -w /app \
    cake233/rust-alpine-amd64 \
    cargo new hello
cargo build
docker run \
    -t \
    --rm \
    -u "$_UID":"$_GID" \
    -v "$PWD"/tmp/hello:/app \
    -w /app \
    cake233/rust-alpine-amd64 \
    cargo b --release
check file
FILE="tmp/hello/target/release/hello"

file "$FILE"
ldd "$FILE"

rust-alpine-amd64.toml

[main]
name = "rust"
tag = ["alpine", "2024-03-04", "nightly", "unstable", "minimal", "musl-libc", "musl"]
os = "alpine"
release = "edge"
arch = "amd64"
platform = "linux/amd64"
xorg_or_wayland = false
syntax_version = "0.0.0-alpha.4"

[file]
name = "rust-musl_amd64_2024-03-04_02-58.tar.zst"

# This value can be used to verify the integrity of the file
sha256 = "cd73de25127966208cec9c71a4cba0e6ba845bb476786a477a76e6fb5c44e845"

# zstd: [1-22]
zstd-level = 22

[file.size]
# Installed size ≈ tar-size
# Installed size is approximately equal to the size of the tar file
tar = "784M"
tar_bytes = 821711360

# Space occupied ≈ tar-size + zstd-size
# You will need to prepare a large enough space before installation.
zstd = "169M"
zstd_bytes = 176773496

[compatibility]
compatible_mode = true

previous_version = "latest01"

# The value is &str, not int
previous_date = "20231127"
previous_tag = "2023-11-27"
previous_file = "rust-musl_amd64_2023-11-27_02-58-rootfs.tar.zst"
previous_sha256 = "4f653431605bdce7612b800a05588175c495954284132df6ce40e0ace6bb5b3c"

current_version = "latest02"
current_date = "20240304"
old_file = "rust-musl_amd64_2023-11-24_02-58-rootfs.tar.zst"
old_sha256 = "3484d90fa040b6dd30fe8d2891a4e73172b18cb910931dfc4a060e0eaf1490fe"
# edition 2021
# DISTRO_NAME=rust_amd64
# ROOTFS_FILE=rust-musl_amd64_2024-03-04_02-58-rootfs.tar.zst
# SHA256SUM=cd73de25127966208cec9c71a4cba0e6ba845bb476786a477a76e6fb5c44e845
# BUILD_DATE=20240304
# BUILD_TAG=2024-03-04
# STATUS=completed
# VERSION=latest02
# END_TIME=02:58

[time]
format = "rfc-3339"
zone = "UTC"
date = 2024-03-04
begin = 2024-03-04 02:52:31.298308217+00:00
start-sync_0 = 02:53:24
start-zstd = 02:53:54
start-sync_1 = 02:58:30
end-sync_1 = 02:58:41
end = 2024-03-04 02:58:41.606616099+00:00

[server]
repo = "cake233/rust-alpine-amd64"

[server.node1]
name = "cn"
current = false
previous = false
in_sync = false
split = false

[server.node2]
name = "tmoe"
current = true
previous = true
in_sync = false
split = false

[server.node3]
name = "azure"
current = true
previous = true
in_sync = false
split = false

[server.node4]
name = "docker"
current = true

# Environment variables  (●>ω<●)
[env]
LANG = "C.UTF-8"
PATH = "/usr/local/cargo/bin${PATH:+:${PATH}}"
RUSTUP_HOME = "/usr/local/rustup"
CARGO_HOME = "/usr/local/cargo"

[version]
ldd = 'musl libc (x86_64) Version 1.2.5'
rustup = 'rustup 1.26.0 (2023-04-05)'
cargo = 'cargo 1.78.0-nightly (f772ec022 2024-03-01)'
rustc = 'rustc 1.78.0-nightly (516b6162a 2024-03-03)'
cc = 'cc (Alpine 13.2.1_git20231014) 13.2.1 20231014'
cargo_verbose = '''
cargo 1.78.0-nightly (f772ec022 2024-03-01)
release: 1.78.0-nightly
commit-hash: f772ec0224d3755ce52ac5128a80319fb2eb45d0
commit-date: 2024-03-01
host: x86_64-unknown-linux-musl
libgit2: 1.7.2 (sys:0.18.2 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/3.2.1)
ssl: OpenSSL 3.2.1 30 Jan 2024
os: Alpine Linux 3.20.0_alpha20231219 [64-bit]
'''
rustc_verbose = '''
rustc 1.78.0-nightly (516b6162a 2024-03-03)
binary: rustc
commit-hash: 516b6162a2ea8e66678c09e8243ebd83e4b8eeea
commit-date: 2024-03-03
host: x86_64-unknown-linux-musl
release: 1.78.0-nightly
LLVM version: 18.1.0
'''

Tag summary

Content type

Image

Digest

sha256:5020511b1

Size

279.2 MB

Last updated

over 2 years ago

docker pull cake233/rust-alpine-amd64