mirror of
https://github.com/dockersrc/rust
synced 2026-06-24 20:01:06 -04:00
🔧 Update configuration files 🔧
Dockerfile .env.scripts .gitattributes .gitea/workflows/docker.yaml .gitignore rootfs/etc/profile.d/rust.sh rootfs/root/docker/setup/00-init.sh rootfs/root/docker/setup/01-system.sh rootfs/root/docker/setup/02-packages.sh rootfs/root/docker/setup/03-files.sh rootfs/root/docker/setup/04-users.sh rootfs/root/docker/setup/05-custom.sh rootfs/root/docker/setup/06-post.sh rootfs/root/docker/setup/07-cleanup.sh rootfs/usr/local/bin/copy rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/bin/healthcheck rootfs/usr/local/bin/symlink rootfs/usr/local/etc/docker/init.d/00-rust.sh rootfs/usr/local/share/cargo/config.toml rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
This commit is contained in:
@@ -1,70 +0,0 @@
|
||||
# Cargo system config - lives at $CARGO_HOME/config.toml.
|
||||
#
|
||||
# Default linker overrides for cross-compile targets so plain
|
||||
# `cargo build --target=...` works for pure-Rust crates without the
|
||||
# user having to set up a separate cross C toolchain. The image already
|
||||
# ships:
|
||||
#
|
||||
# - rust-lld (via the llvm-tools-preview rustup component, symlinked
|
||||
# to /usr/local/bin/rust-lld in 02-packages.sh)
|
||||
# - mingw-w64 (apk: mingw-w64-gcc, for native Windows GNU linking)
|
||||
# - zig (apk + cargo-zigbuild bundled copy, for full C cross
|
||||
# toolchains incl. macOS/glibc/RISC-V)
|
||||
#
|
||||
# For crates that pull in C deps (*-sys, openssl-sys, ring, etc.) prefer
|
||||
# `cargo zigbuild --target=...` instead - it handles both the linker AND
|
||||
# the C compile.
|
||||
|
||||
# --- Linux musl / glibc (pure-Rust via rust-lld) ---
|
||||
[target.aarch64-unknown-linux-musl]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target.armv7-unknown-linux-musleabihf]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target.armv7-unknown-linux-gnueabihf]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target.arm-unknown-linux-gnueabihf]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target.i686-unknown-linux-musl]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target.i686-unknown-linux-gnu]
|
||||
linker = "rust-lld"
|
||||
|
||||
# Note: riscv64gc-unknown-linux-{musl,gnu}, powerpc64le-unknown-linux-gnu,
|
||||
# and s390x-unknown-linux-gnu need libgcc_s + libc for the target arch
|
||||
# which aren't shipped with rust-lld's bundled musl. Use
|
||||
# `cargo zigbuild --target=...` for these.
|
||||
|
||||
# --- Windows GNU (mingw) ---
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
linker = "x86_64-w64-mingw32-gcc"
|
||||
|
||||
[target.i686-pc-windows-gnu]
|
||||
linker = "i686-w64-mingw32-gcc"
|
||||
|
||||
# --- Embedded ARM Cortex-M (no_std) ---
|
||||
# These produce no_std bare-metal binaries. Source code must be `no_std`
|
||||
# with a `#[panic_handler]` and `#[entry]` macro - see the cortex-m-rt
|
||||
# crate. A `std` hello-world will not compile for these targets.
|
||||
[target.thumbv6m-none-eabi]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target.thumbv7em-none-eabihf]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target."thumbv8m.main-none-eabihf"]
|
||||
linker = "rust-lld"
|
||||
|
||||
# --- Embedded RISC-V (no_std) ---
|
||||
[target.riscv32imc-unknown-none-elf]
|
||||
linker = "rust-lld"
|
||||
|
||||
[target.riscv32imac-unknown-none-elf]
|
||||
linker = "rust-lld"
|
||||
@@ -116,7 +116,7 @@ DATABASE_DIR_SUPABASE="${DATABASE_DIR_SUPABASE:-$DATABASE_BASE_DIR/supabase}"
|
||||
DOCKER_HOST="unix://var/run/docker.sock"
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# File locations
|
||||
ENTRYPOINT_PID_FILE="${ENTRYPOINT_PID_FILE:-/run/.entrypoint.pid}"
|
||||
ENTRYPOINT_PID_FILE="${ENTRYPOINT_PID_FILE:-/run/init.d/entrypoint.pid}"
|
||||
ENTRYPOINT_INIT_FILE="${ENTRYPOINT_INIT_FILE:-/config/.entrypoint.done}"
|
||||
ENTRYPOINT_DATA_INIT_FILE="${ENTRYPOINT_DATA_INIT_FILE:-/data/.docker_has_run}"
|
||||
ENTRYPOINT_CONFIG_INIT_FILE="${ENTRYPOINT_CONFIG_INIT_FILE:-/config/.docker_has_run}"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# File locations
|
||||
ENTRYPOINT_PID_FILE="${ENTRYPOINT_PID_FILE:-/run/.entrypoint.pid}"
|
||||
ENTRYPOINT_PID_FILE="${ENTRYPOINT_PID_FILE:-/run/init.d/entrypoint.pid}"
|
||||
ENTRYPOINT_INIT_FILE="${ENTRYPOINT_INIT_FILE:-/config/.entrypoint.done}"
|
||||
ENTRYPOINT_DATA_INIT_FILE="${ENTRYPOINT_DATA_INIT_FILE:-/data/.docker_has_run}"
|
||||
ENTRYPOINT_CONFIG_INIT_FILE="${ENTRYPOINT_CONFIG_INIT_FILE:-/config/.docker_has_run}"
|
||||
|
||||
Reference in New Issue
Block a user