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

Port to Crystal #4

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Port to Crystal #4

wants to merge 3 commits into from

Conversation

ysbaddaden
Copy link

What about having Dockerdev written in Crystal instead of Go?

The Docker shard only implements the authentication (and a couple example bindings), so I had to generate the bindings needed for talking with the Docker server. Apart from that it's basically the same, but written in Crystal instead of Go.

Bonuses:

Warning: I only tested it quickly. It properly associates compose containers to the shared network and sets the DNS alias. I didn't test if everything is working correctly wih a more complex setup (e.g. NCD).

@ysbaddaden ysbaddaden self-assigned this May 31, 2023
@ysbaddaden
Copy link
Author

I had an issue locally where web.verboice.lvh.me didn't resolve to the container's IP from Surveda (despite the aliases being properly set), while another container didn't have issue reaching web.nuntium.lvh.me.

I rebuilt the image using the debian image of nginx-proxy, instead of alpine, and now it's working after restarting surveda's container. That's weird.

I got some issues with resolving domains across containers with the
alpine image. Let's only port to crystal 😄
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.

Have dockerdev create the shared network
1 participant