From 8d87a38819740ddad86d2c9828751a470adfb737 Mon Sep 17 00:00:00 2001 From: Haroon Khel <34969545+Haroon-Khel@users.noreply.github.com> Date: Wed, 1 May 2024 18:53:10 +0800 Subject: [PATCH] docs: Update static docker docs to include inventory update script usage (#3537) * udpate static docker docs to include inventory update script usage * add jenkinsapi install comment * reword * Update ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/README.md --------- Co-authored-by: Martijn Verburg --- .../roles/DockerStatic/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/README.md b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/README.md index 5d50791337..976489e110 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/README.md +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/README.md @@ -64,3 +64,16 @@ If you are creating a new container with the intention of replacing a container * The static containers are patched daily using this [script](https://github.com/adoptium/infrastructure/blob/master/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/scripts/updatepackages.sh) which runs on a daily cron job on each of the dockerhost machines. * The script goes into each container and updates every installed package using the container's package manager, yum, apk, apt etc. + +## Inventory + +The current static docker inventory is listed in [DockerInventory.json](https://github.com/adoptium/infrastructure/blob/master/ansible/DockerInventory.json). + +At the moment we update this file manually; we run the [updateDockerStaticInventory.py](https://github.com/adoptium/infrastructure/blob/master/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/scripts/updateDockerStaticInventory.py) script from the ansible/playbooks directory to find changes in our static docker inventory in jenkins: + +``` +python3 AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/scripts/updateDockerStaticInventory.py $jenkins-username $jenkins-api-token +``` +This script uses [jenkinsapi](https://jenkinsapi.readthedocs.io/en/latest/) which can be installed with `pip install jenkinsapi`. + +If any changes are found, open a new branch and commit these changes in a pull request. \ No newline at end of file