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

Switch to ubi-minimal #494

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
15 changes: 9 additions & 6 deletions oss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM registry.access.redhat.com/ubi7/ubi
FROM registry.access.redhat.com/ubi7/ubi-minimal

LABEL vendor=Sonatype \
maintainer="Sonatype <[email protected]>" \
Expand All @@ -25,11 +25,14 @@ ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/oss/nexus-${NEXUS_VER
ENV SONATYPE_WORK=/sonatype-work
ENV NEXUS_HOME=/opt/sonatype/nexus

RUN yum install -v -y --disableplugin=subscription-manager hostname java-1.8.0-openjdk-headless \
&& yum-config-manager --add-repo http://mirror.centos.org/centos/7/os/x86_64/ \
&& rpm --import http://mirror.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7 \
&& yum install -v -y createrepo \
&& yum --disableplugin=subscription-manager clean all
RUN echo "" >> /etc/yum.repos.d/ubi.repo \
&& echo "name = CentOS 7" >> /etc/yum.repos.d/ubi.repo \
&& echo "baseurl = http://mirror.centos.org/centos/7/os/x86_64/" >> /etc/yum.repos.d/ubi.repo \
&& echo "enabled = 1" >> /etc/yum.repos.d/ubi.repo \
&& rpm --import http://mirror.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7

RUN microdnf install -y hostname java-1.8.0-openjdk-headless createrepo \
&& microdnf clean all

RUN mkdir -p ${NEXUS_HOME} && \
curl --fail --silent --location --retry 3 ${NEXUS_DOWNLOAD_URL} | \
Expand Down
15 changes: 9 additions & 6 deletions pro/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM registry.access.redhat.com/ubi7/ubi
FROM registry.access.redhat.com/ubi7/ubi-minimal

LABEL vendor=Sonatype \
maintainer="Sonatype <[email protected]>" \
Expand All @@ -25,11 +25,14 @@ ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/professional-bundle/n
ENV SONATYPE_WORK=/sonatype-work
ENV NEXUS_HOME=/opt/sonatype/nexus

RUN yum install -v -y --disableplugin=subscription-manager hostname java-1.8.0-openjdk-headless \
&& yum-config-manager --add-repo http://mirror.centos.org/centos/7/os/x86_64/ \
&& rpm --import http://mirror.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7 \
&& yum install -v -y createrepo \
&& yum --disableplugin=subscription-manager clean all
RUN echo "" >> /etc/yum.repos.d/ubi.repo \
&& echo "name = CentOS 7" >> /etc/yum.repos.d/ubi.repo \
&& echo "baseurl = http://mirror.centos.org/centos/7/os/x86_64/" >> /etc/yum.repos.d/ubi.repo \
&& echo "enabled = 1" >> /etc/yum.repos.d/ubi.repo \
&& rpm --import http://mirror.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7

RUN microdnf install -y hostname java-1.8.0-openjdk-headless createrepo \
&& microdnf clean all

RUN mkdir -p ${NEXUS_HOME} && \
curl --fail --silent --location --retry 3 ${NEXUS_DOWNLOAD_URL} | \
Expand Down