summaryrefslogtreecommitdiff
path: root/tests/env
diff options
context:
space:
mode:
Diffstat (limited to 'tests/env')
-rw-r--r--tests/env/Dockerfile-beanstalkd.yaml16
-rw-r--r--tests/env/Dockerfile-elastic-mq.yaml9
-rw-r--r--tests/env/custom.conf8
-rw-r--r--tests/env/docker-compose.yaml39
4 files changed, 72 insertions, 0 deletions
diff --git a/tests/env/Dockerfile-beanstalkd.yaml b/tests/env/Dockerfile-beanstalkd.yaml
new file mode 100644
index 00000000..852385a1
--- /dev/null
+++ b/tests/env/Dockerfile-beanstalkd.yaml
@@ -0,0 +1,16 @@
+FROM archlinux:latest
+
+ARG DEBIAN_FRONTEND=noninteractive
+RUN pacman-key --init
+
+RUN Y | pacman -Syu --noconfirm
+RUN Y | pacman -S --noconfirm curl base-devel pkgconf
+
+RUN curl -sL https://github.com/kr/beanstalkd/archive/v1.12.tar.gz | tar xvz -C /tmp
+
+WORKDIR /tmp/beanstalkd-1.12
+RUN make -j12
+RUN cp beanstalkd /usr/bin
+
+EXPOSE 11300
+ENTRYPOINT ["/usr/bin/beanstalkd"]
diff --git a/tests/env/Dockerfile-elastic-mq.yaml b/tests/env/Dockerfile-elastic-mq.yaml
new file mode 100644
index 00000000..e1513450
--- /dev/null
+++ b/tests/env/Dockerfile-elastic-mq.yaml
@@ -0,0 +1,9 @@
+FROM openjdk:16
+
+ADD https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-1.2.0.jar /
+COPY custom.conf /
+ENTRYPOINT ["java", "-Dconfig.file=custom.conf", "-jar", "/elasticmq-server-1.2.0.jar"]
+
+EXPOSE 9324
+
+CMD ["-help"]
diff --git a/tests/env/custom.conf b/tests/env/custom.conf
new file mode 100644
index 00000000..9be7730e
--- /dev/null
+++ b/tests/env/custom.conf
@@ -0,0 +1,8 @@
+include classpath("application.conf")
+
+node-address {
+ protocol = http
+ host = "*"
+ port = 9324
+ context-path = ""
+}
diff --git a/tests/env/docker-compose.yaml b/tests/env/docker-compose.yaml
new file mode 100644
index 00000000..4f58d543
--- /dev/null
+++ b/tests/env/docker-compose.yaml
@@ -0,0 +1,39 @@
+version: '3.8'
+
+services:
+ memcached:
+ image: memcached:latest
+ ports:
+ - "127.0.0.1:11211:11211"
+ redis:
+ image: redis:6
+ ports:
+ - "127.0.0.1:6379:6379"
+ redis2:
+ image: redis:6
+ ports:
+ - "127.0.0.1:6378:6379"
+
+ toxicproxy:
+ image: shopify/toxiproxy
+ network_mode: "host"
+
+ beanstalk:
+ build:
+ context: .
+ dockerfile: Dockerfile-beanstalkd.yaml
+ ports:
+ - "127.0.0.1:11300:11300"
+
+ sqs:
+ build:
+ context: .
+ dockerfile: Dockerfile-elastic-mq.yaml
+ ports:
+ - "127.0.0.1:9324:9324"
+
+ rabbitmq:
+ image: rabbitmq:3-management
+ ports:
+ - "127.0.0.1:15672:15672"
+ - "127.0.0.1:5672:5672"