├── current ├── rhel └── centos ├── uid_entrypoint ├── 3.2.1 ├── rhel │ ├── uid_entrypoint │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── help.1 │ └── Dockerfile ├── 3.3.1 ├── rhel │ ├── uid_entrypoint │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── help.1 │ └── Dockerfile ├── 3.3.2 ├── rhel │ ├── uid_entrypoint │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── help.1 │ └── Dockerfile ├── 3.4.0 ├── rhel │ ├── uid_entrypoint │ ├── licenses │ │ └── LICENSE │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── licenses │ └── LICENSE │ ├── help.1 │ └── Dockerfile ├── 3.5.0 ├── rhel │ ├── uid_entrypoint │ ├── licenses │ │ └── LICENSE │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── licenses │ └── LICENSE │ ├── help.1 │ └── Dockerfile ├── 3.5.1 ├── rhel │ ├── uid_entrypoint │ ├── licenses │ │ └── LICENSE │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── licenses │ └── LICENSE │ ├── help.1 │ └── Dockerfile ├── 3.6.0 ├── rhel │ ├── uid_entrypoint │ ├── licenses │ │ └── LICENSE │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── licenses │ └── LICENSE │ ├── help.1 │ └── Dockerfile ├── 3.6.2 ├── rhel │ ├── uid_entrypoint │ ├── licenses │ │ └── LICENSE │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── licenses │ └── LICENSE │ ├── help.1 │ └── Dockerfile ├── 3.7.1 ├── rhel │ ├── uid_entrypoint │ ├── licenses │ │ └── LICENSE │ ├── help.1 │ └── Dockerfile └── centos │ ├── uid_entrypoint │ ├── licenses │ └── LICENSE │ ├── help.1 │ └── Dockerfile ├── .gitignore ├── LICENSE ├── .travis.yml ├── licenses └── LICENSE ├── README.md ├── OpenShift ├── init.sh ├── nexus-centos.json └── nexus-rhel.json ├── update.sh ├── help.md ├── Dockerfile-rhel.template ├── README.old.md └── Dockerfile-centos.template /current/rhel: -------------------------------------------------------------------------------- 1 | ../3.7.1/rhel -------------------------------------------------------------------------------- /current/centos: -------------------------------------------------------------------------------- 1 | ../3.7.1/centos -------------------------------------------------------------------------------- /uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.2.1/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.3.1/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.3.2/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.4.0/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.5.0/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.5.1/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.6.0/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.6.2/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.7.1/rhel/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.2.1/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.3.1/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.3.2/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.4.0/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.5.0/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.5.1/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.6.0/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.6.2/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /3.7.1/centos/uid_entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | USER_ID=$(id -u) 3 | if [ ${USER_UID} != ${USER_ID} ]; then 4 | sed "s@${USER_NAME}:x:\${USER_ID}:@${USER_NAME}:x:${USER_ID}:@g" /etc/passwd.template > /etc/passwd 5 | fi 6 | exec "$@" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Eclipse 2 | .classpath 3 | .project 4 | .settings/ 5 | 6 | # Maven 7 | target/ 8 | *.ser 9 | *.ec 10 | .mvn/timing.properties 11 | 12 | # Intellij 13 | *.ipr 14 | *.iml 15 | *.iws 16 | .idea/ 17 | 18 | # Other 19 | .DS_Store 20 | .clover 21 | *.log 22 | /*.rc 23 | atlassian-ide-plugin.xml 24 | dependency-reduced-pom.xml 25 | out 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016-present Sonatype, Inc. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | dist: trusty 3 | 4 | services: 5 | - docker 6 | 7 | addons: 8 | apt: 9 | packages: 10 | - nodejs 11 | 12 | env: 13 | - VERSION=3.7.1 VARIANT=centos 14 | - VERSION=3.6.2 VARIANT=centos 15 | - VERSION=3.6.0 VARIANT=centos 16 | - VERSION=3.5.1 VARIANT=centos 17 | - VERSION=3.5.0 VARIANT=centos 18 | - VERSION=3.4.0 VARIANT=centos 19 | - VERSION=3.3.2 VARIANT=centos 20 | - VERSION=3.2.1 VARIANT=centos 21 | - VERSION=3.3.1 VARIANT=centos 22 | 23 | install: 24 | - npm install -g dockerfile_lint 25 | 26 | before_script: 27 | - dockerfile_lint -f ./$VERSION/$VARIANT/Dockerfile 28 | 29 | script: 30 | - cd ./$VERSION/$VARIANT 31 | - docker build --rm=true --tag=sonatype/nexus3 . 32 | -------------------------------------------------------------------------------- /licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.4.0/rhel/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.5.0/rhel/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.5.1/rhel/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.6.0/rhel/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.6.2/rhel/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.7.1/rhel/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.4.0/centos/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.5.0/centos/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.5.1/centos/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.6.0/centos/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.6.2/centos/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /3.7.1/centos/licenses/LICENSE: -------------------------------------------------------------------------------- 1 | Sonatype Nexus (TM) Open Source Version 2 | Copyright (c) 2008-present Sonatype, Inc. 3 | All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. 4 | 5 | This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, 6 | which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. 7 | 8 | Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks 9 | of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the 10 | Eclipse Foundation. All other trademarks are the property of their respective owners. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [PROJECT MOVED] sonatype/docker-rhel-nexus 2 | 3 | This project has been split into two and moved for better management and maintenance. 4 | 5 | ## Docker Images 6 | 7 | The RHEL and Red Hat CentOS images are now housed in our official Docker GitHub project, available at 8 | [sonatype/docker-nexus3](https://github.com/sonatype/docker-nexus3). Information on how the RHEL and Red Hat CentOS 9 | images differ from the default offering is described in [Red Hat Certified Image](https://github.com/sonatype/docker-nexus3#red-hat-certified-image). 10 | 11 | ## OpenShift Templates 12 | 13 | The OpenShift Templates have been moved to a dedicated GitHub repository for deployment reference 14 | architecture, available at 15 | [sonatype-nexus-community/deployment-reference-architecture](https://github.com/sonatype-nexus-community/deployment-reference-architecture/tree/master/OpenShift). 16 | 17 | ## Sunsetting 18 | 19 | As the contents from this repository are now housed elsewhere, this repository is considered volatile and may be 20 | removed at any time. It will be kept up temporarily to provide guidance to the new location(s) and any reference 21 | required to sunsetted files. The old readme is available at [README.old.md](./README.old.md). 22 | -------------------------------------------------------------------------------- /OpenShift/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (c) 2016-present Sonatype, Inc. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | set -e 18 | 19 | SCRIPT_BASE_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 20 | 21 | # Login Information 22 | OPENSHIFT_CLI_USER="admin" 23 | OPENSHIFT_CLI_PASSWORD="admin" 24 | OPENSHIFT_NEXUS_PROJECT="nexus" 25 | 26 | # Login to OpenShift 27 | echo 28 | echo "Logging into OpenShift..." 29 | echo "==================================" 30 | echo 31 | oc login -u ${OPENSHIFT_CLI_USER} -p ${OPENSHIFT_CLI_PASSWORD} 32 | 33 | # Create Nexus Project 34 | echo 35 | echo "Creating new Nexus Project (${OPENSHIFT_NEXUS_PROJECT})..." 36 | echo "==================================" 37 | echo 38 | oc new-project ${OPENSHIFT_NEXUS_PROJECT} 39 | 40 | echo 41 | echo "Processing Nexus Template..." 42 | echo "==================================" 43 | echo 44 | oc create -f "${SCRIPT_BASE_DIR}/nexus-rhel.json" -n ${OPENSHIFT_NEXUS_PROJECT} 45 | 46 | echo 47 | echo "Starting Nexus binary build..." 48 | echo "==================================" 49 | echo 50 | oc start-build -n ${OPENSHIFT_NEXUS_PROJECT} nexus --wait 51 | 52 | echo 53 | echo "Create Nexus Application..." 54 | echo "==================================" 55 | echo 56 | oc new-app --template="nexus/nexus" 57 | 58 | echo 59 | echo "==================================" 60 | echo "Setup Complete!" 61 | echo "==================================" 62 | -------------------------------------------------------------------------------- /update.sh: -------------------------------------------------------------------------------- 1 | while getopts ":n:s:" opt; do 2 | case $opt in 3 | n) nexusVersion="$OPTARG";; 4 | s) nexusVersionShort="$OPTARG";; 5 | esac 6 | done 7 | 8 | if [[ -z "${nexusVersion+set}" ]]; then 9 | echo 'Nexus Version must be provided with -n' 10 | exit 1 11 | fi 12 | 13 | if [[ -z "${nexusVersionShort+set}" ]]; then 14 | echo 'Nexus Version Short (Release Name) must be provided with -s' 15 | exit 1 16 | fi 17 | 18 | if ! [ -x "$(command -v md2man-roff)" ]; then 19 | echo 'md2man-roff must be installed to use this update script' 20 | exit 1 21 | fi 22 | 23 | sedStr=" 24 | s!%%NEXUS_VERSION%%!$nexusVersion!g; 25 | s!%%NEXUS_VERSION_SHORT%%!$nexusVersionShort!g; 26 | " 27 | 28 | # Variants that are not compatible with TravisCI 29 | for variant in rhel; do 30 | if [ ! -d "$nexusVersionShort/$variant" ]; then 31 | mkdir -p $nexusVersionShort/$variant 32 | fi 33 | sed -e "$sedStr" "Dockerfile-$variant.template" > $nexusVersionShort/$variant/Dockerfile 34 | md2man-roff help.md > $nexusVersionShort/$variant/help.1 35 | cp uid_entrypoint $nexusVersionShort/$variant/uid_entrypoint 36 | cp -r licenses $nexusVersionShort/$variant 37 | done 38 | 39 | travisEnv= 40 | for variant in centos; do 41 | if [ ! -d "$nexusVersionShort/$variant" ]; then 42 | mkdir -p $nexusVersionShort/$variant 43 | fi 44 | sed -e "$sedStr" "Dockerfile-$variant.template" > $nexusVersionShort/$variant/Dockerfile 45 | md2man-roff help.md > $nexusVersionShort/$variant/help.1 46 | cp uid_entrypoint $nexusVersionShort/$variant/uid_entrypoint 47 | cp -r licenses $nexusVersionShort/$variant 48 | travisEnv='\n - VERSION='"$nexusVersionShort VARIANT=$variant$travisEnv" 49 | done 50 | 51 | travis="$(awk -v 'RS=\n' '$1 == "env:" { $0 = "env:'"$travisEnv"'" } { printf "%s%s", $0, RS }' .travis.yml)" 52 | echo "$travis" > .travis.yml 53 | osCentos="$(sed -e 's#"contextDir": ".*/centos"#"contextDir": "'"${nexusVersionShort}"'/centos"#g' ./OpenShift/nexus-centos.json)" 54 | echo "$osCentos" > ./OpenShift/nexus-centos.json 55 | osRhel="$(sed -e 's#"contextDir": ".*/rhel"#"contextDir": "'"${nexusVersionShort}"'/rhel"#g' ./OpenShift/nexus-rhel.json)" 56 | echo "$osRhel" > ./OpenShift/nexus-rhel.json 57 | -------------------------------------------------------------------------------- /help.md: -------------------------------------------------------------------------------- 1 | % NEXUS(1) Container Image Pages 2 | % Sonatype 3 | % November 21, 2016 4 | 5 | # NAME 6 | nexus \- Nexus Repository Manager container image 7 | 8 | # DESCRIPTION 9 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 10 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 11 | 12 | The nexus image is designed to be run by the atomic command with one of these options: 13 | 14 | `run` 15 | 16 | Starts the installed container with selected privileges to the host. 17 | 18 | `stop` 19 | 20 | Stops the installed container 21 | 22 | The container itself consists of: 23 | - Linux base image 24 | - Oracle Java JDK 25 | - Nexus Repository Manager 26 | - Atomic help file 27 | 28 | Files added to the container during docker build include: /help.1. 29 | 30 | # USAGE 31 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 32 | 33 | To run the nexus container: 34 | 35 | atomic run nexus 36 | 37 | To stop the nexus container (after it is installed), run: 38 | 39 | atomic stop nexus 40 | 41 | # LABELS 42 | The nexus container includes the following LABEL settings: 43 | 44 | That atomic command runs the docker command set in this label: 45 | 46 | `RUN=` 47 | 48 | LABEL RUN='docker run -d -p 8081:8081 --name ${NAME} ${IMAGE}' 49 | 50 | The contents of the RUN label tells an `atomic run nexus` command to open port 8081 & set the name of the container. 51 | 52 | `STOP=` 53 | 54 | LABEL STOP='docker stop ${NAME}' 55 | 56 | `Name=` 57 | 58 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 59 | 60 | `Version=` 61 | 62 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2-02". 63 | 64 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 65 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 66 | each option and associated LABEL: 67 | 68 | # SECURITY IMPLICATIONS 69 | 70 | `-d` 71 | 72 | Runs continuously as a daemon process in the background 73 | -------------------------------------------------------------------------------- /3.2.1/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.3.1/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.3.2/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.4.0/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.5.0/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.5.1/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.6.0/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.6.2/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.7.1/rhel/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.2.1/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.3.1/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.3.2/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.4.0/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.5.0/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.5.1/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.6.0/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.6.2/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.7.1/centos/help.1: -------------------------------------------------------------------------------- 1 | .PP 2 | % 3 | .BR NEXUS (1) 4 | Container Image Pages 5 | % Sonatype 6 | % November 21, 2016 7 | .TH NAME 8 | .PP 9 | nexus \- Nexus Repository Manager container image 10 | .SH DESCRIPTION 11 | .PP 12 | The nexus image provides a containerized packaging of the Nexus Repository Manager. 13 | Nexus Repository Manager is a repository manager with universal support for popular component formats including Maven, Docker, NuGet, npm, PyPi, Bower and more. 14 | .PP 15 | The nexus image is designed to be run by the atomic command with one of these options: 16 | .PP 17 | \fB\fCrun\fR 18 | .PP 19 | Starts the installed container with selected privileges to the host. 20 | .PP 21 | \fB\fCstop\fR 22 | .PP 23 | Stops the installed container 24 | .PP 25 | The container itself consists of: 26 | \- Linux base image 27 | \- Oracle Java JDK 28 | \- Nexus Repository Manager 29 | \- Atomic help file 30 | .PP 31 | Files added to the container during docker build include: /help.1. 32 | .SH USAGE 33 | .PP 34 | To use the nexus container, you can run the atomic command with run, stop, or uninstall options: 35 | .PP 36 | To run the nexus container: 37 | .IP 38 | atomic run nexus 39 | .PP 40 | To stop the nexus container (after it is installed), run: 41 | .IP 42 | atomic stop nexus 43 | .SH LABELS 44 | .PP 45 | The nexus container includes the following LABEL settings: 46 | .PP 47 | That atomic command runs the docker command set in this label: 48 | .PP 49 | \fB\fCRUN=\fR 50 | .IP 51 | LABEL RUN='docker run \-d \-p 8081:8081 \-\-name ${NAME} ${IMAGE}' 52 | .IP 53 | The contents of the RUN label tells an \fB\fCatomic run nexus\fR command to open port 8081 & set the name of the container. 54 | .PP 55 | \fB\fCSTOP=\fR 56 | .IP 57 | LABEL STOP='docker stop ${NAME}' 58 | .PP 59 | \fB\fCName=\fR 60 | .PP 61 | The registry location and name of the image. For example, Name="Nexus Repository Manager". 62 | .PP 63 | \fB\fCVersion=\fR 64 | .PP 65 | The Nexus Repository Manager version from which the container was built. For example, Version="3.0.2\-02". 66 | .PP 67 | When the atomic command runs the nexus container, it reads the command line associated with the selected option 68 | from a LABEL set within the Docker container itself. It then runs that command. The following sections detail 69 | each option and associated LABEL: 70 | .SH SECURITY IMPLICATIONS 71 | .PP 72 | \fB\fC\-d\fR 73 | .PP 74 | Runs continuously as a daemon process in the background 75 | -------------------------------------------------------------------------------- /3.2.1/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.2.1-01" \ 22 | release="3.2.1" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | # Install Runtime Environment 44 | RUN set -x && \ 45 | yum clean all && \ 46 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 47 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 48 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 49 | --security --sec-severity=Important --sec-severity=Critical && \ 50 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 51 | yum clean all 52 | 53 | # Install Nexus 54 | ENV SONATYPE_DIR=/opt/sonatype 55 | ENV NEXUS_DATA=/nexus-data \ 56 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 57 | NEXUS_VERSION=3.2.1-01 \ 58 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 59 | NEXUS_CONTEXT='' \ 60 | USER_NAME=nexus \ 61 | USER_UID=200 62 | 63 | # Install Nexus and Configure Nexus Runtime Environment 64 | RUN mkdir -p ${NEXUS_HOME} && \ 65 | curl --fail --silent --location --retry 3 \ 66 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 67 | | gunzip \ 68 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 69 | chown -R root:root ${NEXUS_HOME} && \ 70 | \ 71 | sed \ 72 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 73 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 74 | \ 75 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 76 | -c "${USER_NAME} application user" ${USER_NAME} && \ 77 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 78 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 79 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 80 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 81 | chmod ug+x /uid_entrypoint && \ 82 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 83 | 84 | VOLUME ${NEXUS_DATA} 85 | 86 | # arbitrary uid recognition at runtime - for OpenShift deployments 87 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 88 | 89 | # Supply non variable to USER command ${USER_NAME} 90 | USER 200 91 | WORKDIR ${NEXUS_HOME} 92 | 93 | ENV JAVA_MAX_MEM=1200m \ 94 | JAVA_MIN_MEM=1200m 95 | 96 | EXPOSE 8081 97 | 98 | ENTRYPOINT [ "/uid_entrypoint" ] 99 | CMD ["bin/nexus", "run"] 100 | -------------------------------------------------------------------------------- /3.3.2/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.3.2-02" \ 22 | release="3.3.2" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | # Install Runtime Environment 44 | RUN set -x && \ 45 | yum clean all && \ 46 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 47 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 48 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 49 | --security --sec-severity=Important --sec-severity=Critical && \ 50 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 51 | yum clean all 52 | 53 | # Install Nexus 54 | ENV SONATYPE_DIR=/opt/sonatype 55 | ENV NEXUS_DATA=/nexus-data \ 56 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 57 | NEXUS_VERSION=3.3.2-02 \ 58 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 59 | NEXUS_CONTEXT='' \ 60 | USER_NAME=nexus \ 61 | USER_UID=200 62 | 63 | # Install Nexus and Configure Nexus Runtime Environment 64 | RUN mkdir -p ${NEXUS_HOME} && \ 65 | curl --fail --silent --location --retry 3 \ 66 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 67 | | gunzip \ 68 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 69 | chown -R root:root ${NEXUS_HOME} && \ 70 | \ 71 | sed \ 72 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 73 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 74 | \ 75 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 76 | -c "${USER_NAME} application user" ${USER_NAME} && \ 77 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 78 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 79 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 80 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 81 | chmod ug+x /uid_entrypoint && \ 82 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 83 | 84 | VOLUME ${NEXUS_DATA} 85 | 86 | # arbitrary uid recognition at runtime - for OpenShift deployments 87 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 88 | 89 | # Supply non variable to USER command ${USER_NAME} 90 | USER 200 91 | WORKDIR ${NEXUS_HOME} 92 | 93 | ENV JAVA_MAX_MEM=1200m \ 94 | JAVA_MIN_MEM=1200m 95 | 96 | EXPOSE 8081 97 | 98 | ENTRYPOINT [ "/uid_entrypoint" ] 99 | CMD ["bin/nexus", "run"] 100 | -------------------------------------------------------------------------------- /3.4.0/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.4.0-02" \ 22 | release="3.4.0" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | COPY licenses /licenses 44 | 45 | # Install Runtime Environment 46 | RUN set -x && \ 47 | yum clean all && \ 48 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 49 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 50 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 51 | --security --sec-severity=Important --sec-severity=Critical && \ 52 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 53 | yum clean all 54 | 55 | # Install Nexus 56 | ENV SONATYPE_DIR=/opt/sonatype 57 | ENV NEXUS_DATA=/nexus-data \ 58 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 59 | NEXUS_VERSION=3.4.0-02 \ 60 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 61 | NEXUS_CONTEXT='' \ 62 | USER_NAME=nexus \ 63 | USER_UID=200 64 | 65 | # Install Nexus and Configure Nexus Runtime Environment 66 | RUN mkdir -p ${NEXUS_HOME} && \ 67 | curl --fail --silent --location --retry 3 \ 68 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 69 | | gunzip \ 70 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 71 | chown -R root:root ${NEXUS_HOME} && \ 72 | \ 73 | sed \ 74 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 75 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 76 | \ 77 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 78 | -c "${USER_NAME} application user" ${USER_NAME} && \ 79 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 80 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 81 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 82 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 83 | chmod ug+x /uid_entrypoint && \ 84 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 85 | 86 | VOLUME ${NEXUS_DATA} 87 | 88 | # arbitrary uid recognition at runtime - for OpenShift deployments 89 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 90 | 91 | # Supply non variable to USER command ${USER_NAME} 92 | USER 200 93 | WORKDIR ${NEXUS_HOME} 94 | 95 | ENV JAVA_MAX_MEM=1200m \ 96 | JAVA_MIN_MEM=1200m 97 | 98 | EXPOSE 8081 99 | 100 | ENTRYPOINT [ "/uid_entrypoint" ] 101 | CMD ["bin/nexus", "run"] 102 | -------------------------------------------------------------------------------- /3.5.0/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.5.0-02" \ 22 | release="3.5.0" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | COPY licenses /licenses 44 | 45 | # Install Runtime Environment 46 | RUN set -x && \ 47 | yum clean all && \ 48 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 49 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 50 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 51 | --security --sec-severity=Important --sec-severity=Critical && \ 52 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 53 | yum clean all 54 | 55 | # Install Nexus 56 | ENV SONATYPE_DIR=/opt/sonatype 57 | ENV NEXUS_DATA=/nexus-data \ 58 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 59 | NEXUS_VERSION=3.5.0-02 \ 60 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 61 | NEXUS_CONTEXT='' \ 62 | USER_NAME=nexus \ 63 | USER_UID=200 64 | 65 | # Install Nexus and Configure Nexus Runtime Environment 66 | RUN mkdir -p ${NEXUS_HOME} && \ 67 | curl --fail --silent --location --retry 3 \ 68 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 69 | | gunzip \ 70 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 71 | chown -R root:root ${NEXUS_HOME} && \ 72 | \ 73 | sed \ 74 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 75 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 76 | \ 77 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 78 | -c "${USER_NAME} application user" ${USER_NAME} && \ 79 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 80 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 81 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 82 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 83 | chmod ug+x /uid_entrypoint && \ 84 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 85 | 86 | VOLUME ${NEXUS_DATA} 87 | 88 | # arbitrary uid recognition at runtime - for OpenShift deployments 89 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 90 | 91 | # Supply non variable to USER command ${USER_NAME} 92 | USER 200 93 | WORKDIR ${NEXUS_HOME} 94 | 95 | ENV JAVA_MAX_MEM=1200m \ 96 | JAVA_MIN_MEM=1200m 97 | 98 | EXPOSE 8081 99 | 100 | ENTRYPOINT [ "/uid_entrypoint" ] 101 | CMD ["bin/nexus", "run"] 102 | -------------------------------------------------------------------------------- /3.5.1/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.5.1-02" \ 22 | release="3.5.1" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | COPY licenses /licenses 44 | 45 | # Install Runtime Environment 46 | RUN set -x && \ 47 | yum clean all && \ 48 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 49 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 50 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 51 | --security --sec-severity=Important --sec-severity=Critical && \ 52 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 53 | yum clean all 54 | 55 | # Install Nexus 56 | ENV SONATYPE_DIR=/opt/sonatype 57 | ENV NEXUS_DATA=/nexus-data \ 58 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 59 | NEXUS_VERSION=3.5.1-02 \ 60 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 61 | NEXUS_CONTEXT='' \ 62 | USER_NAME=nexus \ 63 | USER_UID=200 64 | 65 | # Install Nexus and Configure Nexus Runtime Environment 66 | RUN mkdir -p ${NEXUS_HOME} && \ 67 | curl --fail --silent --location --retry 3 \ 68 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 69 | | gunzip \ 70 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 71 | chown -R root:root ${NEXUS_HOME} && \ 72 | \ 73 | sed \ 74 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 75 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 76 | \ 77 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 78 | -c "${USER_NAME} application user" ${USER_NAME} && \ 79 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 80 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 81 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 82 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 83 | chmod ug+x /uid_entrypoint && \ 84 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 85 | 86 | VOLUME ${NEXUS_DATA} 87 | 88 | # arbitrary uid recognition at runtime - for OpenShift deployments 89 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 90 | 91 | # Supply non variable to USER command ${USER_NAME} 92 | USER 200 93 | WORKDIR ${NEXUS_HOME} 94 | 95 | ENV JAVA_MAX_MEM=1200m \ 96 | JAVA_MIN_MEM=1200m 97 | 98 | EXPOSE 8081 99 | 100 | ENTRYPOINT [ "/uid_entrypoint" ] 101 | CMD ["bin/nexus", "run"] 102 | -------------------------------------------------------------------------------- /3.6.0/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.6.0-02" \ 22 | release="3.6.0" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | COPY licenses /licenses 44 | 45 | # Install Runtime Environment 46 | RUN set -x && \ 47 | yum clean all && \ 48 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 49 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 50 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 51 | --security --sec-severity=Important --sec-severity=Critical && \ 52 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 53 | yum clean all 54 | 55 | # Install Nexus 56 | ENV SONATYPE_DIR=/opt/sonatype 57 | ENV NEXUS_DATA=/nexus-data \ 58 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 59 | NEXUS_VERSION=3.6.0-02 \ 60 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 61 | NEXUS_CONTEXT='' \ 62 | USER_NAME=nexus \ 63 | USER_UID=200 64 | 65 | # Install Nexus and Configure Nexus Runtime Environment 66 | RUN mkdir -p ${NEXUS_HOME} && \ 67 | curl --fail --silent --location --retry 3 \ 68 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 69 | | gunzip \ 70 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 71 | chown -R root:root ${NEXUS_HOME} && \ 72 | \ 73 | sed \ 74 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 75 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 76 | \ 77 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 78 | -c "${USER_NAME} application user" ${USER_NAME} && \ 79 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 80 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 81 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 82 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 83 | chmod ug+x /uid_entrypoint && \ 84 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 85 | 86 | VOLUME ${NEXUS_DATA} 87 | 88 | # arbitrary uid recognition at runtime - for OpenShift deployments 89 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 90 | 91 | # Supply non variable to USER command ${USER_NAME} 92 | USER 200 93 | WORKDIR ${NEXUS_HOME} 94 | 95 | ENV JAVA_MAX_MEM=1200m \ 96 | JAVA_MIN_MEM=1200m 97 | 98 | EXPOSE 8081 99 | 100 | ENTRYPOINT [ "/uid_entrypoint" ] 101 | CMD ["bin/nexus", "run"] 102 | -------------------------------------------------------------------------------- /3.6.2/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.6.2-01" \ 22 | release="3.6.2" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | COPY licenses /licenses 44 | 45 | # Install Runtime Environment 46 | RUN set -x && \ 47 | yum clean all && \ 48 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 49 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 50 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 51 | --security --sec-severity=Important --sec-severity=Critical && \ 52 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 53 | yum clean all 54 | 55 | # Install Nexus 56 | ENV SONATYPE_DIR=/opt/sonatype 57 | ENV NEXUS_DATA=/nexus-data \ 58 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 59 | NEXUS_VERSION=3.6.2-01 \ 60 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 61 | NEXUS_CONTEXT='' \ 62 | USER_NAME=nexus \ 63 | USER_UID=200 64 | 65 | # Install Nexus and Configure Nexus Runtime Environment 66 | RUN mkdir -p ${NEXUS_HOME} && \ 67 | curl --fail --silent --location --retry 3 \ 68 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 69 | | gunzip \ 70 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 71 | chown -R root:root ${NEXUS_HOME} && \ 72 | \ 73 | sed \ 74 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 75 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 76 | \ 77 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 78 | -c "${USER_NAME} application user" ${USER_NAME} && \ 79 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 80 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 81 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 82 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 83 | chmod ug+x /uid_entrypoint && \ 84 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 85 | 86 | VOLUME ${NEXUS_DATA} 87 | 88 | # arbitrary uid recognition at runtime - for OpenShift deployments 89 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 90 | 91 | # Supply non variable to USER command ${USER_NAME} 92 | USER 200 93 | WORKDIR ${NEXUS_HOME} 94 | 95 | ENV JAVA_MAX_MEM=1200m \ 96 | JAVA_MIN_MEM=1200m 97 | 98 | EXPOSE 8081 99 | 100 | ENTRYPOINT [ "/uid_entrypoint" ] 101 | CMD ["bin/nexus", "run"] 102 | -------------------------------------------------------------------------------- /3.7.1/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.7.1-02" \ 22 | release="3.7.1" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | COPY licenses /licenses 44 | 45 | # Install Runtime Environment 46 | RUN set -x && \ 47 | yum clean all && \ 48 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 49 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 50 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 51 | --security --sec-severity=Important --sec-severity=Critical && \ 52 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 53 | yum clean all 54 | 55 | # Install Nexus 56 | ENV SONATYPE_DIR=/opt/sonatype 57 | ENV NEXUS_DATA=/nexus-data \ 58 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 59 | NEXUS_VERSION=3.7.1-02 \ 60 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 61 | NEXUS_CONTEXT='' \ 62 | USER_NAME=nexus \ 63 | USER_UID=200 64 | 65 | # Install Nexus and Configure Nexus Runtime Environment 66 | RUN mkdir -p ${NEXUS_HOME} && \ 67 | curl --fail --silent --location --retry 3 \ 68 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 69 | | gunzip \ 70 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 71 | chown -R root:root ${NEXUS_HOME} && \ 72 | \ 73 | sed \ 74 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 75 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 76 | \ 77 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 78 | -c "${USER_NAME} application user" ${USER_NAME} && \ 79 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 80 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 81 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 82 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 83 | chmod ug+x /uid_entrypoint && \ 84 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 85 | 86 | VOLUME ${NEXUS_DATA} 87 | 88 | # arbitrary uid recognition at runtime - for OpenShift deployments 89 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 90 | 91 | # Supply non variable to USER command ${USER_NAME} 92 | USER 200 93 | WORKDIR ${NEXUS_HOME} 94 | 95 | ENV JAVA_MAX_MEM=1200m \ 96 | JAVA_MIN_MEM=1200m 97 | 98 | EXPOSE 8081 99 | 100 | ENTRYPOINT [ "/uid_entrypoint" ] 101 | CMD ["bin/nexus", "run"] 102 | -------------------------------------------------------------------------------- /3.3.1/rhel/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.3.1-01" \ 22 | release="3.3.1" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | # Install Runtime Environment 44 | RUN set -x && \ 45 | yum clean all && \ 46 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 47 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 48 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 49 | --security --sec-severity=Important --sec-severity=Critical && \ 50 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 51 | yum clean all 52 | 53 | # Install Nexus 54 | ENV SONATYPE_DIR=/opt/sonatype 55 | ENV NEXUS_DATA=/nexus-data \ 56 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 57 | NEXUS_VERSION=3.3.1-01 \ 58 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 59 | NEXUS_CONTEXT='' \ 60 | USER_NAME=nexus \ 61 | USER_UID=200 62 | 63 | # Install Nexus and Configure Nexus Runtime Environment 64 | RUN mkdir -p ${NEXUS_HOME} && \ 65 | curl --fail --silent --location --retry 3 \ 66 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 67 | | gunzip \ 68 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 69 | chown -R root:root ${NEXUS_HOME} && \ 70 | \ 71 | sed \ 72 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 73 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 74 | \ 75 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 76 | -c "${USER_NAME} application user" ${USER_NAME} && \ 77 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 78 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 79 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 80 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 81 | chmod ug+x /uid_entrypoint && \ 82 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 83 | 84 | VOLUME ${NEXUS_DATA} 85 | 86 | ### arbitrary uid recognition at runtime - for OpenShift deployments 87 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 88 | 89 | # Supply non variable to USER command ${USER_NAME} 90 | USER 200 91 | # Supply non variable to WORKDIR command ${NEXUS_HOME} 92 | WORKDIR /opt/sonatype/nexus 93 | 94 | ENV JAVA_MAX_MEM=1200m \ 95 | JAVA_MIN_MEM=1200m 96 | 97 | EXPOSE 8081 98 | 99 | ENTRYPOINT [ "/uid_entrypoint" ] 100 | CMD ["bin/nexus", "run"] 101 | -------------------------------------------------------------------------------- /Dockerfile-rhel.template: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM registry.access.redhat.com/rhel7/rhel 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="%%NEXUS_VERSION%%" \ 22 | release="%%NEXUS_VERSION_SHORT%%" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus,Repository Manager" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | COPY help.1 uid_entrypoint / 42 | 43 | COPY licenses /licenses 44 | 45 | # Install Runtime Environment 46 | RUN set -x && \ 47 | yum clean all && \ 48 | REPOLIST=rhel-7-server-rpms,rhel-7-server-optional-rpms,rhel-7-server-thirdparty-oracle-java-rpms \ 49 | INSTALL_PKGS="tar java-1.8.0-oracle-devel" && \ 50 | yum -y update-minimal --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs \ 51 | --security --sec-severity=Important --sec-severity=Critical && \ 52 | yum -y install --disablerepo "*" --enablerepo ${REPOLIST} --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ 53 | yum clean all 54 | 55 | # Install Nexus 56 | ENV SONATYPE_DIR=/opt/sonatype 57 | ENV NEXUS_DATA=/nexus-data \ 58 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 59 | NEXUS_VERSION=%%NEXUS_VERSION%% \ 60 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 61 | NEXUS_CONTEXT='' \ 62 | USER_NAME=nexus \ 63 | USER_UID=200 64 | 65 | # Install Nexus and Configure Nexus Runtime Environment 66 | RUN mkdir -p ${NEXUS_HOME} && \ 67 | curl --fail --silent --location --retry 3 \ 68 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 69 | | gunzip \ 70 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 71 | chown -R root:root ${NEXUS_HOME} && \ 72 | \ 73 | sed \ 74 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 75 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 76 | \ 77 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 78 | -c "${USER_NAME} application user" ${USER_NAME} && \ 79 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 80 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 81 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 82 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 83 | chmod ug+x /uid_entrypoint && \ 84 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 85 | 86 | VOLUME ${NEXUS_DATA} 87 | 88 | # arbitrary uid recognition at runtime - for OpenShift deployments 89 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 90 | 91 | # Supply non variable to USER command ${USER_NAME} 92 | USER 200 93 | WORKDIR ${NEXUS_HOME} 94 | 95 | ENV JAVA_MAX_MEM=1200m \ 96 | JAVA_MIN_MEM=1200m 97 | 98 | EXPOSE 8081 99 | 100 | ENTRYPOINT [ "/uid_entrypoint" ] 101 | CMD ["bin/nexus", "run"] -------------------------------------------------------------------------------- /README.old.md: -------------------------------------------------------------------------------- 1 | # sonatype/docker-rhel-nexus [![Build Status](https://travis-ci.org/sonatype/docker-rhel-nexus.svg?branch=master)](https://travis-ci.org/sonatype/docker-rhel-nexus) 2 | 3 | Breaking Change: In order to support an authoratative history of Dockerfiles, Dockerfiles are now stored by version and flavor. OpenShift templates have been updated to support this change (c.f. bd3781a). Thanks to @itewk for the heads up. | 4 | :---- | 5 | 6 | Dockerfile for Sonatype Nexus Repository Manager 3 with OpenJDK and 7 | Red Hat Enterprise Linux 7. Made to run on the Red Hat OpenShift Container 8 | Platform. 9 | 10 | * [Docker](#docker) 11 | * [Notes](#notes) 12 | * [Persistent Data](#persistent-data) 13 | * [OpenShift](#openshift) 14 | * [Building](#building) 15 | * [Quickstart](#quickstart) 16 | 17 | # Docker 18 | 19 | To (re)build the image: 20 | 21 | ``` 22 | $ docker build --rm=true --tag=sonatype/nexus3 . 23 | ``` 24 | 25 | To run, binding the exposed port 8081 to the host: 26 | 27 | ``` 28 | $ docker run -d -p 8081:8081 --name nexus sonatype/nexus3 29 | ``` 30 | 31 | To confirm the Nexus server is running on port 8081: 32 | 33 | ``` 34 | $ curl -u admin:admin123 http://localhost:8081/service/metrics/ping 35 | ``` 36 | 37 | ## Notes 38 | 39 | * Default credentials are: `admin` / `admin123` 40 | 41 | * It can take some time (2-3 minutes) for the service to launch in a 42 | new container. You can tail the log to determine once Nexus is ready: 43 | 44 | ``` 45 | $ docker logs -f nexus 46 | ``` 47 | 48 | * Installation of Nexus is to `/opt/sonatype/nexus`. 49 | 50 | * A persistent directory, `/nexus-data`, is used for configuration, 51 | logs, and storage. This directory needs to be writable by the Nexus 52 | process, which runs as UID 200. 53 | 54 | * Three environment variables can be used to control the JVM arguments 55 | 56 | * `JAVA_MAX_MEM`, passed as -Xmx. Defaults to `1200m`. 57 | 58 | * `JAVA_MIN_MEM`, passed as -Xms. Defaults to `1200m`. 59 | 60 | * `EXTRA_JAVA_OPTS`. Additional options can be passed to the JVM via 61 | this variable. 62 | 63 | These can be used supplied at runtime to control the JVM: 64 | 65 | ``` 66 | $ docker run -d -p 8081:8081 --name nexus -e JAVA_MAX_HEAP=768m sonatype/nexus3 67 | ``` 68 | 69 | 70 | ### Persistent Data 71 | 72 | There are two general approaches to handling persistent storage requirements 73 | with Docker. See [Managing Data in Containers](https://docs.docker.com/userguide/dockervolumes/) 74 | for additional information. 75 | 76 | 1. *Use a data volume*. Since data volumes are persistent 77 | until no containers use them, a volume can be created specifically for 78 | this purpose. This is the recommended approach. 79 | 80 | ``` 81 | $ docker volume create --name nexus-data 82 | $ docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/nexus3 83 | ``` 84 | 85 | 2. *Mount a host directory as the volume*. This is not portable, as it 86 | relies on the directory existing with correct permissions on the host. 87 | However it can be useful in certain situations where this volume needs 88 | to be assigned to certain specific underlying storage. 89 | 90 | ``` 91 | $ mkdir /some/dir/nexus-data && chown -R 200 /some/dir/nexus-data 92 | $ docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3 93 | ``` 94 | 95 | # OpenShift 96 | 97 | ## Building 98 | 99 | First login in to OpenShift and clone the project and OpenShift branch 100 | 101 | ``` 102 | git clone https://github.com/sonatype/docker-rhel-nexus.git 103 | ``` 104 | 105 | ## Quickstart 106 | 107 | If you would like to run the init.sh script provided in the repository, 108 | it will create an OpenShift project named `nexus` within your OpenShift 109 | instance which has a pre-made template for Nexus 3. 110 | 111 | ``` 112 | cd docker-rhel-nexus/OpenShift/ 113 | ./init.sh 114 | ``` 115 | 116 | After using the init.sh script, browse to the OpenShift console and login. 117 | In the nexus project, click `Add to Project` and search for Nexus. Click 118 | create and configure to create a Nexus service. Wait until the service has 119 | been created and the deployment is successful. A Nexus instance should now 120 | be available on the configured service. 121 | -------------------------------------------------------------------------------- /3.2.1/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.2.1-01" \ 22 | release="3.2.1" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=131 \ 44 | JAVA_VERSION_BUILD=11 \ 45 | JAVA_DOWNLOAD_HASH=d54c1d3a095b4ff2b6607d096fa80163 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 53 | yum clean all && \ 54 | curl --remote-name --fail --silent --location --retry 3 \ 55 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 56 | ${JAVA_URL}${JAVA_RPM} && \ 57 | yum localinstall -y ${JAVA_RPM} && \ 58 | yum clean all && \ 59 | rm ${JAVA_RPM} 60 | 61 | # Install Nexus 62 | ENV SONATYPE_DIR=/opt/sonatype 63 | ENV NEXUS_DATA=/nexus-data \ 64 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 65 | NEXUS_VERSION=3.2.1-01 \ 66 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 67 | NEXUS_CONTEXT='' \ 68 | USER_NAME=nexus \ 69 | USER_UID=200 70 | 71 | # Install Nexus and Configure Nexus Runtime Environment 72 | RUN mkdir -p ${NEXUS_HOME} && \ 73 | curl --fail --silent --location --retry 3 \ 74 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 75 | | gunzip \ 76 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 77 | chown -R root:root ${NEXUS_HOME} && \ 78 | \ 79 | sed \ 80 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 81 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 82 | \ 83 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 84 | -c "${USER_NAME} application user" ${USER_NAME} && \ 85 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 86 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 87 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 88 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 89 | chmod ug+x /uid_entrypoint && \ 90 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 91 | 92 | VOLUME ${NEXUS_DATA} 93 | 94 | # arbitrary uid recognition at runtime - for OpenShift deployments 95 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 96 | 97 | # Supply non variable to USER command ${USER_NAME} 98 | USER 200 99 | WORKDIR ${NEXUS_HOME} 100 | 101 | ENV JAVA_MAX_MEM=1200m \ 102 | JAVA_MIN_MEM=1200m 103 | 104 | EXPOSE 8081 105 | 106 | ENTRYPOINT [ "/uid_entrypoint" ] 107 | CMD ["bin/nexus", "run"] 108 | -------------------------------------------------------------------------------- /3.3.1/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.3.1-01" \ 22 | release="3.3.1" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=131 \ 44 | JAVA_VERSION_BUILD=11 \ 45 | JAVA_DOWNLOAD_HASH=d54c1d3a095b4ff2b6607d096fa80163 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 53 | yum clean all && \ 54 | curl --remote-name --fail --silent --location --retry 3 \ 55 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 56 | ${JAVA_URL}${JAVA_RPM} && \ 57 | yum localinstall -y ${JAVA_RPM} && \ 58 | yum clean all && \ 59 | rm ${JAVA_RPM} 60 | 61 | # Install Nexus 62 | ENV SONATYPE_DIR=/opt/sonatype 63 | ENV NEXUS_DATA=/nexus-data \ 64 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 65 | NEXUS_VERSION=3.3.1-01 \ 66 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 67 | NEXUS_CONTEXT='' \ 68 | USER_NAME=nexus \ 69 | USER_UID=200 70 | 71 | # Install Nexus and Configure Nexus Runtime Environment 72 | RUN mkdir -p ${NEXUS_HOME} && \ 73 | curl --fail --silent --location --retry 3 \ 74 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 75 | | gunzip \ 76 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 77 | chown -R root:root ${NEXUS_HOME} && \ 78 | \ 79 | sed \ 80 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 81 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 82 | \ 83 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 84 | -c "${USER_NAME} application user" ${USER_NAME} && \ 85 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 86 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 87 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 88 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 89 | chmod ug+x /uid_entrypoint && \ 90 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 91 | 92 | VOLUME ${NEXUS_DATA} 93 | 94 | # arbitrary uid recognition at runtime - for OpenShift deployments 95 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 96 | 97 | # Supply non variable to USER command ${USER_NAME} 98 | USER 200 99 | WORKDIR ${NEXUS_HOME} 100 | 101 | ENV JAVA_MAX_MEM=1200m \ 102 | JAVA_MIN_MEM=1200m 103 | 104 | EXPOSE 8081 105 | 106 | ENTRYPOINT [ "/uid_entrypoint" ] 107 | CMD ["bin/nexus", "run"] 108 | -------------------------------------------------------------------------------- /3.3.2/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.3.2-02" \ 22 | release="3.3.2" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=131 \ 44 | JAVA_VERSION_BUILD=11 \ 45 | JAVA_DOWNLOAD_HASH=d54c1d3a095b4ff2b6607d096fa80163 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 53 | yum clean all && \ 54 | curl --remote-name --fail --silent --location --retry 3 \ 55 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 56 | ${JAVA_URL}${JAVA_RPM} && \ 57 | yum localinstall -y ${JAVA_RPM} && \ 58 | yum clean all && \ 59 | rm ${JAVA_RPM} 60 | 61 | # Install Nexus 62 | ENV SONATYPE_DIR=/opt/sonatype 63 | ENV NEXUS_DATA=/nexus-data \ 64 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 65 | NEXUS_VERSION=3.3.2-02 \ 66 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 67 | NEXUS_CONTEXT='' \ 68 | USER_NAME=nexus \ 69 | USER_UID=200 70 | 71 | # Install Nexus and Configure Nexus Runtime Environment 72 | RUN mkdir -p ${NEXUS_HOME} && \ 73 | curl --fail --silent --location --retry 3 \ 74 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 75 | | gunzip \ 76 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 77 | chown -R root:root ${NEXUS_HOME} && \ 78 | \ 79 | sed \ 80 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 81 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 82 | \ 83 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 84 | -c "${USER_NAME} application user" ${USER_NAME} && \ 85 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 86 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 87 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 88 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 89 | chmod ug+x /uid_entrypoint && \ 90 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 91 | 92 | VOLUME ${NEXUS_DATA} 93 | 94 | # arbitrary uid recognition at runtime - for OpenShift deployments 95 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 96 | 97 | # Supply non variable to USER command ${USER_NAME} 98 | USER 200 99 | WORKDIR ${NEXUS_HOME} 100 | 101 | ENV JAVA_MAX_MEM=1200m \ 102 | JAVA_MIN_MEM=1200m 103 | 104 | EXPOSE 8081 105 | 106 | ENTRYPOINT [ "/uid_entrypoint" ] 107 | CMD ["bin/nexus", "run"] 108 | -------------------------------------------------------------------------------- /3.4.0/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.4.0-02" \ 22 | release="3.4.0" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=131 \ 44 | JAVA_VERSION_BUILD=11 \ 45 | JAVA_DOWNLOAD_HASH=d54c1d3a095b4ff2b6607d096fa80163 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | COPY licenses /licenses 53 | 54 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 55 | yum clean all && \ 56 | curl --remote-name --fail --silent --location --retry 3 \ 57 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 58 | ${JAVA_URL}${JAVA_RPM} && \ 59 | yum localinstall -y ${JAVA_RPM} && \ 60 | yum clean all && \ 61 | rm ${JAVA_RPM} 62 | 63 | # Install Nexus 64 | ENV SONATYPE_DIR=/opt/sonatype 65 | ENV NEXUS_DATA=/nexus-data \ 66 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 67 | NEXUS_VERSION=3.4.0-02 \ 68 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 69 | NEXUS_CONTEXT='' \ 70 | USER_NAME=nexus \ 71 | USER_UID=200 72 | 73 | # Install Nexus and Configure Nexus Runtime Environment 74 | RUN mkdir -p ${NEXUS_HOME} && \ 75 | curl --fail --silent --location --retry 3 \ 76 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 77 | | gunzip \ 78 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 79 | chown -R root:root ${NEXUS_HOME} && \ 80 | \ 81 | sed \ 82 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 83 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 84 | \ 85 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 86 | -c "${USER_NAME} application user" ${USER_NAME} && \ 87 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 88 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 89 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 90 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 91 | chmod ug+x /uid_entrypoint && \ 92 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 93 | 94 | VOLUME ${NEXUS_DATA} 95 | 96 | # arbitrary uid recognition at runtime - for OpenShift deployments 97 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 98 | 99 | # Supply non variable to USER command ${USER_NAME} 100 | USER 200 101 | WORKDIR ${NEXUS_HOME} 102 | 103 | ENV JAVA_MAX_MEM=1200m \ 104 | JAVA_MIN_MEM=1200m 105 | 106 | EXPOSE 8081 107 | 108 | ENTRYPOINT [ "/uid_entrypoint" ] 109 | CMD ["bin/nexus", "run"] 110 | -------------------------------------------------------------------------------- /3.5.0/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.5.0-02" \ 22 | release="3.5.0" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=141 \ 44 | JAVA_VERSION_BUILD=15 \ 45 | JAVA_DOWNLOAD_HASH=336fa29ff2bb4ef291e347e091f7f4a7 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | COPY licenses /licenses 53 | 54 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 55 | yum clean all && \ 56 | curl --remote-name --fail --silent --location --retry 3 \ 57 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 58 | ${JAVA_URL}${JAVA_RPM} && \ 59 | yum localinstall -y ${JAVA_RPM} && \ 60 | yum clean all && \ 61 | rm ${JAVA_RPM} 62 | 63 | # Install Nexus 64 | ENV SONATYPE_DIR=/opt/sonatype 65 | ENV NEXUS_DATA=/nexus-data \ 66 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 67 | NEXUS_VERSION=3.5.0-02 \ 68 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 69 | NEXUS_CONTEXT='' \ 70 | USER_NAME=nexus \ 71 | USER_UID=200 72 | 73 | # Install Nexus and Configure Nexus Runtime Environment 74 | RUN mkdir -p ${NEXUS_HOME} && \ 75 | curl --fail --silent --location --retry 3 \ 76 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 77 | | gunzip \ 78 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 79 | chown -R root:root ${NEXUS_HOME} && \ 80 | \ 81 | sed \ 82 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 83 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 84 | \ 85 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 86 | -c "${USER_NAME} application user" ${USER_NAME} && \ 87 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 88 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 89 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 90 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 91 | chmod ug+x /uid_entrypoint && \ 92 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 93 | 94 | VOLUME ${NEXUS_DATA} 95 | 96 | # arbitrary uid recognition at runtime - for OpenShift deployments 97 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 98 | 99 | # Supply non variable to USER command ${USER_NAME} 100 | USER 200 101 | WORKDIR ${NEXUS_HOME} 102 | 103 | ENV JAVA_MAX_MEM=1200m \ 104 | JAVA_MIN_MEM=1200m 105 | 106 | EXPOSE 8081 107 | 108 | ENTRYPOINT [ "/uid_entrypoint" ] 109 | CMD ["bin/nexus", "run"] 110 | -------------------------------------------------------------------------------- /3.5.1/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.5.1-02" \ 22 | release="3.5.1" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=141 \ 44 | JAVA_VERSION_BUILD=15 \ 45 | JAVA_DOWNLOAD_HASH=336fa29ff2bb4ef291e347e091f7f4a7 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | COPY licenses /licenses 53 | 54 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 55 | yum clean all && \ 56 | curl --remote-name --fail --silent --location --retry 3 \ 57 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 58 | ${JAVA_URL}${JAVA_RPM} && \ 59 | yum localinstall -y ${JAVA_RPM} && \ 60 | yum clean all && \ 61 | rm ${JAVA_RPM} 62 | 63 | # Install Nexus 64 | ENV SONATYPE_DIR=/opt/sonatype 65 | ENV NEXUS_DATA=/nexus-data \ 66 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 67 | NEXUS_VERSION=3.5.1-02 \ 68 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 69 | NEXUS_CONTEXT='' \ 70 | USER_NAME=nexus \ 71 | USER_UID=200 72 | 73 | # Install Nexus and Configure Nexus Runtime Environment 74 | RUN mkdir -p ${NEXUS_HOME} && \ 75 | curl --fail --silent --location --retry 3 \ 76 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 77 | | gunzip \ 78 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 79 | chown -R root:root ${NEXUS_HOME} && \ 80 | \ 81 | sed \ 82 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 83 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 84 | \ 85 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 86 | -c "${USER_NAME} application user" ${USER_NAME} && \ 87 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 88 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 89 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 90 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 91 | chmod ug+x /uid_entrypoint && \ 92 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 93 | 94 | VOLUME ${NEXUS_DATA} 95 | 96 | # arbitrary uid recognition at runtime - for OpenShift deployments 97 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 98 | 99 | # Supply non variable to USER command ${USER_NAME} 100 | USER 200 101 | WORKDIR ${NEXUS_HOME} 102 | 103 | ENV JAVA_MAX_MEM=1200m \ 104 | JAVA_MIN_MEM=1200m 105 | 106 | EXPOSE 8081 107 | 108 | ENTRYPOINT [ "/uid_entrypoint" ] 109 | CMD ["bin/nexus", "run"] 110 | -------------------------------------------------------------------------------- /3.6.0/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.6.0-02" \ 22 | release="3.6.0" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=141 \ 44 | JAVA_VERSION_BUILD=15 \ 45 | JAVA_DOWNLOAD_HASH=336fa29ff2bb4ef291e347e091f7f4a7 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | COPY licenses /licenses 53 | 54 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 55 | yum clean all && \ 56 | curl --remote-name --fail --silent --location --retry 3 \ 57 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 58 | ${JAVA_URL}${JAVA_RPM} && \ 59 | yum localinstall -y ${JAVA_RPM} && \ 60 | yum clean all && \ 61 | rm ${JAVA_RPM} 62 | 63 | # Install Nexus 64 | ENV SONATYPE_DIR=/opt/sonatype 65 | ENV NEXUS_DATA=/nexus-data \ 66 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 67 | NEXUS_VERSION=3.6.0-02 \ 68 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 69 | NEXUS_CONTEXT='' \ 70 | USER_NAME=nexus \ 71 | USER_UID=200 72 | 73 | # Install Nexus and Configure Nexus Runtime Environment 74 | RUN mkdir -p ${NEXUS_HOME} && \ 75 | curl --fail --silent --location --retry 3 \ 76 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 77 | | gunzip \ 78 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 79 | chown -R root:root ${NEXUS_HOME} && \ 80 | \ 81 | sed \ 82 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 83 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 84 | \ 85 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 86 | -c "${USER_NAME} application user" ${USER_NAME} && \ 87 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 88 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 89 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 90 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 91 | chmod ug+x /uid_entrypoint && \ 92 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 93 | 94 | VOLUME ${NEXUS_DATA} 95 | 96 | # arbitrary uid recognition at runtime - for OpenShift deployments 97 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 98 | 99 | # Supply non variable to USER command ${USER_NAME} 100 | USER 200 101 | WORKDIR ${NEXUS_HOME} 102 | 103 | ENV JAVA_MAX_MEM=1200m \ 104 | JAVA_MIN_MEM=1200m 105 | 106 | EXPOSE 8081 107 | 108 | ENTRYPOINT [ "/uid_entrypoint" ] 109 | CMD ["bin/nexus", "run"] 110 | -------------------------------------------------------------------------------- /3.6.2/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.6.2-01" \ 22 | release="3.6.2" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=141 \ 44 | JAVA_VERSION_BUILD=15 \ 45 | JAVA_DOWNLOAD_HASH=336fa29ff2bb4ef291e347e091f7f4a7 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | COPY licenses /licenses 53 | 54 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 55 | yum clean all && \ 56 | curl --remote-name --fail --silent --location --retry 3 \ 57 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 58 | ${JAVA_URL}${JAVA_RPM} && \ 59 | yum localinstall -y ${JAVA_RPM} && \ 60 | yum clean all && \ 61 | rm ${JAVA_RPM} 62 | 63 | # Install Nexus 64 | ENV SONATYPE_DIR=/opt/sonatype 65 | ENV NEXUS_DATA=/nexus-data \ 66 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 67 | NEXUS_VERSION=3.6.2-01 \ 68 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 69 | NEXUS_CONTEXT='' \ 70 | USER_NAME=nexus \ 71 | USER_UID=200 72 | 73 | # Install Nexus and Configure Nexus Runtime Environment 74 | RUN mkdir -p ${NEXUS_HOME} && \ 75 | curl --fail --silent --location --retry 3 \ 76 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 77 | | gunzip \ 78 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 79 | chown -R root:root ${NEXUS_HOME} && \ 80 | \ 81 | sed \ 82 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 83 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 84 | \ 85 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 86 | -c "${USER_NAME} application user" ${USER_NAME} && \ 87 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 88 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 89 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 90 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 91 | chmod ug+x /uid_entrypoint && \ 92 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 93 | 94 | VOLUME ${NEXUS_DATA} 95 | 96 | # arbitrary uid recognition at runtime - for OpenShift deployments 97 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 98 | 99 | # Supply non variable to USER command ${USER_NAME} 100 | USER 200 101 | WORKDIR ${NEXUS_HOME} 102 | 103 | ENV JAVA_MAX_MEM=1200m \ 104 | JAVA_MIN_MEM=1200m 105 | 106 | EXPOSE 8081 107 | 108 | ENTRYPOINT [ "/uid_entrypoint" ] 109 | CMD ["bin/nexus", "run"] 110 | -------------------------------------------------------------------------------- /3.7.1/centos/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="3.7.1-02" \ 22 | release="3.7.1" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=141 \ 44 | JAVA_VERSION_BUILD=15 \ 45 | JAVA_DOWNLOAD_HASH=336fa29ff2bb4ef291e347e091f7f4a7 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | COPY licenses /licenses 53 | 54 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 55 | yum clean all && \ 56 | curl --remote-name --fail --silent --location --retry 3 \ 57 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 58 | ${JAVA_URL}${JAVA_RPM} && \ 59 | yum localinstall -y ${JAVA_RPM} && \ 60 | yum clean all && \ 61 | rm ${JAVA_RPM} 62 | 63 | # Install Nexus 64 | ENV SONATYPE_DIR=/opt/sonatype 65 | ENV NEXUS_DATA=/nexus-data \ 66 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 67 | NEXUS_VERSION=3.7.1-02 \ 68 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 69 | NEXUS_CONTEXT='' \ 70 | USER_NAME=nexus \ 71 | USER_UID=200 72 | 73 | # Install Nexus and Configure Nexus Runtime Environment 74 | RUN mkdir -p ${NEXUS_HOME} && \ 75 | curl --fail --silent --location --retry 3 \ 76 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 77 | | gunzip \ 78 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 79 | chown -R root:root ${NEXUS_HOME} && \ 80 | \ 81 | sed \ 82 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 83 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 84 | \ 85 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 86 | -c "${USER_NAME} application user" ${USER_NAME} && \ 87 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 88 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 89 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 90 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 91 | chmod ug+x /uid_entrypoint && \ 92 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 93 | 94 | VOLUME ${NEXUS_DATA} 95 | 96 | # arbitrary uid recognition at runtime - for OpenShift deployments 97 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 98 | 99 | # Supply non variable to USER command ${USER_NAME} 100 | USER 200 101 | WORKDIR ${NEXUS_HOME} 102 | 103 | ENV JAVA_MAX_MEM=1200m \ 104 | JAVA_MIN_MEM=1200m 105 | 106 | EXPOSE 8081 107 | 108 | ENTRYPOINT [ "/uid_entrypoint" ] 109 | CMD ["bin/nexus", "run"] 110 | -------------------------------------------------------------------------------- /Dockerfile-centos.template: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2016-present Sonatype, Inc. 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | FROM docker.io/centos:7 16 | MAINTAINER Sonatype 17 | 18 | # Atomic Labels 19 | LABEL name="Nexus Repository Manager" \ 20 | vendor="Sonatype" \ 21 | version="%%NEXUS_VERSION%%" \ 22 | release="%%NEXUS_VERSION_SHORT%%" \ 23 | url="https://sonatype.com" \ 24 | summary="The Nexus Repository Manager server \ 25 | with universal support for popular component formats." \ 26 | run="docker run -d --name NAME \ 27 | -p 8081:8081 \ 28 | IMAGE" \ 29 | stop="docker stop NAME" 30 | 31 | # OpenShift Labels 32 | LABEL io.k8s.description="The Nexus Repository Manager server \ 33 | with universal support for popular component formats." \ 34 | io.k8s.display-name="Nexus Repository Manager" \ 35 | io.openshift.expose-services="8081:8081" \ 36 | io.openshift.tags="Sonatype,Nexus" 37 | 38 | # Sonatype Labels 39 | LABEL com.sonatype.license="Apache License, Version 2.0" 40 | 41 | # Install Runtime Environment 42 | ENV JAVA_VERSION_MAJOR=8 \ 43 | JAVA_VERSION_MINOR=141 \ 44 | JAVA_VERSION_BUILD=15 \ 45 | JAVA_DOWNLOAD_HASH=336fa29ff2bb4ef291e347e091f7f4a7 46 | 47 | ENV JAVA_URL=http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_DOWNLOAD_HASH}/ \ 48 | JAVA_RPM=jdk-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm 49 | 50 | COPY help.1 uid_entrypoint / 51 | 52 | COPY licenses /licenses 53 | 54 | RUN yum install -y --setopt=tsflags=nodocs curl tar && \ 55 | yum clean all && \ 56 | curl --remote-name --fail --silent --location --retry 3 \ 57 | --header "Cookie: oraclelicense=accept-securebackup-cookie; " \ 58 | ${JAVA_URL}${JAVA_RPM} && \ 59 | yum localinstall -y ${JAVA_RPM} && \ 60 | yum clean all && \ 61 | rm ${JAVA_RPM} 62 | 63 | # Install Nexus 64 | ENV SONATYPE_DIR=/opt/sonatype 65 | ENV NEXUS_DATA=/nexus-data \ 66 | NEXUS_HOME=${SONATYPE_DIR}/nexus \ 67 | NEXUS_VERSION=%%NEXUS_VERSION%% \ 68 | SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \ 69 | NEXUS_CONTEXT='' \ 70 | USER_NAME=nexus \ 71 | USER_UID=200 72 | 73 | # Install Nexus and Configure Nexus Runtime Environment 74 | RUN mkdir -p ${NEXUS_HOME} && \ 75 | curl --fail --silent --location --retry 3 \ 76 | https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ 77 | | gunzip \ 78 | | tar x -C ${NEXUS_HOME} --strip-components=1 nexus-${NEXUS_VERSION} && \ 79 | chown -R root:root ${NEXUS_HOME} && \ 80 | \ 81 | sed \ 82 | -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' \ 83 | -i ${NEXUS_HOME}/etc/nexus-default.properties && \ 84 | \ 85 | useradd -l -u ${USER_UID} -r -g 0 -m -d ${NEXUS_DATA} -s /sbin/no-login \ 86 | -c "${USER_NAME} application user" ${USER_NAME} && \ 87 | mkdir -p ${NEXUS_DATA}/etc ${NEXUS_DATA}/log ${NEXUS_DATA}/tmp ${SONATYPE_WORK} && \ 88 | ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 && \ 89 | chown -R ${USER_NAME}:0 ${NEXUS_DATA} && \ 90 | chmod -R g+rw ${NEXUS_DATA} /etc/passwd && \ 91 | chmod ug+x /uid_entrypoint && \ 92 | find ${NEXUS_DATA} -type d -exec chmod g+x {} + 93 | 94 | VOLUME ${NEXUS_DATA} 95 | 96 | # arbitrary uid recognition at runtime - for OpenShift deployments 97 | RUN sed "s@${USER_NAME}:x:${USER_UID}:@${USER_NAME}:x:\${USER_ID}:@g" /etc/passwd > /etc/passwd.template 98 | 99 | # Supply non variable to USER command ${USER_NAME} 100 | USER 200 101 | WORKDIR ${NEXUS_HOME} 102 | 103 | ENV JAVA_MAX_MEM=1200m \ 104 | JAVA_MIN_MEM=1200m 105 | 106 | EXPOSE 8081 107 | 108 | ENTRYPOINT [ "/uid_entrypoint" ] 109 | CMD ["bin/nexus", "run"] 110 | -------------------------------------------------------------------------------- /OpenShift/nexus-centos.json: -------------------------------------------------------------------------------- 1 | { 2 | "kind": "List", 3 | "apiVersion": "v1", 4 | "metadata": { 5 | "name": "nexus" 6 | }, 7 | "items": [ 8 | { 9 | "kind": "BuildConfig", 10 | "apiVersion": "v1", 11 | "metadata": { 12 | "name": "nexus" 13 | }, 14 | "spec": { 15 | "triggers": [ 16 | { 17 | "type": "GitHub", 18 | "github": { 19 | "secret": "secret" 20 | } 21 | }, 22 | { 23 | "type": "Generic", 24 | "generic": { 25 | "secret": "secret" 26 | } 27 | }, 28 | { 29 | "type": "ImageChange", 30 | "imageChange": {} 31 | }, 32 | { 33 | "type": "ConfigChange" 34 | } 35 | ], 36 | "source": { 37 | "type": "Git", 38 | "git": { 39 | "uri": "https://github.com/sonatype/docker-rhel-nexus.git", 40 | "ref": "master" 41 | }, 42 | "contextDir": "current/centos" 43 | }, 44 | "strategy": { 45 | "type": "Docker", 46 | "dockerStrategy": { 47 | "dockerfilePath": "Dockerfile" 48 | } 49 | }, 50 | "output": { 51 | "to": { 52 | "kind": "ImageStreamTag", 53 | "name": "nexus:latest" 54 | } 55 | }, 56 | "resources": {} 57 | } 58 | }, 59 | { 60 | "kind": "ImageStream", 61 | "apiVersion": "v1", 62 | "metadata": { 63 | "name": "nexus" 64 | }, 65 | "spec": { 66 | "dockerImageRepository": "", 67 | "tags": [ 68 | { 69 | "name": "latest" 70 | } 71 | ] 72 | } 73 | }, 74 | { 75 | "kind": "Template", 76 | "apiVersion": "v1", 77 | "metadata": { 78 | "name": "nexus", 79 | "annotations": { 80 | "description": "Nexus Repository Manager 3", 81 | "tags": "repository-manager,nexus3,nexus,sonatype" 82 | } 83 | }, 84 | "labels": { 85 | "application": "nexus", 86 | "createdBy": "template-nexus" 87 | }, 88 | "parameters": [ 89 | { 90 | "description": "The name for the application. The service will be named like the application.", 91 | "displayName": "Application name.", 92 | "name": "APPLICATION_NAME", 93 | "value": "nexus" 94 | }, 95 | { 96 | "description": "Custom hostname for service routes. Leave blank for default hostname, e.g.: ..", 97 | "displayName": "Nexus instance hostname", 98 | "name": "APPLICATION_HOSTNAME" 99 | }, 100 | { 101 | "description": "Persistent Volume Size (512Mi, 5Gi,...)", 102 | "displayName": "Persistent Volume Size", 103 | "name": "SIZE", 104 | "value": "2Gi", 105 | "required": true 106 | } 107 | ], 108 | "objects": [ 109 | { 110 | "kind": "PersistentVolumeClaim", 111 | "apiVersion": "v1", 112 | "metadata": { 113 | "name": "${APPLICATION_NAME}" 114 | }, 115 | "spec": { 116 | "accessModes": [ 117 | "ReadWriteOnce" 118 | ], 119 | "resources": { 120 | "requests": { 121 | "storage": "${SIZE}" 122 | } 123 | } 124 | } 125 | }, 126 | { 127 | "kind": "DeploymentConfig", 128 | "apiVersion": "v1", 129 | "metadata": { 130 | "name": "${APPLICATION_NAME}", 131 | "creationTimestamp": null, 132 | "labels": { 133 | "application": "${APPLICATION_NAME}" 134 | } 135 | }, 136 | "spec": { 137 | "strategy": { 138 | "type": "Recreate", 139 | "resources": {} 140 | }, 141 | "triggers": [ 142 | { 143 | "type": "ImageChange", 144 | "imageChangeParams": { 145 | "automatic": true, 146 | "containerNames": [ 147 | "${APPLICATION_NAME}" 148 | ], 149 | "from": { 150 | "kind": "ImageStreamTag", 151 | "name": "nexus:latest" 152 | } 153 | } 154 | }, 155 | { 156 | "type": "ConfigChange" 157 | } 158 | ], 159 | "replicas": 1, 160 | "selector": { 161 | "name": "${APPLICATION_NAME}" 162 | }, 163 | "template": { 164 | "metadata": { 165 | "labels": { 166 | "name": "${APPLICATION_NAME}" 167 | } 168 | }, 169 | "spec": { 170 | "volumes": [ 171 | { 172 | "name": "nexus-data", 173 | "persistentVolumeClaim": { 174 | "claimName": "${APPLICATION_NAME}" 175 | } 176 | } 177 | ], 178 | "containers": [ 179 | { 180 | "name": "${APPLICATION_NAME}", 181 | "image": "nexus", 182 | "ports": [ 183 | { 184 | "name": "web-port", 185 | "containerPort": 8081, 186 | "protocol": "TCP" 187 | } 188 | ], 189 | "volumeMounts": [ 190 | { 191 | "name": "nexus-data", 192 | "mountPath": "/nexus-data" 193 | } 194 | ], 195 | "resources": {}, 196 | "terminationMessagePath": "/dev/termination-log", 197 | "imagePullPolicy": "Always", 198 | "securityContext": { 199 | "capabilities": {}, 200 | "privileged": false 201 | }, 202 | "readinessProbe": { 203 | "httpGet": { 204 | "path": "/service/metrics/ping", 205 | "port": "web-port", 206 | "httpHeaders": [ 207 | { 208 | "name": "Authorization", 209 | "value": "Basic YWRtaW46YWRtaW4xMjM=" 210 | } 211 | ] 212 | }, 213 | "initialDelaySeconds": 120, 214 | "timeoutSeconds": 5 215 | }, 216 | "livenessProbe": { 217 | "httpGet": { 218 | "path": "/service/metrics/ping", 219 | "port": "web-port", 220 | "httpHeaders": [ 221 | { 222 | "name": "Authorization", 223 | "value": "Basic YWRtaW46YWRtaW4xMjM=" 224 | } 225 | ] 226 | }, 227 | "initialDelaySeconds": 120, 228 | "timeoutSeconds": 5 229 | } 230 | } 231 | ], 232 | "restartPolicy": "Always", 233 | "dnsPolicy": "ClusterFirst" 234 | } 235 | } 236 | } 237 | }, 238 | { 239 | "kind": "Route", 240 | "apiVersion": "v1", 241 | "metadata": { 242 | "name": "${APPLICATION_NAME}", 243 | "creationTimestamp": null 244 | }, 245 | "spec": { 246 | "host": "${APPLICATION_HOSTNAME}", 247 | "to": { 248 | "kind": "Service", 249 | "name": "${APPLICATION_NAME}" 250 | } 251 | } 252 | }, 253 | { 254 | "kind": "Service", 255 | "apiVersion": "v1", 256 | "metadata": { 257 | "name": "${APPLICATION_NAME}", 258 | "creationTimestamp": null, 259 | "labels": { 260 | "application": "${APPLICATION_NAME}" 261 | } 262 | }, 263 | "spec": { 264 | "ports": [ 265 | { 266 | "name": "web", 267 | "protocol": "TCP", 268 | "port": 8081, 269 | "targetPort": 8081, 270 | "nodePort": 0 271 | } 272 | ], 273 | "selector": { 274 | "deploymentconfig": "${APPLICATION_NAME}" 275 | }, 276 | "portalIP": "", 277 | "type": "ClusterIP", 278 | "sessionAffinity": "None" 279 | } 280 | } 281 | ] 282 | } 283 | ] 284 | } 285 | -------------------------------------------------------------------------------- /OpenShift/nexus-rhel.json: -------------------------------------------------------------------------------- 1 | { 2 | "kind": "List", 3 | "apiVersion": "v1", 4 | "metadata": { 5 | "name": "nexus" 6 | }, 7 | "items": [ 8 | { 9 | "kind": "BuildConfig", 10 | "apiVersion": "v1", 11 | "metadata": { 12 | "name": "nexus" 13 | }, 14 | "spec": { 15 | "triggers": [ 16 | { 17 | "type": "GitHub", 18 | "github": { 19 | "secret": "secret" 20 | } 21 | }, 22 | { 23 | "type": "Generic", 24 | "generic": { 25 | "secret": "secret" 26 | } 27 | }, 28 | { 29 | "type": "ImageChange", 30 | "imageChange": {} 31 | }, 32 | { 33 | "type": "ConfigChange" 34 | } 35 | ], 36 | "source": { 37 | "type": "Git", 38 | "git": { 39 | "uri": "https://github.com/sonatype/docker-rhel-nexus.git", 40 | "ref": "master" 41 | }, 42 | "contextDir": "current/rhel" 43 | }, 44 | "strategy": { 45 | "type": "Docker", 46 | "dockerStrategy": { 47 | "dockerfilePath": "Dockerfile" 48 | } 49 | }, 50 | "output": { 51 | "to": { 52 | "kind": "ImageStreamTag", 53 | "name": "nexus:latest" 54 | } 55 | }, 56 | "resources": {} 57 | } 58 | }, 59 | { 60 | "kind": "ImageStream", 61 | "apiVersion": "v1", 62 | "metadata": { 63 | "name": "nexus" 64 | }, 65 | "spec": { 66 | "dockerImageRepository": "", 67 | "tags": [ 68 | { 69 | "name": "latest" 70 | } 71 | ] 72 | } 73 | }, 74 | { 75 | "kind": "Template", 76 | "apiVersion": "v1", 77 | "metadata": { 78 | "name": "nexus", 79 | "annotations": { 80 | "description": "Nexus Repository Manager 3", 81 | "tags": "repository-manager,nexus3,nexus,sonatype" 82 | } 83 | }, 84 | "labels": { 85 | "application": "nexus", 86 | "createdBy": "template-nexus" 87 | }, 88 | "parameters": [ 89 | { 90 | "description": "The name for the application. The service will be named like the application.", 91 | "displayName": "Application name.", 92 | "name": "APPLICATION_NAME", 93 | "value": "nexus" 94 | }, 95 | { 96 | "description": "Custom hostname for service routes. Leave blank for default hostname, e.g.: ..", 97 | "displayName": "Nexus instance hostname", 98 | "name": "APPLICATION_HOSTNAME" 99 | }, 100 | { 101 | "description": "Persistent Volume Size (512Mi, 5Gi,...)", 102 | "displayName": "Persistent Volume Size", 103 | "name": "SIZE", 104 | "value": "2Gi", 105 | "required": true 106 | } 107 | ], 108 | "objects": [ 109 | { 110 | "kind": "PersistentVolumeClaim", 111 | "apiVersion": "v1", 112 | "metadata": { 113 | "name": "${APPLICATION_NAME}" 114 | }, 115 | "spec": { 116 | "accessModes": [ 117 | "ReadWriteOnce" 118 | ], 119 | "resources": { 120 | "requests": { 121 | "storage": "${SIZE}" 122 | } 123 | } 124 | } 125 | }, 126 | { 127 | "kind": "DeploymentConfig", 128 | "apiVersion": "v1", 129 | "metadata": { 130 | "name": "${APPLICATION_NAME}", 131 | "creationTimestamp": null, 132 | "labels": { 133 | "application": "${APPLICATION_NAME}" 134 | } 135 | }, 136 | "spec": { 137 | "strategy": { 138 | "type": "Recreate", 139 | "resources": {} 140 | }, 141 | "triggers": [ 142 | { 143 | "type": "ImageChange", 144 | "imageChangeParams": { 145 | "automatic": true, 146 | "containerNames": [ 147 | "${APPLICATION_NAME}" 148 | ], 149 | "from": { 150 | "kind": "ImageStreamTag", 151 | "name": "nexus:latest" 152 | } 153 | } 154 | }, 155 | { 156 | "type": "ConfigChange" 157 | } 158 | ], 159 | "replicas": 1, 160 | "selector": { 161 | "name": "${APPLICATION_NAME}" 162 | }, 163 | "template": { 164 | "metadata": { 165 | "labels": { 166 | "name": "${APPLICATION_NAME}" 167 | } 168 | }, 169 | "spec": { 170 | "volumes": [ 171 | { 172 | "name": "nexus-data", 173 | "persistentVolumeClaim": { 174 | "claimName": "${APPLICATION_NAME}" 175 | } 176 | } 177 | ], 178 | "containers": [ 179 | { 180 | "name": "${APPLICATION_NAME}", 181 | "image": "nexus", 182 | "ports": [ 183 | { 184 | "name": "web-port", 185 | "containerPort": 8081, 186 | "protocol": "TCP" 187 | } 188 | ], 189 | "volumeMounts": [ 190 | { 191 | "name": "nexus-data", 192 | "mountPath": "/nexus-data" 193 | } 194 | ], 195 | "resources": {}, 196 | "terminationMessagePath": "/dev/termination-log", 197 | "imagePullPolicy": "Always", 198 | "securityContext": { 199 | "capabilities": {}, 200 | "privileged": false 201 | }, 202 | "readinessProbe": { 203 | "httpGet": { 204 | "path": "/service/metrics/ping", 205 | "port": "web-port", 206 | "httpHeaders": [ 207 | { 208 | "name": "Authorization", 209 | "value": "Basic YWRtaW46YWRtaW4xMjM=" 210 | } 211 | ] 212 | }, 213 | "initialDelaySeconds": 120, 214 | "timeoutSeconds": 5 215 | }, 216 | "livenessProbe": { 217 | "httpGet": { 218 | "path": "/service/metrics/ping", 219 | "port": "web-port", 220 | "httpHeaders": [ 221 | { 222 | "name": "Authorization", 223 | "value": "Basic YWRtaW46YWRtaW4xMjM=" 224 | } 225 | ] 226 | }, 227 | "initialDelaySeconds": 120, 228 | "timeoutSeconds": 5 229 | } 230 | } 231 | ], 232 | "restartPolicy": "Always", 233 | "dnsPolicy": "ClusterFirst" 234 | } 235 | } 236 | } 237 | }, 238 | { 239 | "kind": "Route", 240 | "apiVersion": "v1", 241 | "metadata": { 242 | "name": "${APPLICATION_NAME}", 243 | "creationTimestamp": null 244 | }, 245 | "spec": { 246 | "host": "${APPLICATION_HOSTNAME}", 247 | "to": { 248 | "kind": "Service", 249 | "name": "${APPLICATION_NAME}" 250 | } 251 | } 252 | }, 253 | { 254 | "kind": "Service", 255 | "apiVersion": "v1", 256 | "metadata": { 257 | "name": "${APPLICATION_NAME}", 258 | "creationTimestamp": null, 259 | "labels": { 260 | "application": "${APPLICATION_NAME}" 261 | } 262 | }, 263 | "spec": { 264 | "ports": [ 265 | { 266 | "name": "web", 267 | "protocol": "TCP", 268 | "port": 8081, 269 | "targetPort": 8081, 270 | "nodePort": 0 271 | } 272 | ], 273 | "selector": { 274 | "deploymentconfig": "${APPLICATION_NAME}" 275 | }, 276 | "portalIP": "", 277 | "type": "ClusterIP", 278 | "sessionAffinity": "None" 279 | } 280 | } 281 | ] 282 | } 283 | ] 284 | } 285 | --------------------------------------------------------------------------------