Skip to content

Commit

Permalink
docs: update docs with how to use dockernode.yml playbook (#3407)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Khel authored Feb 22, 2024
1 parent e8147c5 commit 285558d
Showing 1 changed file with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,28 @@ The DockerStatic ansible role provides allows us to automate the setup of our do
* [dockerhost-equinix-ubuntu2004-armv8-1](https://ci.adoptium.net/computer/dockerhost-equinix-ubuntu2004-armv8-1/)


## Setting up a new DockerStatic container
## Setting up a new DockerStatic container (recommended)

The [dockerhost.yml](https://github.com/adoptium/infrastructure/blob/master/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/dockernode.yml) playbook is used to deploy docker containers onto our dockerhost machines.

Example usage:

```
ansible-playbook -u root -i <host-file> AdoptOpenJDK_Unix_Playbook
/dockernode.yml -t "deploy" -e "docker_images=u2204,alp319,deb12"
```

The `docker_images` variable is where the user can specifiy which docker containers to deploy, using the dockerfiles avaiable [here](https://github.com/adoptium/infrastructure/tree/master/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/Dockerfiles) (which do get updated regularly).

The `dockerhost.yml` playbook can deploy single, multiple and duplicate containers, for example

```
-e "docker_images=u2204,alp319,u1804,u1804,u1804"
```

will deploy 1 Ubuntu 22.04 container, 1 Alpine 3.19 container and 3 Ubuntu 18.04 containers.

## Setting up a new DockerStatic container (manually)

If you would like to setup an individual container on one of these machines, follow these instructions:

Expand Down

0 comments on commit 285558d

Please sign in to comment.