infrastructure
infrastructure copied to clipboard
Epic: Automate docker static system with Ansible and AWX
Turning https://github.com/adoptium/infrastructure/issues/3306 into an epic.
What I would like to accomplish in this epic is to take our Docker Static setup and 'Ansibilise' it. The final product should be a system of playbooks and scripts which allow static container deployment via AWX or command line.
We have https://github.com/adoptium/infrastructure/blob/master/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/tasks/main.yml, but it is monolithic. I want to create something more modular, in which a user can choose which containers to deploy, which to remove, as well as an update to date inventory file containing a list of running containers.
Objectives, not necessarily in order:
- [x] #3370
- [x] Create job in AWX to deploy containers onto dockerhost machines (part of https://github.com/adoptium/infrastructure/issues/3370)
- [ ] #3506
- [ ] #3415
- with port numbers
- with jenkins node link
- necessary information such as architecture, OS, etc
- [ ] Create templates for dockerfiles, removing the need to have a different file for each new release of OS
- [ ] #3507
- [ ] Automate deletion of node in jenkins after retiring static container
- [ ] Documentation (should be done along the way)