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

replace deprecated docker-compose with docker compose #3

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build image
run: docker-compose build
run: docker compose build
- name: Start environment
run: docker-compose up -d
run: docker compose up -d
- name: Run tests
run: ./test.sh
- name: Dunp logs
if: always()
run: docker-compose logs
run: docker compose logs
2 changes: 1 addition & 1 deletion kadmin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

docker-compose run \
docker compose run \
-e KRB5_TRACE=/dev/stderr \
machine-example-com \
kadmin \
Expand Down
6 changes: 3 additions & 3 deletions send-presto-query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

function send_query {
SQL="${1}"
RESPONSE="$(docker-compose run --rm -e KRB5_TRACE=/dev/null machine-example-com bash -c "
RESPONSE="$(docker compose run --rm -e KRB5_TRACE=/dev/null machine-example-com bash -c "
kinit -k [email protected] &>/dev/null;
curl -X POST \
--insecure \
Expand All @@ -35,7 +35,7 @@ function send_query {
echo "${RESPONSE}" | jq .

while [[ "${STATE}" == "QUEUED" ]]; do
RESPONSE="$(docker-compose run --rm -e KRB5_TRACE=/dev/null machine-example-com bash -c "
RESPONSE="$(docker compose run --rm -e KRB5_TRACE=/dev/null machine-example-com bash -c "
kinit -k [email protected] &>/dev/null;
curl -X GET \
--insecure \
Expand All @@ -51,7 +51,7 @@ function send_query {
exit 1
fi
while [[ ! "${NEXT_URL}" == "null" ]]; do
RESPONSE="$(docker-compose run --rm -e KRB5_TRACE=/dev/null machine-example-com bash -c "
RESPONSE="$(docker compose run --rm -e KRB5_TRACE=/dev/null machine-example-com bash -c "
kinit -k [email protected] &>/dev/null;
curl -X GET \
--insecure \
Expand Down
Loading