User Tools
development:artifactory
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:artifactory [2023/02/03 21:53] – added info on low space 10.91.110.100 | development:artifactory [2023/07/24 10:28] (current) – bosowski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Errigal Artifactory ====== | + | ====== Errigal Artifactory |
| --- // | --- // | ||
| --- // | --- // | ||
| Line 7: | Line 7: | ||
| - | < | + | |
| - | new artifactory | + | new artifactory |
| - | | + | < |
| - | docker | + | |
| - | </ | + | |
| + | |||
| + | | ||
| **Location: | **Location: | ||
| - | * The Artifactory server is cloud hosted | + | * The Artifactory server is hosted on our Waterford openstack. |
| - | * It is located | + | |
| **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: |
| - | * An example of how you would ssh to this server | + | * ssh to the server |
| - | |||
| - | * Artifactory2 is run as a Nexus docker container and can be stopped using **sudo docker stop nexus** | ||
| Line 28: | Line 28: | ||
| **URL:** | **URL:** | ||
| - | * http://artifactory2.err:4041/ | + | * http://artifactory.errigal.com/ |
| Line 39: | Line 39: | ||
| * login to the docker container as root ** sudo docker exec -u 0 -it nexus /bin/bash | * login to the docker container as root ** sudo docker exec -u 0 -it nexus /bin/bash | ||
| ** | ** | ||
| - | * edit the nexus.vmoptions file located in **cd / | + | * edit the **nexus.vmoptions** file located in **cd / |
| + | * or **vi / | ||
| * 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 | + | * restart |
| * 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 / | ||
| + | * restart nexus **sudo docker restart nexus** | ||
| + | |||
| + | |||
| + | Once you have deleted number of artifacts, (start with largest first, to get going) you must run the **Compact Blob store** task to reduce space | ||
| + | |||
| + | * Go to the tasks list under the Admin tab (you must be logged in) | ||
| + | * run the Compact process, as its only set to weekly due to length of execution | ||
| + | * This may affect the artifactory being written to (it has performance implications) | ||
| + | {{: | ||
| + | * on success run the **df -h** command and verify that the disk space is > 3G | ||
| + | * **/ | ||
| + | |||
| + | |||
| + | ===== Enable Admin Execute Script ===== | ||
| + | |||
| + | Nexus allows the execution of groovy scripts on the repo, which is useful to find largest files etc | ||
| + | |||
| + | but this must be enabled | ||
| + | |||
| + | Reference [[https:// | ||
| + | |||
| + | * Edit $data-dir/ | ||
| + | * Add the following on a new line, making sure the file is saved with an ending new line and with the original file permissions: | ||
| + | <WRAP center round box 60%> | ||
| + | nexus.scripts.allowCreation=true | ||
| + | </ | ||
| + | * Restart NXRM to pick up the property change. | ||
| + | |||
| + | |||
| + | ===== 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/artifactory.1675461226.txt.gz · Last modified: 2023/02/03 21:53 by 10.91.110.100