Skip to content

Commit 3f0b814

Browse files
Make Docker Compose an option for running a node for tests
1 parent 73b7c97 commit 3f0b814

18 files changed

+98
-17
lines changed

.travis/etc/rabbitmq.conf

Lines changed: 0 additions & 16 deletions
This file was deleted.

.travis/etc/rabbitmq.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker/rabbitmq.conf

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ is used by CI and can be used as example:
6262

6363
``` ini
6464
listeners.tcp.1 = 0.0.0.0:5672
65-
listeners.tcp.2 = 0.0.0.0:5674
6665

6766
listeners.ssl.default = 5671
6867

TestCertificates

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker/certificates

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.7'
2+
services:
3+
rabbitmq:
4+
build: ./docker
5+
container_name: rabbitmq_objc_client
6+
environment:
7+
RABBITMQ_LOGS: '-'
8+
RABBITMQ_SASL_LOGS: '-'
9+
ports:
10+
- 5671-5672:5671-5672
11+
- 15672:15672

docker/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update -y
4+
RUN apt-get install -y gnupg2 wget
5+
RUN wget -O - "https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc" | apt-key add -
6+
7+
COPY apt/sources.list.d/bintray.rabbitmq.list /etc/apt/sources.list.d/bintray.rabbitmq.list
8+
COPY apt/preferences.d/erlang /etc/apt/preferences.d/erlang
9+
10+
RUN apt-get update -y
11+
12+
RUN apt-get upgrade -y && \
13+
apt-get install -y rabbitmq-server
14+
15+
COPY docker-entrypoint.sh /
16+
COPY certificates/*.pem /etc/rabbitmq/
17+
COPY rabbitmq.conf /etc/rabbitmq/rabbitmq.conf
18+
19+
ENTRYPOINT /docker-entrypoint.sh
20+
21+
EXPOSE 5671 5672 15672

docker/apt/preferences.d/erlang

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Package: erlang*
2+
Pin: release o=Bintray
3+
Pin-Priority: 1000
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
deb http://dl.bintray.com/rabbitmq-erlang/debian bionic erlang
2+
deb http://dl.bintray.com/rabbitmq/debian bionic main
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)