dockerbuild

Crates.iodockerbuild
lib.rsdockerbuild
version0.1.4
sourcesrc
created_at2020-11-15 04:54:39.353199
updated_at2021-01-15 16:34:05.115979
descriptionBuild linux binary under macOS using Docker
homepage
repositoryhttps://git.hatter.ink/hatter/dockerbuild
max_upload_size
id312493
size27,960
Hatter Jiang (jht5945)

documentation

README

dockerbuild

Docker build tool, build software using docker

Install:

$ cargo install dockerbuild
--OR--
$ cargo install --git https://git.hatter.ink/hatter/dockerbuild.git

Config file:

  • dockerbuild.json
  • ~/.dockerbuild.json
  • /etc/dockerbuild.json
echo '{
    "image": "rust:1.47",
    "mirror": "git://mirrors.ustc.edu.cn/crates.io-index"
}' > ~/.dockerbuild.json

Build:

$ dockerbuild build --release --target-dir linux_target

$ dockerbuild :image:i386/rust:1.47 build --release --target-dir linux_i386_target

$ dockerbuild :image:i386/rust:1.47 :mirror:git:*** build --release --target-dir linux_i386_target

Other commands:

$ dockerbuild :rustc --version

Hide logo:

$ LOGO=off dockerbuild :rustc --version

Docker official images: https://hub.docker.com/_/rust

Commit count: 0

cargo fmt