-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: yzewei <[email protected]>
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Submodule docker-nexus
added at
19c393