Skip to content

Conversation

@runleveldev
Copy link
Collaborator

@runleveldev runleveldev commented Oct 21, 2025

Tasks:

  • Insert container and port map information into a MariaDB server when created
  • Add GET /containers index page for reading from the new MariaDB backend
  • Add migrations to convert from the cluster current state to the new, MariaDB backed state
  • Pull NGINX configuration from the Database via the HTTP API, rather than the flat file

Migration steps:

  1. Pull the changes to create-a-container
  2. Build a MariaDB instance and user
  3. Update the create-a-container .env file with the new values
  4. Restart the create-a-container service
  5. Update the /var/lib/vz/snippets/register-container.sh script on intern-phxdc-pve1
  6. Copy port_map.json to the create-a-container server, and run node bin/json-to-sql.js <path to port_map.json>
  7. Copy the pull-config.cron to /etc/cron.d/pull-config on the NGINX server
  8. Pull this repo to /opt/opensource-server on the NGINX server
  9. Revert all NGINX configs back to default, then touch /etc/nginx/conf.d/reverse-proxy.conf
  10. Ensure the cron job successfully reloads the NGINX configuration

https://create-a-container-dev.opensource.mieweb.org

@runleveldev runleveldev force-pushed the 59-nginx-reverse-proxycreate-a-container-shared-port_mapcontainer_creation-mariadb-backend branch from 61ed880 to 1864049 Compare October 21, 2025 14:30
@runleveldev runleveldev force-pushed the 59-nginx-reverse-proxycreate-a-container-shared-port_mapcontainer_creation-mariadb-backend branch from c96ae4b to 7f64710 Compare October 24, 2025 16:17
@runleveldev runleveldev linked an issue Oct 24, 2025 that may be closed by this pull request
@runleveldev runleveldev marked this pull request as ready for review October 24, 2025 16:19
Copy link
Collaborator

@cmyers-mieweb cmyers-mieweb left a comment

Choose a reason for hiding this comment

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

Looks Good, will deploy next week

@runleveldev runleveldev merged commit bbbb277 into main Oct 28, 2025
3 checks passed
@runleveldev runleveldev deleted the 59-nginx-reverse-proxycreate-a-container-shared-port_mapcontainer_creation-mariadb-backend branch October 28, 2025 17:51
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.

nginx-reverse-proxy/create-a-container: Shared port_map/container_creation MariaDB backend create-a-container: Create dedicated containers index page

3 participants