Skip to content

Commit

Permalink
chore: use docker compose v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Nov 20, 2024
1 parent bccb0be commit 1724e05
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.php
.idea/
*.code-workspace
.vscode
prism*
prism/
temp.php
TODO.txt
sendgrid-php.zip
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ test-integ: test

version ?= latest
test-docker:
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism.sh -o prism.sh
dependencies=lowest version=$(version) bash ./prism.sh
dependencies=highest version=$(version) bash ./prism.sh

Expand Down
15 changes: 15 additions & 0 deletions prism.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -e

rm -rf prism && mkdir -p prism && cd prism
git clone --depth 1 https://github.com/sendgrid/sendgrid-oai .
cd prism

docker compose build --parallel

if [ -z "$command" ]; then
docker compose up --force-recreate --abort-on-container-exit --remove-orphans
else
docker compose run helper-runner "$command"
docker compose down
fi

0 comments on commit 1724e05

Please sign in to comment.