Crates.io | dockerbuild |
lib.rs | dockerbuild |
version | 0.1.4 |
source | src |
created_at | 2020-11-15 04:54:39.353199 |
updated_at | 2021-01-15 16:34:05.115979 |
description | Build linux binary under macOS using Docker |
homepage | |
repository | https://git.hatter.ink/hatter/dockerbuild |
max_upload_size | |
id | 312493 |
size | 27,960 |
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