Skip to content

caracan/nexus-ose3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Overview

Running a Nexus service as a container within OSE v3, with a persistent volume to survive restarts. Uses the sonatype/nexus container.

##Environment Config

This assumes you have followed the training in Using persistent storage. So from that the following would be configured :

nfs-utils installed
Firewall Configured
SELinux Configured
  1. Create another export

     mkdir -p /var/export/nexus
     chown nfsnobody:nfsnobody /var/export/nexus
     chmod 700 /var/export/nexus
    
  2. Edit /etc/exports and add the following line:

     /var/export/nexus *(rw,sync,all_squash)
    
  3. Export

     exportfs -a
    

Running exportfs you should see something similar to:

/var/export/nexus
	<world>
/var/export/vol1
	<world>

##Installation

This assumes you are running as the admin user. You can run as a non-admin user, but for this example creating the Project and the PersistentVolume still needs to be done as an administrator. We will create a separate project to run Nexus in and target it to nodes labelled "region=infra" in.

  1. Create the project

     		 oadm new-project infra --node-selector="region=infra" --description="Project for running infrastructure services"
    
  2. Create the PersistentVolume:

     oc create -f persistent-volume.yaml
    
  3. Create the PersistentVolumeClaim

     oc create -f persistent-volume-claim.yaml -n infra
    
  4. Create the pods, service & route

     oc create -f nexus.yaml -n infra
    
  5. Attach the claimed volume to the nexus container

     oc volume dc/nexus-dc --add --name=pvol -t persistentVolumeClaim --claim-name=nexus-claim --overwrite -n infra
    

##Running

OSE will do the running for you! First run you will have to configure Nexus. It may take a little while to pull the nexus container to run it but running

  1. Head to http://nexus.cloudapps.example.com/ (That is the entry the route creates) which on first run will take you to the front page (Default Nexus login is admin/admin123).

You should be able to look at the exported NFS directory to see the files being created.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published