-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Use docker for integrations #87
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
How are these going to be built? Separate GitHub projects similar to the Singer structure? I imagine it'd take quite a while to build each of these separately every CI run.
Also, should we be pulling these images in advance for the local build or stop script? Otherwise there will be a big delay before running the job which will be noticeable in the UI for something like running a discovery or a connection check.
|
||
public class PostgreSQLContainerHelper { | ||
|
||
public static String getSingerConfigJson(PostgreSQLContainer db) throws JsonProcessingException { | ||
return getSingerConfigJson( | ||
db.getUsername(), | ||
db.getPassword(), | ||
db.getHost(), | ||
"host.docker.internal", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this preferable to using the host returned by PostgreSQLContainer
/ won't this fail in tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because both now run in containers. so the port isn't local to the integration container.
What
Allows integrations to be implemented as a docker image
How
Images can now be describe in the project.
Singer worker will pull the image when running.
Updated the code to work with images instead of python env.
Recommended reading order
dataline-integrations/singer/*
Next steps
(thread going: https://gitter.im/docker-java/docker-java, gist of the docker-java: https://gist.github.com/michel-tricot/f124dccdb0063b29c7463415cabec2d7)