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

Improve Docker Setup #452

Merged
merged 95 commits into from
Aug 3, 2023
Merged

Improve Docker Setup #452

merged 95 commits into from
Aug 3, 2023

Conversation

gartens
Copy link
Contributor

@gartens gartens commented Jul 20, 2023

Summary

This improves how Docker connections are handled in Polypheny.

Changes

The connection to docker happens via a new polypheny-docker-connector container. Most of the docker logic is inside of that container, Polypheny communicates with it using protobuf messages. Connections to new Docker hosts are established using a new handshake protocol.

Features

  • The exposed ports are chosen automatically by Docker, so the user no longer needs to specify them manually
  • Passwords for containers, when applicable, are chosen by Polypheny
  • Each Polypheny instance now has an UUID. This UUID is used in the name of containers, making collisions of container names between different instances unlikely.
  • Adapters are keeping track of the UUID of the deployed Docker container. This information is used to reconnect to the right container on a restart.
  • Most of the options in the adapter setup dialog have been removed for Docker setups

Additional Changes and Minor Fixes

  • Improve parsing of comments in SQL queries submitted through the Polypheny UI.
  • Fix an issue with creating graph namespaces (see corresponding UI PR).
  • Suggest names for adapters, simplifying the adapter deployment.

There is a corresponding PR for the Polypheny-UI.

gartens and others added 10 commits August 2, 2023 08:54
The adapter tests do a very good job implicitly testing the new Docker classes.  Unit tests are hard because all interesting methods depend on being connected to Docker.
Creating a graph namespace on an adapter with an underscore in the
name causes problems at the moment.
@vogti vogti self-requested a review August 3, 2023 09:00
Copy link
Member

@vogti vogti left a comment

Choose a reason for hiding this comment

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

Thx, @gartens, for this PR!

@vogti vogti merged commit a3b44f4 into master Aug 3, 2023
34 checks passed
@vogti vogti deleted the docker-refactor branch August 3, 2023 09:02
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