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

Use entrypoint for dockerfile #193

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Conversation

kaitj
Copy link
Collaborator

@kaitj kaitj commented Oct 3, 2023

This switches from the CMD is that run in docker compose to an entrypoint file. This eliminates the need for manual intervention of upgrading flask db and verifying ssh keys (though with the finnicky-ness of ssh, may need to rerun ssh-keyscan again).

Turns out trying to run an ssh-keyscan before hand does not play nice with ria for docker-compose. I kept the code in for reference, but it isn't used. This ends up really just running the flask db upgrade and initializing the web application. Minor update, but I'm sure as things come up we can add to this entrypoint script.

@kaitj kaitj added the enhancement New feature or request label Oct 3, 2023
@kaitj kaitj self-assigned this Oct 3, 2023
@kaitj kaitj force-pushed the enh/docker-entrypoint branch from 7d528e8 to 6cf5dab Compare October 4, 2023 18:23
@kaitj kaitj marked this pull request as ready for review October 4, 2023 18:24
@kaitj kaitj requested a review from tkkuehn October 4, 2023 18:25
@kaitj kaitj force-pushed the enh/docker-entrypoint branch from 6cf5dab to 6696518 Compare October 4, 2023 19:10
- upgrade / migrate flask db
- initialize web application
@kaitj kaitj force-pushed the enh/docker-entrypoint branch from 6696518 to 23e197a Compare October 4, 2023 19:14
@kaitj kaitj merged commit 08205d9 into khanlab:main Oct 5, 2023
2 checks passed
@kaitj kaitj deleted the enh/docker-entrypoint branch October 5, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants