From 1bdc0f39a31aee48dc85a374f8735fadda18210e Mon Sep 17 00:00:00 2001 From: Pietro Abate Date: Tue, 18 Feb 2025 10:09:58 +0100 Subject: [PATCH 1/2] packages: fix fedora systemd tests --- .gitlab/ci/pipelines/non_release_tag.yml | 30 +++++++++++++++- .gitlab/ci/pipelines/non_release_tag_test.yml | 30 +++++++++++++++- .../ci/pipelines/octez_beta_release_tag.yml | 30 +++++++++++++++- .gitlab/ci/pipelines/octez_release_tag.yml | 30 +++++++++++++++- .../ci/pipelines/octez_release_tag_test.yml | 30 +++++++++++++++- .gitlab/ci/pipelines/rpm_repository_full.yml | 34 +++++++++++++++++-- .../ci/pipelines/rpm_repository_partial.yml | 4 +-- .../pipelines/rpm_repository_partial_auto.yml | 4 +-- .../schedule_master_test_release.yml | 30 +++++++++++++++- ci/bin/rpm_repository.ml | 20 +++++++---- 10 files changed, 223 insertions(+), 19 deletions(-) diff --git a/.gitlab/ci/pipelines/non_release_tag.yml b/.gitlab/ci/pipelines/non_release_tag.yml index 2353f16ca72b..60c7eac754dd 100644 --- a/.gitlab/ci/pipelines/non_release_tag.yml +++ b/.gitlab/ci/pipelines/non_release_tag.yml @@ -791,7 +791,7 @@ oc.docker-build-rockylinux-dependencies: - gcp - gcp_arm64 -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -969,6 +969,34 @@ oc.docker-build-fedora-dependencies: - gcp - gcp_arm64 +oc.docker-systemd-tests-rpm-fedora: + image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 + stage: images + tags: + - $TAGS + dependencies: [] + timeout: 60 minutes + before_script: + - ./scripts/ci/docker_initialize.sh + script: + - ./scripts/ci/build-packages-dependencies.sh images/packages/rpm-systemd-tests.Dockerfile + services: + - docker:${DOCKER_VERSION}-dind + variables: + DOCKER_VERSION: 24.0.7 + FLAVOUR: systemd-tests + DEP_IMAGE: ${GCP_REGISTRY}/$CI_PROJECT_NAMESPACE/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DEP_IMAGE_PROTECTED: ${GCP_PROTECTED_REGISTRY}/tezos/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DISTRIBUTION: fedora + parallel: + matrix: + - RELEASE: + - "39" + - "42" + TAGS: + - gcp + - gcp_arm64 + oc.build-fedora: image: $DEP_IMAGE:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} stage: build diff --git a/.gitlab/ci/pipelines/non_release_tag_test.yml b/.gitlab/ci/pipelines/non_release_tag_test.yml index bc6484f91897..13579c01c7e2 100644 --- a/.gitlab/ci/pipelines/non_release_tag_test.yml +++ b/.gitlab/ci/pipelines/non_release_tag_test.yml @@ -791,7 +791,7 @@ oc.docker-build-rockylinux-dependencies: - gcp - gcp_arm64 -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -969,6 +969,34 @@ oc.docker-build-fedora-dependencies: - gcp - gcp_arm64 +oc.docker-systemd-tests-rpm-fedora: + image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 + stage: images + tags: + - $TAGS + dependencies: [] + timeout: 60 minutes + before_script: + - ./scripts/ci/docker_initialize.sh + script: + - ./scripts/ci/build-packages-dependencies.sh images/packages/rpm-systemd-tests.Dockerfile + services: + - docker:${DOCKER_VERSION}-dind + variables: + DOCKER_VERSION: 24.0.7 + FLAVOUR: systemd-tests + DEP_IMAGE: ${GCP_REGISTRY}/$CI_PROJECT_NAMESPACE/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DEP_IMAGE_PROTECTED: ${GCP_PROTECTED_REGISTRY}/tezos/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DISTRIBUTION: fedora + parallel: + matrix: + - RELEASE: + - "39" + - "42" + TAGS: + - gcp + - gcp_arm64 + oc.build-fedora: image: $DEP_IMAGE:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} stage: build diff --git a/.gitlab/ci/pipelines/octez_beta_release_tag.yml b/.gitlab/ci/pipelines/octez_beta_release_tag.yml index f4e02d6331da..2d2e68da3160 100644 --- a/.gitlab/ci/pipelines/octez_beta_release_tag.yml +++ b/.gitlab/ci/pipelines/octez_beta_release_tag.yml @@ -792,7 +792,7 @@ oc.docker-build-rockylinux-dependencies: - gcp - gcp_arm64 -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -970,6 +970,34 @@ oc.docker-build-fedora-dependencies: - gcp - gcp_arm64 +oc.docker-systemd-tests-rpm-fedora: + image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 + stage: images + tags: + - $TAGS + dependencies: [] + timeout: 60 minutes + before_script: + - ./scripts/ci/docker_initialize.sh + script: + - ./scripts/ci/build-packages-dependencies.sh images/packages/rpm-systemd-tests.Dockerfile + services: + - docker:${DOCKER_VERSION}-dind + variables: + DOCKER_VERSION: 24.0.7 + FLAVOUR: systemd-tests + DEP_IMAGE: ${GCP_REGISTRY}/$CI_PROJECT_NAMESPACE/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DEP_IMAGE_PROTECTED: ${GCP_PROTECTED_REGISTRY}/tezos/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DISTRIBUTION: fedora + parallel: + matrix: + - RELEASE: + - "39" + - "42" + TAGS: + - gcp + - gcp_arm64 + oc.build-fedora: image: $DEP_IMAGE:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} stage: build diff --git a/.gitlab/ci/pipelines/octez_release_tag.yml b/.gitlab/ci/pipelines/octez_release_tag.yml index ca32e55d5807..6183787044d0 100644 --- a/.gitlab/ci/pipelines/octez_release_tag.yml +++ b/.gitlab/ci/pipelines/octez_release_tag.yml @@ -793,7 +793,7 @@ oc.docker-build-rockylinux-dependencies: - gcp - gcp_arm64 -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -971,6 +971,34 @@ oc.docker-build-fedora-dependencies: - gcp - gcp_arm64 +oc.docker-systemd-tests-rpm-fedora: + image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 + stage: images + tags: + - $TAGS + dependencies: [] + timeout: 60 minutes + before_script: + - ./scripts/ci/docker_initialize.sh + script: + - ./scripts/ci/build-packages-dependencies.sh images/packages/rpm-systemd-tests.Dockerfile + services: + - docker:${DOCKER_VERSION}-dind + variables: + DOCKER_VERSION: 24.0.7 + FLAVOUR: systemd-tests + DEP_IMAGE: ${GCP_REGISTRY}/$CI_PROJECT_NAMESPACE/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DEP_IMAGE_PROTECTED: ${GCP_PROTECTED_REGISTRY}/tezos/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DISTRIBUTION: fedora + parallel: + matrix: + - RELEASE: + - "39" + - "42" + TAGS: + - gcp + - gcp_arm64 + oc.build-fedora: image: $DEP_IMAGE:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} stage: build diff --git a/.gitlab/ci/pipelines/octez_release_tag_test.yml b/.gitlab/ci/pipelines/octez_release_tag_test.yml index e50e63508118..7c4875b53b8d 100644 --- a/.gitlab/ci/pipelines/octez_release_tag_test.yml +++ b/.gitlab/ci/pipelines/octez_release_tag_test.yml @@ -793,7 +793,7 @@ oc.docker-build-rockylinux-dependencies: - gcp - gcp_arm64 -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -971,6 +971,34 @@ oc.docker-build-fedora-dependencies: - gcp - gcp_arm64 +oc.docker-systemd-tests-rpm-fedora: + image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 + stage: images + tags: + - $TAGS + dependencies: [] + timeout: 60 minutes + before_script: + - ./scripts/ci/docker_initialize.sh + script: + - ./scripts/ci/build-packages-dependencies.sh images/packages/rpm-systemd-tests.Dockerfile + services: + - docker:${DOCKER_VERSION}-dind + variables: + DOCKER_VERSION: 24.0.7 + FLAVOUR: systemd-tests + DEP_IMAGE: ${GCP_REGISTRY}/$CI_PROJECT_NAMESPACE/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DEP_IMAGE_PROTECTED: ${GCP_PROTECTED_REGISTRY}/tezos/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DISTRIBUTION: fedora + parallel: + matrix: + - RELEASE: + - "39" + - "42" + TAGS: + - gcp + - gcp_arm64 + oc.build-fedora: image: $DEP_IMAGE:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} stage: build diff --git a/.gitlab/ci/pipelines/rpm_repository_full.yml b/.gitlab/ci/pipelines/rpm_repository_full.yml index 8d329d405c42..aa0b235ab71b 100644 --- a/.gitlab/ci/pipelines/rpm_repository_full.yml +++ b/.gitlab/ci/pipelines/rpm_repository_full.yml @@ -63,7 +63,7 @@ oc.docker-build-rockylinux-dependencies: - gcp - gcp_arm64 -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -241,6 +241,34 @@ oc.docker-build-fedora-dependencies: - gcp - gcp_arm64 +oc.docker-systemd-tests-rpm-fedora: + image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 + stage: images + tags: + - $TAGS + dependencies: [] + timeout: 60 minutes + before_script: + - ./scripts/ci/docker_initialize.sh + script: + - ./scripts/ci/build-packages-dependencies.sh images/packages/rpm-systemd-tests.Dockerfile + services: + - docker:${DOCKER_VERSION}-dind + variables: + DOCKER_VERSION: 24.0.7 + FLAVOUR: systemd-tests + DEP_IMAGE: ${GCP_REGISTRY}/$CI_PROJECT_NAMESPACE/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DEP_IMAGE_PROTECTED: ${GCP_PROTECTED_REGISTRY}/tezos/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DISTRIBUTION: fedora + parallel: + matrix: + - RELEASE: + - "39" + - "42" + TAGS: + - gcp + - gcp_arm64 + oc.build-fedora: image: $DEP_IMAGE:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} stage: build @@ -403,7 +431,7 @@ oc.install_bin_fedora_39_systemd: tags: - gcp needs: - - oc.docker-systemd_tests-rpm + - oc.docker-systemd-tests-rpm-fedora - rpm_repo_fedora dependencies: [] timeout: 60 minutes @@ -463,7 +491,7 @@ oc.install_bin_rockylinux_93_systemd: tags: - gcp needs: - - oc.docker-systemd_tests-rpm + - oc.docker-systemd-tests-rpm-rockylinux - rpm_repo_rockylinux dependencies: [] timeout: 60 minutes diff --git a/.gitlab/ci/pipelines/rpm_repository_partial.yml b/.gitlab/ci/pipelines/rpm_repository_partial.yml index 7cd9b8e2d649..3309b46edd0e 100644 --- a/.gitlab/ci/pipelines/rpm_repository_partial.yml +++ b/.gitlab/ci/pipelines/rpm_repository_partial.yml @@ -62,7 +62,7 @@ oc.docker-build-rockylinux-dependencies: TAGS: - gcp -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -246,7 +246,7 @@ oc.install_bin_rockylinux_93_systemd: tags: - gcp needs: - - oc.docker-systemd_tests-rpm + - oc.docker-systemd-tests-rpm-rockylinux - rpm_repo_rockylinux dependencies: [] timeout: 60 minutes diff --git a/.gitlab/ci/pipelines/rpm_repository_partial_auto.yml b/.gitlab/ci/pipelines/rpm_repository_partial_auto.yml index f2c652407ca0..6ad06d6cc256 100644 --- a/.gitlab/ci/pipelines/rpm_repository_partial_auto.yml +++ b/.gitlab/ci/pipelines/rpm_repository_partial_auto.yml @@ -62,7 +62,7 @@ oc.docker-build-rockylinux-dependencies: TAGS: - gcp -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -246,7 +246,7 @@ oc.install_bin_rockylinux_93_systemd: tags: - gcp needs: - - oc.docker-systemd_tests-rpm + - oc.docker-systemd-tests-rpm-rockylinux - rpm_repo_rockylinux dependencies: [] timeout: 60 minutes diff --git a/.gitlab/ci/pipelines/schedule_master_test_release.yml b/.gitlab/ci/pipelines/schedule_master_test_release.yml index 01f2031d45cc..97448486fb7f 100644 --- a/.gitlab/ci/pipelines/schedule_master_test_release.yml +++ b/.gitlab/ci/pipelines/schedule_master_test_release.yml @@ -795,7 +795,7 @@ oc.docker-build-rockylinux-dependencies: - gcp - gcp_arm64 -oc.docker-systemd_tests-rpm: +oc.docker-systemd-tests-rpm-rockylinux: image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 stage: images tags: @@ -973,6 +973,34 @@ oc.docker-build-fedora-dependencies: - gcp - gcp_arm64 +oc.docker-systemd-tests-rpm-fedora: + image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 + stage: images + tags: + - $TAGS + dependencies: [] + timeout: 60 minutes + before_script: + - ./scripts/ci/docker_initialize.sh + script: + - ./scripts/ci/build-packages-dependencies.sh images/packages/rpm-systemd-tests.Dockerfile + services: + - docker:${DOCKER_VERSION}-dind + variables: + DOCKER_VERSION: 24.0.7 + FLAVOUR: systemd-tests + DEP_IMAGE: ${GCP_REGISTRY}/$CI_PROJECT_NAMESPACE/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DEP_IMAGE_PROTECTED: ${GCP_PROTECTED_REGISTRY}/tezos/tezos/$FLAVOUR-$DISTRIBUTION-$RELEASE + DISTRIBUTION: fedora + parallel: + matrix: + - RELEASE: + - "39" + - "42" + TAGS: + - gcp + - gcp_arm64 + oc.build-fedora: image: $DEP_IMAGE:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} stage: build diff --git a/ci/bin/rpm_repository.ml b/ci/bin/rpm_repository.ml index ae973190c8e0..05c7866c664e 100644 --- a/ci/bin/rpm_repository.ml +++ b/ci/bin/rpm_repository.ml @@ -96,13 +96,20 @@ let jobs pipeline_type = images/packages/rpm-systemd-tests.Dockerfile"; ] in - let job_docker_systemd_test_rpm_dependencies : tezos_job = + let job_docker_systemd_test_rpm_rockylinux_dependencies : tezos_job = make_job_docker_systemd_tests ~__POS__ - ~name:"oc.docker-systemd_tests-rpm" + ~name:"oc.docker-systemd-tests-rpm-rockylinux" ~distribution:"rockylinux" ~matrix:(rockylinux_package_release_matrix pipeline_type) in + let job_docker_systemd_test_rpm_fedora_dependencies : tezos_job = + make_job_docker_systemd_tests + ~__POS__ + ~name:"oc.docker-systemd-tests-rpm-fedora" + ~distribution:"fedora" + ~matrix:(fedora_package_release_matrix pipeline_type) + in let make_job_docker_build_dependencies ~__POS__ ~name ~matrix ~distribution = job_docker_authenticated @@ -277,7 +284,7 @@ let jobs pipeline_type = ~dependencies: (Dependent [ - Job job_docker_systemd_test_rpm_dependencies; + Job job_docker_systemd_test_rpm_fedora_dependencies; Job job_rpm_repo_fedora; ]) ~variables: @@ -286,7 +293,7 @@ let jobs pipeline_type = [("DISTRIBUTION", "fedora"); ("RELEASE", "39")]) [ "./scripts/ci/systemd-packages-test.sh \ - docs/introduction/install-bin-rpm.sh \ + scripts/packaging/tests/rpm/rpm-install.sh \ images/packages/rpm-systemd-tests.Dockerfile"; ]; ] @@ -311,7 +318,7 @@ let jobs pipeline_type = ~dependencies: (Dependent [ - Job job_docker_systemd_test_rpm_dependencies; + Job job_docker_systemd_test_rpm_rockylinux_dependencies; Job job_rpm_repo_rockylinux; ]) ~variables: @@ -328,7 +335,7 @@ let jobs pipeline_type = let rockylinux_jobs = [ job_docker_build_rockylinux_dependencies; - job_docker_systemd_test_rpm_dependencies; + job_docker_systemd_test_rpm_rockylinux_dependencies; job_build_rockylinux_package; job_build_rockylinux_package_data; job_rpm_repo_rockylinux; @@ -337,6 +344,7 @@ let jobs pipeline_type = let fedora_jobs = [ job_docker_build_fedora_dependencies; + job_docker_systemd_test_rpm_fedora_dependencies; job_build_fedora_package; job_build_fedora_package_data; job_rpm_repo_fedora; -- GitLab From 52643e60f2e8c2c68049c1298e50769c6f38f7e3 Mon Sep 17 00:00:00 2001 From: Pietro Abate Date: Tue, 18 Feb 2025 12:33:34 +0100 Subject: [PATCH 2/2] packages: generalize systemd tests --- .gitlab/ci/pipelines/rpm_repository_full.yml | 3 ++- images/packages/debian-deps-build.Dockerfile | 2 +- images/packages/debian-systemd-tests.Dockerfile | 6 ++++-- images/packages/rpm-deps-build.Dockerfile | 4 ++-- images/packages/rpm-systemd-tests.Dockerfile | 8 +++++--- scripts/packaging/tests/systemd-docker-test.sh | 2 +- 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.gitlab/ci/pipelines/rpm_repository_full.yml b/.gitlab/ci/pipelines/rpm_repository_full.yml index aa0b235ab71b..198a7c6fa44f 100644 --- a/.gitlab/ci/pipelines/rpm_repository_full.yml +++ b/.gitlab/ci/pipelines/rpm_repository_full.yml @@ -438,7 +438,8 @@ oc.install_bin_fedora_39_systemd: before_script: - ./scripts/ci/docker_initialize.sh script: - - ./scripts/ci/systemd-packages-test.sh docs/introduction/install-bin-rpm.sh images/packages/rpm-systemd-tests.Dockerfile + - ./scripts/ci/systemd-packages-test.sh scripts/packaging/tests/rpm/rpm-install.sh + images/packages/rpm-systemd-tests.Dockerfile services: - docker:${DOCKER_VERSION}-dind variables: diff --git a/images/packages/debian-deps-build.Dockerfile b/images/packages/debian-deps-build.Dockerfile index 2b337171518b..c090d55c9ddc 100644 --- a/images/packages/debian-deps-build.Dockerfile +++ b/images/packages/debian-deps-build.Dockerfile @@ -1,4 +1,4 @@ -ARG IMAGE +ARG IMAGE=invalid # the image with proper version is set as ARG #hadolint ignore=DL3006 FROM ${IMAGE} diff --git a/images/packages/debian-systemd-tests.Dockerfile b/images/packages/debian-systemd-tests.Dockerfile index 43f79d336d80..5923f9aba319 100644 --- a/images/packages/debian-systemd-tests.Dockerfile +++ b/images/packages/debian-systemd-tests.Dockerfile @@ -1,5 +1,7 @@ -FROM debian:bookworm - +ARG IMAGE=invalid +# The image with proper version is set as ARG +#hadolint ignore=DL3006 +FROM ${IMAGE} #hadolint ignore=DL3008 RUN apt-get update && \ diff --git a/images/packages/rpm-deps-build.Dockerfile b/images/packages/rpm-deps-build.Dockerfile index 142836229a8f..2d348b4e3856 100644 --- a/images/packages/rpm-deps-build.Dockerfile +++ b/images/packages/rpm-deps-build.Dockerfile @@ -1,7 +1,7 @@ -ARG IMAGE +ARG IMAGE=invalid # The image with proper version is set as ARG #hadolint ignore=DL3006 -FROM ${IMAGE} +FROM $IMAGE ENV TZ=Etc/UTC # Build blst used by ocaml-bls12-381 without ADX to support old CPU diff --git a/images/packages/rpm-systemd-tests.Dockerfile b/images/packages/rpm-systemd-tests.Dockerfile index 2e2b703c1876..f6f18c227b6d 100644 --- a/images/packages/rpm-systemd-tests.Dockerfile +++ b/images/packages/rpm-systemd-tests.Dockerfile @@ -1,9 +1,11 @@ -FROM rockylinux:9.3 - +ARG IMAGE=invalid +# The image with proper version is set as ARG +#hadolint ignore=DL3006 +FROM ${IMAGE} #hadolint ignore=DL3008,DL3041 RUN dnf -y update && \ - dnf -y install systemd bash && \ + dnf -y install systemd bash procps && \ dnf clean all #hadolint ignore=DL3045 diff --git a/scripts/packaging/tests/systemd-docker-test.sh b/scripts/packaging/tests/systemd-docker-test.sh index f964a77c36fb..441ac4c68705 100755 --- a/scripts/packaging/tests/systemd-docker-test.sh +++ b/scripts/packaging/tests/systemd-docker-test.sh @@ -29,7 +29,7 @@ else docker rmi $IMAGE || true echo "Image $IMAGE does not exist locally." echo "Building or updating the local image for you" - docker build -f "$DOCKERFILE" . -t systemd + docker build --build-arg IMAGE="$DISTRIBUTION:$RELEASE" -f "$DOCKERFILE" . -t systemd fi # Trap signals (EXIT, INT, TERM) and perform cleanup -- GitLab