Skip to content
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

Feat: production container #123

Merged
merged 4 commits into from
Aug 23, 2022
Merged

Feat: production container #123

merged 4 commits into from
Aug 23, 2022

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Aug 11, 2022

Closes #111

This PR changes the base image to use our new cal-itp/docker-python-web image hosted on GitHub Container Registry.

This base image bakes in nginx and gunicorn - and bin/start.sh runs the app through those services.

Developers shouldn't notice a difference running the app locally - either inside the devcontainer in debug mode, or by running the container with docker compose.

eligibility_server/app.py Fixed Show fixed Hide fixed
Base automatically changed from feat/python-310 to main August 15, 2022 22:51
@thekaveman thekaveman force-pushed the feat/production-container branch from a713765 to a456940 Compare August 16, 2022 01:08
@thekaveman thekaveman changed the base branch from main to chore/devcontainer-setup August 16, 2022 01:08
@thekaveman thekaveman force-pushed the chore/devcontainer-setup branch from 97ef3c4 to 4facc22 Compare August 16, 2022 01:11
@thekaveman thekaveman force-pushed the feat/production-container branch from a456940 to 5d37d95 Compare August 16, 2022 01:12
@thekaveman thekaveman force-pushed the chore/devcontainer-setup branch from 4facc22 to a192078 Compare August 16, 2022 16:33
@thekaveman thekaveman force-pushed the feat/production-container branch from 5d37d95 to 8483950 Compare August 16, 2022 16:35
@thekaveman thekaveman added this to the Courtesy Cards milestone Aug 16, 2022
Base automatically changed from chore/devcontainer-setup to main August 17, 2022 23:25
@thekaveman thekaveman force-pushed the feat/production-container branch from 8483950 to 4b76dbc Compare August 18, 2022 00:20
@thekaveman thekaveman force-pushed the feat/production-container branch from 547792a to 00082f6 Compare August 19, 2022 17:41
@thekaveman thekaveman force-pushed the feat/production-container branch from 00082f6 to f610a12 Compare August 19, 2022 17:43
@thekaveman thekaveman added the deployment Related to deployments of the server label Aug 19, 2022
@thekaveman thekaveman marked this pull request as ready for review August 19, 2022 17:49
@thekaveman thekaveman requested a review from a team as a code owner August 19, 2022 17:49
Copy link
Member

@machikoyasuda machikoyasuda left a comment

Choose a reason for hiding this comment

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

Rebuilt container and ran successfully

Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

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

I was also able to rebuild and reopen the devcontainer, and I could run the server container with docker compose.

Created cal-itp/docker-python-web#2 as a part of reviewing this

@thekaveman thekaveman merged commit 1a77cf4 into main Aug 23, 2022
@thekaveman thekaveman deleted the feat/production-container branch August 23, 2022 22:49
@angela-tran angela-tran mentioned this pull request Nov 14, 2022
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Related to deployments of the server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure Docker image for production
3 participants