Skip to content

Deploys the library-org service from a pre-built upstream docker container#490

Open
elevated-pasta-cat wants to merge 4 commits intomasterfrom
485-update-library-org-to-deploy-with-docker
Open

Deploys the library-org service from a pre-built upstream docker container#490
elevated-pasta-cat wants to merge 4 commits intomasterfrom
485-update-library-org-to-deploy-with-docker

Conversation

@elevated-pasta-cat
Copy link
Copy Markdown
Contributor

Comment thread roles/library-org/tasks/main.yml Outdated
Comment on lines +20 to +39
- name: install docker engine
apt:
name: docker.io
state: present
update_cache: true
when: library_org_docker_check.rc != 0

- name: install docker compose plugin
apt:
name: docker-compose-v2
state: present
update_cache: true
when: library_org_compose_check.rc != 0

- name: install python docker module
apt:
package:
- python3-pip
- python3-setuptools
- python3-virtualenv

- name: create group
group:
name: library-org
system: true
name: python3-docker
state: present
update_cache: true
when: library_org_pydocker_check.rc != 0
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can simplify this:

Also, I would prefer to use Podman for our setup. Functions the same, but lighter weight (no daemon).

Suggested change
- name: install docker engine
apt:
name: docker.io
state: present
update_cache: true
when: library_org_docker_check.rc != 0
- name: install docker compose plugin
apt:
name: docker-compose-v2
state: present
update_cache: true
when: library_org_compose_check.rc != 0
- name: install python docker module
apt:
package:
- python3-pip
- python3-setuptools
- python3-virtualenv
- name: create group
group:
name: library-org
system: true
name: python3-docker
state: present
update_cache: true
when: library_org_pydocker_check.rc != 0
- name: install podman container engine
ansible.builtin.package:
name:
- podman
- podman-compose
- python3-podman
state: present
update_cache: true

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha I was just thinking the same thing re podman.

Comment thread roles/library-org/defaults/main.yml Outdated
elevated-pasta-cat and others added 3 commits April 11, 2026 10:35
Remove docker infra checks during deploy

Co-authored-by: Ben Kochie <superq@gmail.com>
switch to podman from docker

Co-authored-by: Ben Kochie <superq@gmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
failed_when: false

- name: remove legacy systemd unit
file:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do fully-qualified Ansible names for all of these. Eventually I would like to crank up the Ansible Lint level.

Suggested change
file:
ansible.builtin.file:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright let me take a closer look. I'm migrating this to use podman entirely rather than relying on docker compose. Any objections?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, there's also a podman compose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update library-org to deploy with docker

2 participants