Skip to content

Commit

Permalink
Do not crash if repo has already been added
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Morales <[email protected]>
  • Loading branch information
mauromorales committed Dec 19, 2023
1 parent 5e19ab7 commit 17c394a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions images/Dockerfile.kairos-opensuse
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ ARG FRAMEWORK_VERSION=main
FROM $BASE_IMAGE AS base

FROM base AS leap-15.5-repo
RUN zypper ar -G https://download.opensuse.org/repositories/utilities/15.5/utilities.repo && \
RUN zypper ar -G https://download.opensuse.org/repositories/utilities/15.5/utilities.repo || true && \
zypper ref

FROM base AS tumbleweed-repo-amd64
RUN zypper removerepo repo-openh264 && \
zypper ref

FROM base AS tumbleweed-repo-arm64
RUN zypper ar https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/ aarch64 && \
RUN zypper ar https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/ aarch64 || true && \
zypper ref

FROM tumbleweed-repo-${TARGETARCH} AS tumbleweed-repo
RUN zypper ar -G https://download.opensuse.org/repositories/utilities/openSUSE_Factory/utilities.repo && \
RUN zypper ar -G https://download.opensuse.org/repositories/utilities/openSUSE_Factory/utilities.repo || true && \
zypper ref

FROM ${FLAVOR_RELEASE}-repo AS common
Expand Down
6 changes: 3 additions & 3 deletions images/Dockerfile.opensuse
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ ARG FRAMEWORK_VERSION=main
FROM $BASE_IMAGE AS base

FROM base AS leap-15.5-repo
RUN zypper ar -G https://download.opensuse.org/repositories/utilities/15.5/utilities.repo && \
RUN zypper ar -G https://download.opensuse.org/repositories/utilities/15.5/utilities.repo || true && \
zypper ref

FROM base AS tumbleweed-repo-amd64
RUN zypper removerepo repo-openh264 && \
zypper ref

FROM base AS tumbleweed-repo-arm64
RUN zypper ar https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/ aarch64 && \
RUN zypper ar https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/ aarch64 || true && \
zypper ref

FROM tumbleweed-repo-${TARGETARCH} AS tumbleweed-repo
RUN zypper ar -G https://download.opensuse.org/repositories/utilities/openSUSE_Factory/utilities.repo && \
RUN zypper ar -G https://download.opensuse.org/repositories/utilities/openSUSE_Factory/utilities.repo || true && \
zypper ref

FROM ${FLAVOR_RELEASE}-repo AS common
Expand Down

0 comments on commit 17c394a

Please sign in to comment.