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] distro not working properly ? #1386

Closed
hanyEthan opened this issue Jan 24, 2021 · 8 comments · Fixed by #1399
Closed

[docker-compose] distro not working properly ? #1386

hanyEthan opened this issue Jan 24, 2021 · 8 comments · Fixed by #1399
Assignees
Labels

Comments

@hanyEthan
Copy link

Environment - Windows 10 pro / Docker for windows v20.10.2 / Google Chrome 87.0.4280.141
ApiCurio release - latest on Master branch (on the time of this comment)
Issue description:

we have been trying to test ApiCurio on our local Docker compose to evaluate it, as we have been hearing good feedback about it so far, but we are having difficult time setting it up using its Docker Compose distro ...

  1. docker-compose distro is not running correctly due to an issue connecting to mysql without SSL.
  2. quarkus docker-compose has been installed correctly
    • but not initially, as we had to replace this string in the .env file in order for Apicurio to integrate with the auth service correctly ...
      • APICURIO_KC_AUTH_URL=http://192.168.1.40:8090/auth/realms/apicurio replaced with APICURIO_KC_AUTH_URL=http://192.168.1.40:8090/auth
    • and all 3 portals opened correctly after that (keycloack, microcks, & Apicurio)
    • but Apicurio portal couldn't work with its api due to CORS issue
      Screenshot 2021-01-24 172036

are we missing any configurations ?

Thank you.

@carlesarnal
Copy link
Member

Hi @hanyEthan,

Regarding the docker-compose-distro this is the distro that you should use right now and a potential workaround for what you're describing can be found here.

Regarding the quarkus-compose-distro, the APICURIO_KC_AUTH_URL value in the .env is correct since that's the value that the quarkus image expects. That said since that distro isn't part of any release the images aren't publicly available at this moment and therefore this distro should not be used. If you still want to try the quarkus distro I'll be more than happy to give you some instructions on how to get it up & running (basically you'll need to build the images locally).

@hanyEthan
Copy link
Author

Thank you so much @carlesarnal for your response.

thank you again.

@hanyEthan
Copy link
Author

Hi @carlesarnal,

  • i tried the suggested workaround, and it worked (thank you).

  • but it seems that i'm facing another issue with the auth service configuration, preventing both microcks and apicurio from starting.
    image
    image
    image
    image

  • did we miss something else ?

thank you for your support.

@carlesarnal
Copy link
Member

Hi @hanyEthan, afaik, no, you aren't missing anything. Could you please share the server log?

@hanyEthan
Copy link
Author

hi @carlesarnal, thank you for replying,

  • we have restarted all configurations, and retried again, this time, the ApiCurio system error disappeared (we didn't know why),
  • but the microcks is still having the same auth issue.
  • these are the microcks realm config, and logs for trying to open it, and then, trying to integrate with it configs & logs.zip.

thank you again,

@carlesarnal
Copy link
Member

hi @hanyEthan, thanks, I'll take a look and try to reproduce this issue.

@carlesarnal carlesarnal self-assigned this Jan 26, 2021
@carlesarnal carlesarnal linked a pull request Jan 29, 2021 that will close this issue
@carlesarnal
Copy link
Member

carlesarnal commented Jan 29, 2021

Hi @hanyEthan, I'm glad you raised this cause it led me to find a bug in the docker-compose distro. We had a problem with the microcks realm template, causing the redirect URI to be invalid. I've linked a PR that should fix the issue.

Also, as a side note, you should access the applications using your host IP, using localhost will lead you to the same invalid_url error.

Thanks!

@hanyEthan
Copy link
Author

thank you @carlesarnal, the installation and auth are working properly now.
we will continue our evaluation, and will report any blockers.

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

Successfully merging a pull request may close this issue.

2 participants