Docker build tool, build software using docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Hatter Jiang c193267f29 feat: usage 2 months ago
src feat: usage 2 months ago
.gitignore feat: v0.1.4, support name 2 months ago
Cargo.lock feat: v0.1.4, support name 2 months ago
Cargo.toml feat: v0.1.4, support name 2 months ago
LICENSE Initial commit 4 months ago
README.md feat: add logo, tty 4 months ago
dockerbuild.logo.txt feat: add logo, tty 4 months ago
dockerbuild.usage.txt feat: usage 2 months ago
justfile chore: add build linux 4 months ago

README.md

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