Skip to content

Commit

Permalink
add nexus 2.15.1-02
Browse files Browse the repository at this point in the history
Signed-off-by: yzewei <[email protected]>
  • Loading branch information
yzewei committed Aug 27, 2024
1 parent dc63a42 commit dc5ddaa
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
50 changes: 50 additions & 0 deletions sonatype/nexus/2.15.1/0001-add-loong64-port.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
diff --git a/oss/Dockerfile b/oss/Dockerfile
index cb0de0b..cf671bc 100644
--- a/oss/Dockerfile
+++ b/oss/Dockerfile
@@ -12,7 +12,8 @@
# 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
+FROM lcr.loongnix.cn/openanolis/anolisos:23.1

LABEL vendor=Sonatype \
maintainer="Sonatype <[email protected]>" \
@@ -25,9 +26,7 @@ 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 \
+RUN yum install -v -y --disableplugin=subscription-manager hostname java-1.8.0-openjdk-headless tar \
&& yum install -v -y createrepo \
&& yum --disableplugin=subscription-manager clean all

diff --git a/pro/Dockerfile b/pro/Dockerfile
index 5336f0f..1b79de9 100644
--- a/pro/Dockerfile
+++ b/pro/Dockerfile
@@ -12,7 +12,8 @@
# 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
+FROM lcr.loongnix.cn/openanolis/anolisos:23.1

LABEL vendor=Sonatype \
maintainer="Sonatype <[email protected]>" \
@@ -25,9 +26,7 @@ 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 \
+RUN yum install -v -y --disableplugin=subscription-manager hostname java-1.8.0-openjdk-headless tar \
&& yum install -v -y createrepo \
&& yum --disableplugin=subscription-manager clean all

31 changes: 31 additions & 0 deletions sonatype/nexus/2.15.1/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is generated by the template.

REGISTRY ?=lcr.loongnix.cn
ORGANIZATION ?=sonatype
REPOSITORY ?=nexus
TAG ?=2.15.1
LATEST ?=true

IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)
LATEST_IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):latest

default: image

src: clean
git clone --depth 1 -b 2.15.1 https://github.com/sonatype/docker-nexus && \
cd docker-nexus && git apply ../0001-add-loong64-port.patch

image: src oss pro

.PHONY: oss pro
oss:
cd docker-nexus && docker build --build-arg https_proxy=$(https_proxy) --rm --tag lcr.loongnix.cn/sonatype/nexus:2.15.1-02 oss/

pro:
cd docker-nexus && docker build --build-arg https_proxy=$(https_proxy) --rm --tag lcr.loongnix.cn/sonatype/nexus-pro:2.15.1-02 pro/

push:
docker push lcr.loongnix.cn/sonatype/nexus-pro:2.15.1-02 && docker push lcr.loongnix.cn/sonatype/nexus:2.15.1-02

clean:
rm -rf docker-nexus
1 change: 1 addition & 0 deletions sonatype/nexus/2.15.1/docker-nexus
Submodule docker-nexus added at 19c393

0 comments on commit dc5ddaa

Please sign in to comment.