Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add el8 image based on almalinux8 and install from epel 8. #56

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,49 @@
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

ARG VESPA_BASE_IMAGE=el8
ARG VESPA_BASE_IMAGE=stream8

FROM docker.io/almalinux:9 as el9
FROM docker.io/almalinux:8 as el8

RUN echo "install_weak_deps=False" >> /etc/dnf/dnf.conf && \
dnf -y install \
dnf-plugins-core \
epel-release && \
dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/epel-9/group_vespa-vespa-epel-9.repo && \
dnf config-manager --enable crb && \
dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/epel-8/group_vespa-vespa-epel-8.repo && \
dnf config-manager --enable powertools && \
dnf remove -y dnf-plugins-core && \
dnf clean all && \
rm -rf /var/cache/dnf

LABEL org.opencontainers.image.base.name="docker.io/almalinux:9"
LABEL org.opencontainers.image.base.name="quay.io/centos/centos:stream8"

FROM quay.io/centos/centos:stream8 as el8
FROM quay.io/centos/centos:stream8 as stream8

RUN echo "install_weak_deps=False" >> /etc/dnf/dnf.conf && \
dnf -y install \
dnf-plugins-core \
epel-release && \
dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/centos-stream-8/group_vespa-vespa-centos-stream-8.repo && \
dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/epel-8/group_vespa-vespa-epel-8.repo && \
dnf config-manager --enable powertools && \
dnf remove -y dnf-plugins-core && \
dnf clean all && \
rm -rf /var/cache/dnf

LABEL org.opencontainers.image.base.name="quay.io/centos/centos:stream8"

FROM docker.io/almalinux:9 as el9

RUN echo "install_weak_deps=False" >> /etc/dnf/dnf.conf && \
dnf -y install \
dnf-plugins-core \
epel-release && \
dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/epel-9/group_vespa-vespa-epel-9.repo && \
dnf config-manager --enable crb && \
dnf remove -y dnf-plugins-core && \
dnf clean all && \
rm -rf /var/cache/dnf

LABEL org.opencontainers.image.base.name="docker.io/almalinux:9"

FROM $VESPA_BASE_IMAGE AS vespa

ARG VESPA_VERSION
Expand Down