Skip to content

Commit

Permalink
chore: rename docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm committed Oct 21, 2024
1 parent 832d97e commit 319ea09
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<your-client-id> -e ZEEBE_CLIENT_SECRET=<your-client-secret> -e CAMUNDA_CLUSTER_ID=<your-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=<your-client-id> -e ZEEBE_CLIENT_SECRET=<your-client-secret> -e CAMUNDA_CLUSTER_ID=<your-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:
Expand All @@ -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=<your-client-id>
- ZEEBE_CLIENT_SECRET=<your-client-secret>
Expand Down
25 changes: 25 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -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())

0 comments on commit 319ea09

Please sign in to comment.