Switch to upper case for PODMAN_BUILD_ARGS
Bash variables are typically upper style, so align with that.
This commit is contained in:
parent
a554ee9a9f
commit
c9f23072ee
@ -16,7 +16,7 @@ BINPKG="${BINPKG:-/var/cache/packages-podman-1}"
|
|||||||
LOGDIR="${LOGDIR:-$(pwd)/log}"
|
LOGDIR="${LOGDIR:-$(pwd)/log}"
|
||||||
DOCKER_FILE="${DOCKER_FILE:-$(pwd)/Dockerfile}"
|
DOCKER_FILE="${DOCKER_FILE:-$(pwd)/Dockerfile}"
|
||||||
|
|
||||||
podman_build_args=(
|
PODMAN_BUILD_ARGS=(
|
||||||
# Do not leak the host's /etc/host into the container.
|
# Do not leak the host's /etc/host into the container.
|
||||||
--no-hosts
|
--no-hosts
|
||||||
# Limit the memory to be used.
|
# Limit the memory to be used.
|
||||||
@ -49,7 +49,7 @@ mkdir -p "${BINPKG}"
|
|||||||
mkdir -p "${LOGDIR}"
|
mkdir -p "${LOGDIR}"
|
||||||
|
|
||||||
podman pull gentoo/stage3:amd64-nomultilib-systemd
|
podman pull gentoo/stage3:amd64-nomultilib-systemd
|
||||||
podman build "${podman_build_args[@]}"
|
podman build "${PODMAN_BUILD_ARGS[@]}"
|
||||||
|
|
||||||
# Update the tag 'latest'.
|
# Update the tag 'latest'.
|
||||||
podman tag rm "${REGISTRY}:latest"
|
podman tag rm "${REGISTRY}:latest"
|
||||||
|
@ -14,7 +14,7 @@ BINPKG="${BINPKG:-/var/cache/packages-podman-1}"
|
|||||||
LOGDIR="${LOGDIR:-$(pwd)/log}"
|
LOGDIR="${LOGDIR:-$(pwd)/log}"
|
||||||
PACKAGE_USE="${PACKAGE_USE:-$(pwd)/package.use}"
|
PACKAGE_USE="${PACKAGE_USE:-$(pwd)/package.use}"
|
||||||
|
|
||||||
podman_build_args=(
|
PODMAN_BUILD_ARGS=(
|
||||||
# Do not leak the host's /etc/host into the container.
|
# Do not leak the host's /etc/host into the container.
|
||||||
--no-hosts
|
--no-hosts
|
||||||
# Remove the container after usage.
|
# Remove the container after usage.
|
||||||
@ -44,7 +44,7 @@ mkdir -p "${DISTFILES}"
|
|||||||
mkdir -p "${BINPKG}"
|
mkdir -p "${BINPKG}"
|
||||||
mkdir -p "${LOGDIR}"
|
mkdir -p "${LOGDIR}"
|
||||||
|
|
||||||
podman run "${podman_build_args[@]}" "${REGISTRY}:${VERSION}" \
|
podman run "${PODMAN_BUILD_ARGS[@]}" "${REGISTRY}:${VERSION}" \
|
||||||
bash -c "emerge --usepkg --newuse --keep-going --oneshot --deep --update @world \
|
bash -c "emerge --usepkg --newuse --keep-going --oneshot --deep --update @world \
|
||||||
&& emerge @golang-rebuild @rust-rebuild \
|
&& emerge @golang-rebuild @rust-rebuild \
|
||||||
&& eclean-pkg --deep"
|
&& eclean-pkg --deep"
|
||||||
|
Reference in New Issue
Block a user