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

Watch "processing" collection and process images #46

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

thekid
Copy link
Owner

@thekid thekid commented Nov 19, 2022

Implements media processor container as described in #44

Build and run

Run the following commands:

$ docker build -t thekid/dialog-processing -f Dockerfile.processing .
# ...

$ docker run --rm -it -e DIALOG_API -e MONGO_URI -e MONGO_DB thekid/dialog-processing
# ...

Trigger

Copy the original image into the imports directory, simulating an upload. Then, insert the following document into the processing collection:

{
  "slug":"rueppur_alb_2022-11-13",
  "file":"20221113_151718315_iOS.jpg",
  "at":{"$date":{"$numberLong":"1668873515000"}},
  "state":"new"
}

Example

Processing an image

image

Error handling

After connection was closed

image

@thekid thekid added the enhancement New feature or request label Nov 19, 2022
@thekid thekid mentioned this pull request Nov 20, 2022
6 tasks
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

Successfully merging this pull request may close these issues.

1 participant