-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support launching images via fly.io (#281)
- **In python images, refactor to call wait-for-postgres as entrypoint** - **Consolidate migration image into API image**
- Loading branch information
1 parent
1edfefd
commit ed918ca
Showing
41 changed files
with
236 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import shutil | ||
|
||
from flask_migrate import upgrade | ||
from python.runfiles import Runfiles | ||
|
||
from ark_nova_stats.config import app | ||
|
||
if __name__ == "__main__": | ||
# Copy the alembic.ini. | ||
r = Runfiles.Create() | ||
alembic_ini_src = r.Rlocation("_main/ark_nova_stats/api/migrations/alembic.ini") | ||
shutil.copyfile(alembic_ini_src, "/ark_nova_stats/api/migrations/alembic.ini") | ||
shutil.copyfile( | ||
"/ark_nova_stats/api/migrations/binary.runfiles/_main/ark_nova_stats/api/migrations/alembic.ini", | ||
"/ark_nova_stats/api/migrations/alembic.ini", | ||
) | ||
|
||
with app.app_context(): | ||
upgrade(directory="/ark_nova_stats/api/migrations") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import shutil | ||
|
||
from flask_migrate import upgrade | ||
from python.runfiles import Runfiles | ||
|
||
from fitbit_challenges.config import app | ||
|
||
if __name__ == "__main__": | ||
# Copy the alembic.ini. | ||
r = Runfiles.Create() | ||
alembic_ini_src = r.Rlocation("_main/fitbit_challenges/api/migrations/alembic.ini") | ||
shutil.copyfile(alembic_ini_src, "/fitbit_challenges/api/migrations/alembic.ini") | ||
shutil.copyfile( | ||
"/fitbit_challenges/api/migrations/binary.runfiles/_main/fitbit_challenges/api/migrations/alembic.ini", | ||
"/fitbit_challenges/api/migrations/alembic.ini", | ||
) | ||
|
||
with app.app_context(): | ||
upgrade(directory="/fitbit_challenges/api/migrations") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.