-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db: Replace Postgres database with an in-app Sqlite db for Quay during fresh install of OMR #152
Conversation
Signed-off-by: harishsurf <[email protected]>
- name: Create Sqlite Storage named volume | ||
containers.podman.podman_volume: | ||
state: present | ||
name: sqlite-storage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should use the name that is provided by the user.
.env
Outdated
@@ -1,7 +1,6 @@ | |||
EE_IMAGE=quay.io/quay/mirror-registry-ee:latest | |||
EE_BASE_IMAGE=registry.redhat.io/ansible-automation-platform-22/ee-minimal-rhel8:1.0.0-249 | |||
EE_BUILDER_IMAGE=registry.redhat.io/ansible-automation-platform-22/ansible-builder-rhel8:1.1.0-103 | |||
POSTGRES_IMAGE=registry.redhat.io/rhel8/postgresql-10:1-203.1669834630 | |||
QUAY_IMAGE=registry.redhat.io/quay/quay-rhel8:v3.8.15 | |||
QUAY_IMAGE=quay.io/omr-sqlite/omrrepo:workingsqlite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be a Quay image that we maintain. Ideally from redhat.redhat.io, but a nightly build from quay.io/projectquay/quay would work too.
|
||
- name: Debug systemctl status output | ||
debug: | ||
var: systemctl_status.stdout_lines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make sure it exits at the end of this rescue block? Right now it will continue the rest of the tasks since we are handling the error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a fail task:
- name: Fail the playbook due to Quay not becoming alive
fail:
msg: "Quay did not become alive. Check debug logs above for details."
556ec57
to
112fbc1
Compare
112fbc1
to
f8edb22
Compare
without this, multiple workers tend to write simultaneously causing concurrent write issues
f8edb22
to
5927d2a
Compare
When podman runs containers in rootless mode, it remaps the container's UIDs to the host UIDs assigned to the user. For example, the container's UID 1001 is no longer 1001 on the host; it will be remapped to something like 101000. Therefore, we need to use podman unshare to assign the correct owner UID to the directory.
feat: Sqlite database migration work for OMR is split into two parts (each with its own PR):
This PR only deals with fresh Install - It changes the underlying database for Quay which currently runs as a separate Postgres container to a file based Sqlite database. The Sqlite database file is stored in a volume mounted to the Quay container.
Note:
./mirror-registry install
flow