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

docker-compose.yml is not consistent with aerie-gateway #1619

Closed
parkerabercrombie opened this issue Dec 17, 2024 · 5 comments · Fixed by #1623
Closed

docker-compose.yml is not consistent with aerie-gateway #1619

parkerabercrombie opened this issue Dec 17, 2024 · 5 comments · Fixed by #1623
Assignees
Labels
clipper Requests from the Europa Clipper project documentation Improvements or additions to documentation

Comments

@parkerabercrombie
Copy link

Checked for duplicates

No - I haven't checked

Is this a regression?

No - This is a new bug

Version

3.0.1

Describe the bug

I received an error when attempting to import a plan into Aerie. On further investigation, the docker-compose file sets env var GQL_API_URL (https://github.com/NASA-AMMOS/aerie/blob/develop/deployment/docker-compose.yml#L8) but aerie-gateway expects env var HASURA_API_URL https://github.com/NASA-AMMOS/aerie-gateway/blob/5c616b4eb7e6fec9c42a5e22cfd4a12b4cbc2dd3/src/packages/plan/plan.ts#L37. This results in Aerie incorrectly using a default URL.

Reproduction

N/A

Logs

No response

System Info

Chrome

Severity

Major

@parkerabercrombie parkerabercrombie added the bug Something isn't working label Dec 17, 2024
@github-project-automation github-project-automation bot moved this to Todo in Aerie Dec 17, 2024
@parkerabercrombie parkerabercrombie added the clipper Requests from the Europa Clipper project label Dec 17, 2024
@parkerabercrombie
Copy link
Author

aerie-gateway also expects the hasura URL var to be only the host, not the /v1/graphql path, which is inconsistent with other services.

@Mythicaeda
Copy link
Contributor

Mythicaeda commented Jan 2, 2025

As indicated in the Enviornment Documentation for the Gateway, GQL_API_URL and HASURA_API_URL are two separate envvars.

  • GQL_API_URL is the URL given to the API Playground Client for it to make external GQL requests.
  • HASURA_API_URL, meanwhile, is the URL the Gateway uses internally to make non-GQL requests to the Hasura container (which is why it does not want /v1/graphql). This doesn't match up with any envvars in our other containers, as no other container needs to send non-GQL requests to Hasura.

You can think of them as roughly equivalent to PUBLIC_HASURA_CLIENT_URL and PUBLIC_HASURA_SERVER_URL in the UI.

More information about HASURA_API_URL can be found in the Upgrade Guide for its release version (v2.16.0)

@parkerabercrombie
Copy link
Author

Should the docker-compose also include HASURA_API_URL for the gateway service, just as a hint to projects adapting this file for their own deployments?

@Mythicaeda Mythicaeda self-assigned this Jan 2, 2025
@Mythicaeda Mythicaeda added documentation Improvements or additions to documentation and removed bug Something isn't working labels Jan 2, 2025
@Mythicaeda
Copy link
Contributor

Sure, it can be added.

@Mythicaeda Mythicaeda moved this from Todo to In Progress in Aerie Jan 2, 2025
@Mythicaeda Mythicaeda moved this from In Progress to In Review in Aerie Jan 2, 2025
@parkerabercrombie
Copy link
Author

Great, thanks. With that addition I'm fine with closing this ticket.

@github-project-automation github-project-automation bot moved this from In Review to Done in Aerie Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clipper Requests from the Europa Clipper project documentation Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants