summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-07 12:37:24 +0300
committerValery Piashchynski <[email protected]>2021-07-07 12:37:24 +0300
commit127186a72d4b8d30f6ada72ade661d8713490728 (patch)
tree0a241602c1b0461c4e0535d9e4183a978b751c8d /tests
parent36bf9228e60f59f569e84822e2860980d7ed698d (diff)
Rework test env...
Move all dockerfiles, docker-compose files into the env folder inside the tests folder. Add elasticmq dockerfile to build SQS compatible test env. Add beanstalk, rabbitmq, sqs to the main tests docker-compose file. Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/Dockerfile0
-rw-r--r--tests/docker-compose.yaml15
-rw-r--r--tests/env/Dockerfile-elastic-mq.yaml9
-rw-r--r--tests/env/custom.conf8
-rw-r--r--tests/env/docker-compose-jobs.yml (renamed from tests/docker-compose-jobs.yml)0
-rw-r--r--tests/env/docker-compose.yaml37
6 files changed, 54 insertions, 15 deletions
diff --git a/tests/Dockerfile b/tests/Dockerfile
deleted file mode 100644
index e69de29b..00000000
--- a/tests/Dockerfile
+++ /dev/null
diff --git a/tests/docker-compose.yaml b/tests/docker-compose.yaml
deleted file mode 100644
index b6ba0f66..00000000
--- a/tests/docker-compose.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-version: '3'
-
-services:
- memcached:
- image: memcached:latest
- ports:
- - "0.0.0.0:11211:11211"
- redis:
- image: redis:6
- ports:
- - "6379:6379"
- redis2:
- image: redis:6
- ports:
- - "6378:6379"
diff --git a/tests/env/Dockerfile-elastic-mq.yaml b/tests/env/Dockerfile-elastic-mq.yaml
new file mode 100644
index 00000000..c9f909d0
--- /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.1.1.jar /
+COPY custom.conf /
+ENTRYPOINT ["java", "-Dconfig.file=custom.conf", "-jar", "/elasticmq-server-1.1.1.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/docker-compose-jobs.yml b/tests/env/docker-compose-jobs.yml
index 7b88c9cf..7b88c9cf 100644
--- a/tests/docker-compose-jobs.yml
+++ b/tests/env/docker-compose-jobs.yml
diff --git a/tests/env/docker-compose.yaml b/tests/env/docker-compose.yaml
new file mode 100644
index 00000000..a407fed4
--- /dev/null
+++ b/tests/env/docker-compose.yaml
@@ -0,0 +1,37 @@
+version: '3'
+
+services:
+ memcached:
+ image: memcached:latest
+ ports:
+ - "0.0.0.0:11211:11211"
+ redis:
+ image: redis:6
+ ports:
+ - "6379:6379"
+ redis2:
+ image: redis:6
+ ports:
+ - "6378:6379"
+
+ beanstalk:
+ image: schickling/beanstalkd
+ ports:
+ - "11300:11300"
+
+ sqs:
+ build:
+ context: .
+ dockerfile: Dockerfile-elastic-mq.yaml
+ ports:
+ - "9324:9324"
+
+ rabbitmq:
+ image: rabbitmq:3-management
+ environment:
+ RABBITMQ_DEFAULT_USER: guest
+ RABBITMQ_DEFAULT_PASS: guest
+ RABBITMQ_DEFAULT_VHOST: /
+ ports:
+ - "15672:15672"
+ - "5672:5672"