Skip to content

Sync deploy with web server config#37

Merged
anfimovdm merged 3 commits into
masterfrom
sync-deploy-with-web-server-config
Jun 27, 2026
Merged

Sync deploy with web server config#37
anfimovdm merged 3 commits into
masterfrom
sync-deploy-with-web-server-config

Conversation

@anfimovdm

Copy link
Copy Markdown
Contributor

No description provided.

albs-web-server now sets alembic's sqlalchemy.url at runtime in
alws/alembic/env.py from settings.sync_database_url (SYNC_DATABASE_URL),
and dropped the hardcoded URL from alws/alembic.ini. That URL was the
only per-deployment value the deploy templated, and SYNC_DATABASE_URL is
already provided via vars.env, so alembic.ini.j2 is now redundant. Use
the upstream alws/alembic.ini directly, matching the existing nginx
config approach.
albs-web-server now runs Pulp as a multi-container stack (pulp-minimal +
pulp-web) instead of the all-in-one pulp/pulp image. Adjust the deploy to
match:

- Point the Pulp DB URLs at the separate postgres service (postgres:5432)
  instead of the old all-in-one pulp host, which is now HTTP-only.
- Stop templating Pulp's settings.py: it now ships in the web-server repo
  at assets/pulp/settings.py and is mounted directly; volumes_root/pulp/
  settings is no longer mounted. Drop the template and its directory.
- Retarget the admin password reset to the pulp_api container and drop the
  obsolete 'enable pulp database external access' and pulp stop/start tasks:
  the postgres:16 service already allows network access (scram-sha-256 via
  pulp-postgres.env) and stores data under /var/lib/postgresql/data.
The per-service Ansible loop invoked 'docker compose up --build' once per
service, serializing image builds. Replace it with a single compose
invocation that takes all non-excluded services as arguments, so BuildKit
builds in parallel and startup still respects depends_on.

- services.yml: filter the service list (minus excluded_containers and
  pre_bootstrap_excluded_containers) and pass it in one 'up -d --build'.
- misc.yml: same for the post-JWT consumer-container recreate and the
  deferred pre-bootstrap container start.

The filtered list is guarded with a length check so an empty argument list
can never cause 'docker compose up' to act on ALL services. --compatibility
is retained so container names keep the underscore (v1) form the name-based
tasks in misc.yml depend on.
@anfimovdm anfimovdm merged commit 2cec44f into master Jun 27, 2026
1 check failed
@anfimovdm anfimovdm deleted the sync-deploy-with-web-server-config branch June 27, 2026 15:35
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.

1 participant