Skip to content

Commit

Permalink
rabbitmq example updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuf Can Bayrak committed Dec 11, 2021
1 parent 3e369b1 commit 6f339f1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/rabbitmq/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM robotframework/rfdocker
FROM python:3.10-slim

WORKDIR /opt/service

# project setup
COPY .. /opt/service
COPY . /opt/service
RUN pip install -r requirements.txt

# reactive-robot setup
COPY reactive-robot.yml .
RUN pip install reactive-robot

CMD ["python", "-m", "reactive-robot", "serve"]
CMD ["python3", "-m", "reactive_robot", "serve"]
13 changes: 13 additions & 0 deletions examples/rabbitmq/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3"
services:
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq-broker
ports:
- "5672:5672"
robot-service:
build:
dockerfile: Dockerfile
context: .
depends_on:
- rabbitmq
13 changes: 13 additions & 0 deletions examples/rabbitmq/reactive-robot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
service_name: Demo Robot Service (RabbitMQ)
service_version: 1.0.0

connector:
driver: reactive_robot.connectors.rabbitmq.RabbitMQConnector
connection_url: amqp://guest:guest@rabbitmq:5672

bindings:
- name: Basic Robot
topic: basic
robot:
file: tasks/basic.robot
args: null
2 changes: 2 additions & 0 deletions examples/rabbitmq/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
importlib-metadata==4.8.2
robotframework==4.1.2

0 comments on commit 6f339f1

Please sign in to comment.