Skip to content

Commit

Permalink
Update gha to test with docker compose v2
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-ci committed Aug 20, 2024
1 parent 6fa14ab commit aa918ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/python
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ if [ $? -eq 0 ]; then
if [ "$1" = "local-sqlite" ]; then
cd haupt; DJANGO_SETTINGS_MODULE="haupt.polyconf.settings" python ${@:2}
elif [ "$1" = "container-sqlite" ]; then
docker-compose -f docker-compose.test.sqlite.yml run -w /haupt/haupt api python ${@:2}
docker compose -f docker-compose.test.sqlite.yml run -w /haupt/haupt api python ${@:2}
elif [ "$1" = "container-pgsql" ]; then
docker-compose -f docker-compose.test.pgsql.yml run -w /haupt/haupt api python ${@:2}
docker compose -f docker-compose.test.pgsql.yml run -w /haupt/haupt api python ${@:2}
fi
fi
4 changes: 2 additions & 2 deletions cmd/serve
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ if [ $? -eq 0 ]; then
if [ "$1" = "local-sqlite" ]; then
haupt -v sandbox --workers 1
elif [ "$1" = "container-pgsql" ]; then
docker-compose -f docker-compose.test.pgsql.yml run --publish 8000:8000 -w /haupt/haupt api uvicorn haupt.polyconf.asgi.server:application --port 8000 --host 0.0.0.0 --workers 8
docker compose -f docker-compose.test.pgsql.yml run --publish 8000:8000 -w /haupt/haupt api uvicorn haupt.polyconf.asgi.server:application --port 8000 --host 0.0.0.0 --workers 8
elif [ "$1" = "container-sqlite" ]; then
docker-compose -f docker-compose.test.sqlite.yml run --publish 8000:8000 -w /haupt/haupt api uvicorn haupt.polyconf.asgi.server:application --port 8000 --host 0.0.0.0 --workers 8
docker compose -f docker-compose.test.sqlite.yml run --publish 8000:8000 -w /haupt/haupt api uvicorn haupt.polyconf.asgi.server:application --port 8000 --host 0.0.0.0 --workers 8
elif [ "$1" = "nginx-pgsql" ]; then
echo "Coming soon"
elif [ "$1" = "streams" ]; then
Expand Down
4 changes: 2 additions & 2 deletions cmd/test
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ if [ $? -eq 0 ]; then
if [ "$1" = "local-sqlite" ]; then
cd haupt; POLYAXON_PLATFORM_CONFIG="$ROOT_DIR/.docker/local.test.yaml" DJANGO_SETTINGS_MODULE="haupt.polyconf.settings" POLYAXON_STATIC_ROOT="" POLYAXON_DB_NAME="/tmp/db" py.test $PYTESTOPT ${@:2}
elif [ "$1" = "container-sqlite" ]; then
docker-compose -f docker-compose.test.sqlite.yml run -w /haupt/haupt api py.test $PYTESTOPT ${@:2}
docker compose -f docker-compose.test.sqlite.yml run -w /haupt/haupt api py.test $PYTESTOPT ${@:2}
elif [ "$1" = "container-pgsql" ]; then
docker-compose -f docker-compose.test.pgsql.yml run -w /haupt/haupt api py.test $PYTESTOPT ${@:2}
docker compose -f docker-compose.test.pgsql.yml run -w /haupt/haupt api py.test $PYTESTOPT ${@:2}
fi
fi

0 comments on commit aa918ce

Please sign in to comment.