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

test: fix docker test and build over main branch #478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lopezator
Copy link
Contributor

Fixes

Fixes the builds over the main branch removing the dependency from sendgrid-oai repository, prism and docker compose v1.

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

- Remove the dependency from the sendgrid-oai repo and prism.
- Build and start containers on test target on a single
statement.

This should fix the builds over the main branch, because
`docker-compose` is compose v1 which has been deprecated and
not installed on newest versions of github actions
`ubuntu-latest`.

more info:

https://docs.docker.com/compose/migrate/#what-are-the-differences-between-compose-v1-and-compose-v2
@lopezator lopezator changed the title docker: fix build test: fix docker test and build over main branch Aug 6, 2024
@lopezator
Copy link
Contributor Author

CC/ @sbansla

@@ -11,5 +11,4 @@ test-integ: test

version ?= latest
test-docker:
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism.sh -o prism.sh
version=$(version) bash ./prism.sh
docker compose up --build --parallel --force-recreate --abort-on-container-exit --remove-orphans
Copy link
Contributor

@sbansla sbansla Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker-compose.yml file is present in sendgrid/sendgrid-oai project.
We need to clone that project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch I see. But that project is archived. Is there any newer alternative or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants