From 319ea0986d3a70104074d61d1817876dcbd669d9 Mon Sep 17 00:00:00 2001 From: Martin Stamm Date: Mon, 21 Oct 2024 12:17:11 +0200 Subject: [PATCH] chore: rename docker container --- README.md | 4 ++-- test.py | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 test.py diff --git a/README.md b/README.md index 2765a47..3dc3783 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ If you prefer to run the Camunda RPA Runtime using Docker, you can pull the Dock To run the RPA Runtime from Docker, execute the following command: ```sh -docker run -e ZEEBE_CLIENT_ID= -e ZEEBE_CLIENT_SECRET= -e CAMUNDA_CLUSTER_ID= -v /path/to/your/scripts:/usr/src/app/rpaScripts -p 36227:36227 ghcr.io/camunda/prototype-rpa-worker:main +docker run -e ZEEBE_CLIENT_ID= -e ZEEBE_CLIENT_SECRET= -e CAMUNDA_CLUSTER_ID= -v /path/to/your/scripts:/usr/src/app/rpaScripts -p 36227:36227 ghcr.io/camunda/rpa-worker:main ``` If you prefer to use Docker Compose, you can create a `docker-compose.yml` file with the following content: @@ -83,7 +83,7 @@ If you prefer to use Docker Compose, you can create a `docker-compose.yml` file version: '3' services: rpa-worker: - image: ghcr.io/camunda/prototype-rpa-worker:main + image: ghcr.io/camunda/rpa-worker:main environment: - ZEEBE_CLIENT_ID= - ZEEBE_CLIENT_SECRET= diff --git a/test.py b/test.py new file mode 100644 index 0000000..2580578 --- /dev/null +++ b/test.py @@ -0,0 +1,25 @@ +import asyncio + +from pyzeebe import ZeebeWorker, create_camunda_cloud_channel + +channel = create_camunda_cloud_channel( + "VWbutegrFwf79U.b9CtZpf~hwiS1OPHy", + "sGYgVFQ0cov0gsYEYSA_0NcBpjOpSH4q8QaP4obuCo-Ub8APsbQi9nA07r8SwJkc", + "f46fe121-c0d2-48ea-ab05-a4c024393c13", + "bru-2", +) +worker = ZeebeWorker(channel) + + +@worker.task(task_type="defineTopic") +async def my_task(): + return {"calculatedTopic": "my-topic"} + + +@worker.task(task_type="my-topic") +async def my_task(): + return {"myResult": "success"} + + +loop = asyncio.get_event_loop() +loop.run_until_complete(worker.work())