From dcef1fa8d7f5f42c51fbbc822a959581c99ac6af Mon Sep 17 00:00:00 2001 From: Julius Unverfehrt Date: Mon, 14 Feb 2022 10:01:23 +0100 Subject: [PATCH] init --- docker-compose.yaml | 31 +++++++++++++++++++++++++++++++ mini_queue/__init__.py | 0 mini_queue/pikapika.py | 4 ++++ requirements.txt | 1 + setup.py | 13 +++++++++++++ 5 files changed, 49 insertions(+) create mode 100755 docker-compose.yaml create mode 100644 mini_queue/__init__.py create mode 100644 mini_queue/pikapika.py create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100755 index 0000000..346d93e --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,31 @@ +version: '2' +services: +# minio: +# image: minio/minio +# ports: +# - "9000:9000" +# environment: +# - MINIO_ROOT_PASSWORD=password +# - MINIO_ROOT_USER=root +# volumes: +# - ./data/minio_store:/data +# command: server /data +# network_mode: "bridge" + + rabbitmq: + image: docker.io/bitnami/rabbitmq:3.9 + ports: + - '4369:4369' + - '5551:5551' + - '5552:5552' + - '5672:5672' + - '25672:25672' + - '15672:15672' + environment: + - RABBITMQ_SECURE_PASSWORD=yes + network_mode: "bridge" + volumes: + - /opt/bitnami/rabbitmq/.rabbitmq/:/data/bitnami +volumes: + mdata: + diff --git a/mini_queue/__init__.py b/mini_queue/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/mini_queue/pikapika.py b/mini_queue/pikapika.py new file mode 100644 index 0000000..fd27803 --- /dev/null +++ b/mini_queue/pikapika.py @@ -0,0 +1,4 @@ +import pika + +credentials = pika.PlainCredentials('user', 'bitnami') +parameters = pika.ConnectionParameters(host=args.host, port=5672, heartbeat=1000, credentials=credentials) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..df7f423 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pika diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f080f6a --- /dev/null +++ b/setup.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +from distutils.core import setup + +setup( + name="mini_queue", + version="0.0.1", + description="", + author="", + author_email="", + url="", + packages=["mini_queue"], +)