Skip to content

Module 8#10

Open
cyberspark13 wants to merge 16 commits intomasterfrom
module_8
Open

Module 8#10
cyberspark13 wants to merge 16 commits intomasterfrom
module_8

Conversation

@cyberspark13
Copy link
Copy Markdown
Owner

Module 8 submission:
Automatic Docker Hub publish added to pipeline
Dockerfile changed so the ports work
Heroku Manual Publish worked.

https://markdossantos-module8.herokuapp.com/

Copy link
Copy Markdown
Collaborator

@JackMeadDev JackMeadDev left a comment

Choose a reason for hiding this comment

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

Nice work, I can see your pipeline pushing your image to DockerHub, and the app running happily in Heroku. We would want to connect the pipeline up to update the Heroku image too, but given the Heroku free tier ends soon anyway I suggest we just achieve the equivalent with our Azure service in M9. A couple of optional thoughts are below, but happy for you to merge this when you're ready!

Comment on lines +126 to +127
And save the key in Github Secrets as:
HEROKU_API_KEY No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This seems to imply your pipeline can handle deploying to Heroku, but I can't see any evidence it tries to do that?

We do (did) want to do that as part of the pipeline, but since Heroku is going to lose the free tier very shortly I recommend we skip it and just set up an equivalent to Azure as part of M9

DOCKERHUB_PASSWORD
DOCKERHUB_USERNAME

## Heroku:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the clear instructions!

FROM base as production
EXPOSE 80
CMD poetry run gunicorn "todo_app.app:create_app()" -b 0.0.0.0:80
CMD poetry run gunicorn "todo_app.app:create_app()" -b 0.0.0.0:${PORT:-5000}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor, but here you've swapped the default port from 80 to 5000 for your prod container, which might mean old instructions (including port mappings in your docker-compose file) are no longer accurate

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.

2 participants