Skip to content

Commit bb2040e

Browse files
committed
chore(imagebuilder): code format
1 parent bc86093 commit bb2040e

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

rootfs/imagebuilder/build

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ function waiting_process {
2929
}
3030

3131
# Start podman service
32-
export DOCKER_HOST=tcp://127.0.0.1:1234
32+
export DOCKER_PORT=1234
33+
export DOCKER_HOST=tcp://127.0.0.1:${DOCKER_PORT}
3334

3435
log_level="error"
3536
if [[ "${DRYCC_DEBUG}" ]]; then
@@ -39,7 +40,7 @@ fi
3940

4041
podman system service \
4142
--log-level "${log_level}" \
42-
--time 0 tcp:0.0.0.0:1234 &
43+
--time 0 tcp:0.0.0.0:${DOCKER_PORT} &
4344

4445
waiting_process podman
4546
if [[ -n "${TAR_PATH}" ]]; then
@@ -97,8 +98,13 @@ if [[ "${DRYCC_STACK}" == "container" ]] ; then
9798
podman build -t "${image_cache_repo}" --network host .
9899
else
99100
echo "---> Building pack"
100-
echo "use builder ${pack_builder}"
101-
pack build "${image_cache_repo}" --builder "${pack_builder}" --docker-host "${DOCKER_HOST}" --lifecycle-image "${LIFECYCLE_IMAGE}" --trust-builder --network host
101+
echo "---> Using builder ${pack_builder}"
102+
pack build "${image_cache_repo}" \
103+
--builder "${pack_builder}" \
104+
--docker-host "${DOCKER_HOST}" \
105+
--lifecycle-image "${LIFECYCLE_IMAGE}" \
106+
--trust-builder \
107+
--network host
102108
fi
103109

104110
# Publish image

0 commit comments

Comments
 (0)