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

#852 in Unix APIs

MIT license

18KB
389 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–2.3MB
~45K SLoC