5 releases

0.1.4 Jan 15, 2021
0.1.3 Nov 21, 2020
0.1.2 Nov 21, 2020
0.1.1 Nov 15, 2020
0.1.0 Nov 15, 2020

#675 in Unix APIs

MIT license

17KB
385 lines

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

Dependencies

~1–2MB
~42K SLoC