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 deployment management of Processing Broker #140

Open
tdoan2010 opened this issue Nov 14, 2022 · 1 comment
Open

Docker deployment management of Processing Broker #140

tdoan2010 opened this issue Nov 14, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tdoan2010
Copy link

tdoan2010 commented Nov 14, 2022

The processing broker parses the configuration file and deploys necessary components (processors or a queuing system). The deployment of the processors is made via Docker.

This feature can be implemented in the following steps:

  1. Connect to the Docker socket of the specified machine via ssh.
  2. Pull the latest ocrd-all image.
  3. Start the processing server container in the background.
  4. Shutdown the container later.

To start the processing broker, the CLI syntax would be:

$ ocrd processing-broker <path-to-config-file>
@tdoan2010
Copy link
Author

tdoan2010 commented Nov 14, 2022

  • To work with docker in Python, use Docker SDK for Python
  • To connect to another Docker socket via ssh, check this post
  • $DOCKER_HOST might need to be set on the target machine as stated in this article. I would recommend trying first without setting anything. If it doesn't work, set the $DOCKER_HOST.

@tdoan2010 tdoan2010 added the enhancement New feature or request label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants