docker: Tweak cargo build verbosities.

docker: Fix unused instructions; format/tabs.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-06-03 05:38:43 +00:00
parent cb0a624f85
commit 71748c3db9
5 changed files with 15 additions and 17 deletions

View File

@@ -36,6 +36,7 @@ RUN \
set -eux
rustup run ${rust_toolchain} \
cargo ${cargo_cmd} \
--verbose \
--frozen \
--workspace \
"${cargo_spec_features}" \

View File

@@ -35,6 +35,7 @@ RUN \
mkdir -p "${pkg_dir}"
rustup run ${rust_toolchain} \
cargo deb \
--verbose \
--frozen \
--no-build \
"${cargo_spec_features}" \

View File

@@ -57,6 +57,7 @@ RUN \
set -eux
rustup run ${rust_toolchain} \
cargo chef cook ${cook_args} \
--verbose \
--frozen \
--workspace \
"${cargo_spec_features}" \

View File

@@ -8,9 +8,10 @@ of images from shared intermediate layers with a huge ever-growing pulsating cac
The result is the ability to run continuous integration for a number of build
variations while only paying the cost of rebuilding the last layer for each one.
### Layout
This directory is made up of four types of files.
This directory is made up of three types of files:
- Shell scripts are the user interface. Use this system through one of the shell scripts. The
bake files can still be docker'ed directly but it's recomended to run the script.
@@ -25,9 +26,6 @@ always be a single unified tree.
These are written generically in the style of "template functions" with many variables allowing
many targets to create many variations using the same Dockerfile.
- All other files are various assets that may be referenced or used in a build mount, though
at the time of this writing I've actually eliminated all of them, more may return one day.
### Getting started

View File

@@ -6,23 +6,23 @@ variable "GITHUB_REF_SHA" {}
variable "GITHUB_REF_NAME" {}
variable "acct" {
default = "${GITHUB_ACTOR}"
default = "${GITHUB_ACTOR}"
}
variable "repo" {
default = "${GITHUB_REPOSITORY}"
default = "${GITHUB_REPOSITORY}"
}
variable "docker_repo" {
default = "${repo}"
default = "${repo}"
}
variable "git_ref" {
default = "${GITHUB_REF}"
default = "${GITHUB_REF}"
}
variable "git_ref_sha" {
default = "${GITHUB_REF_SHA}"
default = "${GITHUB_REF_SHA}"
}
variable "git_ref_name" {
default = "${GITHUB_REF_NAME}"
default = "${GITHUB_REF_NAME}"
}
cargo_feat_sets = {
@@ -109,10 +109,10 @@ variable "package_last_modified" {
# Compression options
variable "image_compress_level" {
default = 11
default = 11
}
variable "cache_compress_level" {
default = 6
default = 6
}
# Use the cargo-chef layering strategy to separate and pre-build dependencies
@@ -126,11 +126,11 @@ variable "use_chef" {
# Options for output verbosity
variable "BUILDKIT_PROGRESS" {}
variable "CARGO_TERM_VERBOSE" {
default = BUILDKIT_PROGRESS == "plain"? "true": "false"
default = false
}
variable "docker_dir" {
default = "."
default = "."
}
# Override the project checkout
@@ -778,7 +778,6 @@ target "book" {
elem_tag("book", [cargo_profile, rust_toolchain, rust_target, feat_set, sys_name, sys_version, sys_target], "latest"),
]
target = "book"
dockerfile = "${docker_dir}/Dockerfile.cargo.book"
output = ["type=docker,compression=zstd,mode=min,compression-level=${image_compress_level}"]
matrix = cargo_rust_feat_sys
inherits = [
@@ -790,7 +789,6 @@ target "book" {
}
dockerfile-inline =<<EOF
FROM input AS book
WORKDIR /
COPY --link --from=input . .
RUN ["mdbook", "build", "-d", "/book", "/usr/src/tuwunel"]
EOF
@@ -1333,7 +1331,6 @@ target "ingredients" {
feat_set == "all"?
"--all-features": "--no-default-features"
)
CARGO_TERM_VERBOSE = CI == "true"
RUST_BACKTRACE = "full"
ROCKSDB_LIB_DIR="/usr/lib/${sys_target}"
JEMALLOC_OVERRIDE="/usr/lib/${sys_target}/libjemalloc.a"