User Tools

Site Tools


development:artifactory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
development:artifactory [2023/02/16 11:34] – added in Nexus script enablement steps 10.91.110.100development:artifactory [2023/07/24 10:28] (current) bosowski
Line 7: Line 7:
  
  
-<code> 
- new artifactory at http://artifactory2.err:4041/ Artifactory2 is run as a Nexus docker container 
- data is mounted using the following command 
- docker run -d -p 8081:8081 --name nexus -v /home/scotty/nexus-data:/nexus-data sonatype/nexus3 
  
- Stopped using **sudo docker stop nexus**+ new artifactory at http://artifactory.errigal.com is run as a Nexus docker container via docker-compose.yml file, located at ''ubuntu@10.91.133.220:/home/ubuntu/docker/nexus/docker-compose.yml'' 
 + <code>docker compose up -d</code> 
 + 
 + Stopped using <code>docker compose down</code> 
 + 
 + restarts are done via  <code>docker compose down; docker compose up</code>
  
- restarts are done via  **docker restart nexus** 
-</code> 
  
 **Location:** **Location:**
-  * The Artifactory server is cloud hosted via aws. +  * The Artifactory server is hosted on our Waterford openstack.
-  * It is located on the Errigal aws account(details of which can be found in pwSafe) in the **N.Virginia** region.+
 **Access:** **Access:**
   * The key for accessing this account can be found on dropbox in the following location:    * The key for accessing this account can be found on dropbox in the following location: 
-  * **~/Dropbox/Errigal Shared Documents/Amazon EC2/dev keys** +  * ssh to the server via ssh ubuntu@10.91.133.220
-  * ssh to the server via ssh scotty@artifactory2.err +
- +
  
  
Line 33: Line 28:
 **URL:** **URL:**
  
-  * http://artifactory2.err:4041/+  * http://artifactory.errigal.com/
  
  
Line 45: Line 40:
 ** **
    * edit the **nexus.vmoptions** file located in **cd /opt/sonatype/nexus/bin/**    * edit the **nexus.vmoptions** file located in **cd /opt/sonatype/nexus/bin/**
 +   * or **vi /opt/sonatype/nexus/bin/nexus.vmoptions**
    * add or uncomment the following line **-Dstorage.diskCache.diskFreeSpaceLimit=1024    * add or uncomment the following line **-Dstorage.diskCache.diskFreeSpaceLimit=1024
 ** **
    * exit docker bash    * exit docker bash
-   * restart nextus **sudo docker restart nexus**+   * restart nexus **sudo docker restart nexus**
    * the Nexus is now in an editable state and artifacts can be removed in an effort to claim back space    * the Nexus is now in an editable state and artifacts can be removed in an effort to claim back space
 +
 +
 +===== Cheats approach =====
 +
 +* edit file and remove # from last line
 +   * **sudo docker exec -u 0 -it nexus  vi /opt/sonatype/nexus/bin/nexus.vmoptions**
 +   * restart nexus **sudo docker restart nexus**
  
  
Line 78: Line 81:
  
  
 +===== Configure Cleanup Policy =====
 +
 +The artifactory needs to ensure that older redundant builds are periodically cleaned out, otherwise it will quickly fill up. SnmpManager is a large war file on its own.
 +
 +To do this we use the Clean Up Policy Manager, example configuration deletes after 15 days
  
 +{{:development:nexus_clean_up_policy_example.png?400|}}
development/artifactory.1676547249.txt.gz · Last modified: 2023/02/16 11:34 by 10.91.110.100