Skip to content

Commit c7cd9a2

Browse files
Merge pull request #4553 from ggiguash/fix_systemd_resolved
USHIFT-5391: Add systemd-resolved to bootc source images
2 parents 86d20a1 + 2a3aefa commit c7cd9a2

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

test/image-blueprints-bootc/layer2-source/group1/cos9-bootc-source.containerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ COPY ./bootc-images/$USHIFT_RPM_REPO_NAME.repo ./bootc-images/microshift-centos9
1414
# Print repository configuration contents.
1515
# Install MicroShift and cleanup.
1616
RUN dnf repoinfo --enabled && \
17-
dnf install -y firewalld "microshift-{{ .Env.SOURCE_VERSION }}" "microshift-release-info-{{ .Env.SOURCE_VERSION }}" && \
17+
dnf install -y firewalld systemd-resolved \
18+
"microshift-{{ .Env.SOURCE_VERSION }}" "microshift-release-info-{{ .Env.SOURCE_VERSION }}" && \
1819
systemctl enable microshift && \
1920
rm -vf /etc/yum.repos.d/microshift-*.repo && \
2021
rm -rvf $USHIFT_RPM_REPO_PATH && \

test/image-blueprints-bootc/layer2-source/group1/rhel95-bootc-source.containerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ COPY ./bootc-images/$USHIFT_RPM_REPO_NAME.repo ./bootc-images/microshift-fast-da
1414
# Print repository configuration contents.
1515
# Install MicroShift, test agent and cleanup.
1616
RUN dnf repoinfo --enabled && \
17-
dnf install -y firewalld "microshift-{{ .Env.SOURCE_VERSION }}" "microshift-release-info-{{ .Env.SOURCE_VERSION }}" && \
17+
dnf install -y firewalld systemd-resolved \
18+
"microshift-{{ .Env.SOURCE_VERSION }}" "microshift-release-info-{{ .Env.SOURCE_VERSION }}" && \
1819
systemctl enable microshift microshift-test-agent && \
1920
rm -vf /etc/yum.repos.d/microshift-*.repo && \
2021
rm -rvf $USHIFT_RPM_REPO_PATH && \

test/image-blueprints-bootc/layer2-source/group2/rhel95-bootc-source-optionals.containerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ COPY ./bootc-images/$USHIFT_RPM_REPO_NAME.repo ./bootc-images/microshift-fast-da
1313

1414
# Print repository configuration contents.
1515
# Install MicroShift optional packages and cleanup.
16-
# Make sure that systemd-resolved is installed as it is used in tests.
1716
RUN dnf repoinfo --enabled && \
1817
dnf install -y "microshift-olm-{{ .Env.SOURCE_VERSION }}" \
1918
"microshift-multus-{{ .Env.SOURCE_VERSION }}" \
20-
"microshift-gateway-api-{{ .Env.SOURCE_VERSION }}" \
21-
systemd-resolved && \
19+
"microshift-gateway-api-{{ .Env.SOURCE_VERSION }}" && \
2220
rm -vf /etc/yum.repos.d/microshift-*.repo && \
2321
rm -rvf $USHIFT_RPM_REPO_PATH && \
2422
dnf clean all

test/image-blueprints-bootc/layer2-source/group3/cos9-bootc-source-optionals.containerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ COPY ./bootc-images/$USHIFT_RPM_REPO_NAME.repo ./bootc-images/microshift-centos9
1313

1414
# Print repository configuration contents.
1515
# Install MicroShift optional packages and cleanup.
16-
# Make sure that systemd-resolved is installed as it is used in tests.
1716
RUN dnf repoinfo --enabled && \
1817
dnf install -y "microshift-olm-{{ .Env.SOURCE_VERSION }}" \
1918
"microshift-multus-{{ .Env.SOURCE_VERSION }}" \
20-
"microshift-gateway-api-{{ .Env.SOURCE_VERSION }}" \
21-
systemd-resolved && \
19+
"microshift-gateway-api-{{ .Env.SOURCE_VERSION }}" && \
2220
rm -vf /etc/yum.repos.d/microshift-*.repo && \
2321
rm -rvf $USHIFT_RPM_REPO_PATH && \
2422
dnf clean all

0 commit comments

Comments
 (0)