mirror of
https://github.com/decompme/decomp.me.git
synced 2026-04-28 19:00:55 -05:00
d0a85112d7
* Update poetry to 1.6.1 * Don't use podman/docker to download compilers * Fixup docker test * Actually fix docker tests * Use debug level when failing to get image manifest --------- Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
24 lines
543 B
Bash
Executable File
24 lines
543 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DB_HOST=${DATABASE_HOST:-postgres}
|
|
DB_PORT=${DATABASE_PORT:-5432}
|
|
|
|
BE_HOST=${BACKEND_HOST:-0.0.0.0}
|
|
BE_PORT=${BACKEND_PORT:-8000}
|
|
|
|
poetry config virtualenvs.path /backend/virtualenvs
|
|
|
|
poetry install
|
|
|
|
poetry run /backend/compilers/download.py
|
|
poetry run /backend/libraries/download.py
|
|
|
|
until nc -z ${DB_HOST} ${DB_PORT} > /dev/null; do
|
|
echo "Waiting for database to become available on ${DB_HOST}:${DB_PORT}..."
|
|
sleep 1
|
|
done
|
|
|
|
poetry run /backend/manage.py migrate
|
|
|
|
poetry run /backend/manage.py runserver ${BE_HOST}:${BE_PORT}
|