file=etc/karaf/ĭownload and extract to /opt/nexus-data latest nexus-data.Ĭonfigure Nexus as service on RedHat/CentOS. # sudo adduser -no-create-home -disabled-login -disabled-password nexusĬonfigure nexus /opt/nexus/. OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode) Install Java 1.8.0 and Sonatype Nexus on Ubuntu Linux. # sudo echo 'run_as_user="nexus"' > /opt/nexus/bin/nexus.rc # sudo yum install java-1.8.0-openjdk.x86_64 Install Java 1.8.0 and Sonatype Nexus on RedHat/CentOS. Sonatype Nexus Repository on Linux Host OSĭownload latest version of Nexus3 from here.Īfter the download is complete, if necessary, for further information about the installation and necessary setup, consult Installation and System Requirements. Go to Nexus UI on URL: and configure RAW and docker registry as described here. $ docker run -d -p 8081:8081 -p 5000:5000 -restart=unless-stopped -name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3 $ mkdir -p /some/dir/nexus-data & chown -R 200 /some/dir/nexus-data This is not portable, as it relies on the directory existing with correct permissions on the host. $ docker run -d -p 8081:8081 -p 5000:5000 -restart=unless-stopped -name nexus -v nexus-data:/nexus-data sonatype/nexus3 Since docker volumes are persistent, a volume can be created specifically for this purpose. OPTIONS='-selinux-enabled -log-driver=journald -signature-verification=false' # Modify these options if you want to change the way the docker daemon runs Nexus install: /etc/sysconfig/docker # /etc/sysconfig/docker The procedure below describes the configuration of the Sonatype Nexus to run on the Docker host with IP address HOST_IP on unsecured port 8081 with the Docker repository configured on unsecured port 5000.įor Ubuntu Linux system, add a new entry into /etc/docker/daemon.json for insecure-registries.įor CentOS 7.X/RedHat 7.X system, it will probably be necessary to change /etc/sysconfig/docker. Nexus: after installation use admin/admin123.Nexus Repository Installation Credentials
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |