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 the usability of the base docker #5

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

langens-jonathan
Copy link

There were no default configurations which would make this image easier to use.
I have also added and updated documentation.
Lastly I have changed the way the JSON objects are converted to shell commands to resolve the multiple key issue (see commits for more information). And added a default listener.

There were no default configurations for this image. I have now added 2
configurations that expect a container linked as 'zookeeper' to be available.
I have also changed the start command for the docker image.
The original implementation already used JSON.loads to load the JSON file
containing the array with objects to be converted to shell commands. There is an
issue with this when there are multiple keys with the same value. In that case
only the last value was retained.

I have now changed the behavior to allow for the inclusion of an array that will
be expended to a repetition of the same key with different arguments. The case
where there is a need to have a single key with an array of arguments is also
supported although in that case the arguments have to be provided in the array
form they would take in the shell command (the shell command is built using
string concatenation).

Lastly this commit also adds documentation to this process within the python
script.
Since the start up of kafka blocks the rest of the script to be executed I have
moved to init process to a different process.
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.

1 participant