-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: Replace Postgres database with an in-app Sqlite db for Quay durin…
…g fresh install of OMR (#152) * Remove postgres references from ansible tasks Signed-off-by: harishsurf <[email protected]> * Update ansible tasks to install quay with sqlite * Clean up remaining postgres references * Add debug logs when quay-app systemd service fails * change dir path for sqlite db file to live outside of /quay-registry path * set WORKER_COUNT=1 when starting quay with Sqlite without this, multiple workers tend to write simultaneously causing concurrent write issues * Add conditional when creating volume based on user input * use podman unshare to change ownership + bump quay version 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. --------- Signed-off-by: harishsurf <[email protected]>
- Loading branch information
1 parent
26d82ce
commit 082ad3a
Showing
25 changed files
with
85 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/projectquay/quay:3.12.0-nightly.20240626 | ||
REDIS_IMAGE=registry.redhat.io/rhel8/redis-6:1-92.1669834635 | ||
PAUSE_IMAGE=registry.access.redhat.com/ubi8/pause:8.7-6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ This application will allow user to easily install Quay and its required compone | |
Download one of the installer package from our [releases](https://github.com/quay/mirror-registry/releases) page: | ||
|
||
- offline version (contains all required images to run Quay) | ||
- online version (additional container images to run Quay and Postgres will be downloaded by the installer) | ||
- online version (additional container images to run Quay and Redis will be downloaded by the installer) | ||
|
||
### Running the installer | ||
|
||
|
@@ -32,7 +32,7 @@ The following flags are also available: | |
--quayHostname The value to set SERVER_HOSTNAME in the Quay config.yaml. This defaults to <targetHostname>:8443. | ||
--quayRoot -r The folder where quay persistent quay config data is saved. This defaults to $HOME/quay-install. | ||
--quayStorage The folder where quay persistent storage data is saved. This defaults to a Podman named volume 'quay-storage'. Root is required to uninstall. | ||
--pgStorage The folder where postgres persistent storage data is saved. This defaults to a Podman named volume 'pg-storage'. Root is required to uninstall. | ||
--sqliteStorage The folder where quay sqlite db data is saved. This defaults to a Podman named volume 'sqlite-storage'. Root is required to uninstall. | ||
--ssh-key -k The path of your ssh identity key. This defaults to ~/.ssh/quay_installer. | ||
--sslCert The path to the SSL certificate Quay should use. | ||
--sslCheckSkip Whether or not to check the certificate hostname against the SERVER_HOSTNAME in config.yaml. | ||
|
@@ -68,7 +68,7 @@ Behind the scenes, Ansible is using `ssh -i ~/.ssh/my_ssh_key [email protected] | |
This command will make the following changes to your machine | ||
|
||
- Generate trusted SSH keys, if not supplied, in case the deployment target is the local host (required since the installer is ansible-based) | ||
- Pulls Quay, Redis, and Postgres images from `registry.redhat.io` (if using online installer) | ||
- Pulls Quay and Redis images from `registry.redhat.io` (if using online installer) | ||
- Sets up systemd files on host machine to ensure that container runtimes are persistent | ||
- Creates the folder defined by `--quayRoot` (default: `$HOME/quay-install`) contains install files, local storage, and config bundle. | ||
- Installs Quay and creates an initial user called `init` with an auto-generated password | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 0 additions & 59 deletions
59
...ble-runner/context/app/project/roles/mirror_appliance/tasks/install-postgres-service.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 0 additions & 92 deletions
92
ansible-runner/context/app/project/roles/mirror_appliance/tasks/migrate-pre-1_3_0.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.