All Projects → liuchong → docker-rustup

liuchong / docker-rustup

Licence: MIT license
Automated builded images for rust-lang with rustup, "the ultimate way to install RUST"

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to docker-rustup

CMLFS
Clang-Built Musl Linux From Scratch
Stars: ✭ 51 (-34.62%)
Mutual labels:  musl
musl-wiki
A community-maintained wiki documenting the musl libc.
Stars: ✭ 61 (-21.79%)
Mutual labels:  musl
merelinux
A lightweight Linux distribution using musl libc, pacman and s6
Stars: ✭ 68 (-12.82%)
Mutual labels:  musl
os
A simple kernel written in Rust for studying purposes.
Stars: ✭ 47 (-39.74%)
Mutual labels:  rustup
ghc-alt-libc
GHC compiled against musl & uClibc
Stars: ✭ 41 (-47.44%)
Mutual labels:  musl
stasis
build static rust position-independant-executables without any runtime requirements (no libc or ldso)
Stars: ✭ 40 (-48.72%)
Mutual labels:  musl
khadas-openwrt
openwrt for Khadas boards
Stars: ✭ 25 (-67.95%)
Mutual labels:  musl
profiler-api
The portable version of JetBrains profiler API for .NET Framework / .NET Core / .NET / .NET Standard / Mono
Stars: ✭ 21 (-73.08%)
Mutual labels:  musl
natick
natickOS - A minimal, lightweight, research Linux Distribution
Stars: ✭ 33 (-57.69%)
Mutual labels:  musl
ghc-musl
Docker image with GHC+musl for static executables
Stars: ✭ 133 (+70.51%)
Mutual labels:  musl
rsync-static
Static RSync binaries compiled for x86, ARM, and ARM64. Useful for running on Android. Built daily
Stars: ✭ 40 (-48.72%)
Mutual labels:  musl
panamax
Mirror rustup and crates.io repositories, for offline Rust and cargo usage.
Stars: ✭ 119 (+52.56%)
Mutual labels:  rustup
cleanmymac
A developer friendly command line cleaner program for modern macOS systems
Stars: ✭ 35 (-55.13%)
Mutual labels:  rustup
dcos-k8s-rust-skaffold-demo
A demo of pipelining Rust application development to Kubernetes on DC/OS with Skaffold.
Stars: ✭ 40 (-48.72%)
Mutual labels:  rustup
Talos
Talos is a modern OS for Kubernetes.
Stars: ✭ 2,390 (+2964.1%)
Mutual labels:  musl
voidnsrun
Run glibc binaries in musl libc Void Linux environment
Stars: ✭ 31 (-60.26%)
Mutual labels:  musl
Microdot
The Microdot Project guides you to create a fully functional but compact Linux system from scratch
Stars: ✭ 41 (-47.44%)
Mutual labels:  musl
sabotage
a radical and experimental distribution based on musl libc and busybox
Stars: ✭ 502 (+543.59%)
Mutual labels:  musl
detect-libc
Node.js module to detect details of the C standard library (libc) implementation provided by a given Linux system
Stars: ✭ 33 (-57.69%)
Mutual labels:  musl
crosware
Tools, things, stuff, miscellaneous, etc., for Chrome OS / Chromium OS
Stars: ✭ 36 (-53.85%)
Mutual labels:  musl

rustup

Build Status FOSSA Status

Automated builded images on store and hub for rust-lang with musl added, using rustup "the ultimate way to install RUST".

tag changed: all3 -> all

note:

  1. Image buildings are triggered by automated builds on cloud.docker.com when "build branch" is updated by build.sh
  2. Please check liuchong/rustup tags on store instead of Build Details on hub
  3. The "build branch" and "tags" are meaningless but just docker images(which are with stable/versions tags) for building
  4. the "version tags" are available from 1.15.0
  5. the stable/beta/nightly tags does not have the package "musl-tools" and the target "x86_64-unknown-linux-musl" installed by default

Usage

Images

pull the images:

> docker pull liuchong/rustup
> docker pull liuchong/rustup:musl

the tags are:

use the image

just setup the Dockerfile:
FROM liuchong/rustup:stable
...
or you maybe prefer to make a musl static building:
# you can also use "latest", which is the same as "musl".
docker run -v $PWD:/build_dir -w /build_dir -t liuchong/rustup:musl cargo build --release
# or, you may want to use nightly channel and fix the ownership and remove container after run as below:
docker run --rm -v $PWD:/build_dir -w /build_dir -t liuchong/rustup:musl sh -c "rustup run nightly cargo build --release && chown -R $(id -u):$(id -g) target"

then, you can write a dockerfile like this and build you app image(so, the image will be very small):

FROM scratch
ADD target/x86_64-unknown-linux-musl/release/your-app /
CMD ["/your-app"]
# or something like this:
# CMD ["/your-app", "--production"]

Build script

# Use automatical checked version from website for current stable builds:
./build.sh
# Use a specified stable version from command line:
./build.sh 1.21.0
# Do not build versioning tag, just pass a string which is not fit the version pattern,
# as the first argument:
./build.sh no-version
./build.sh foo

License

MIT

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].