forked from apache/pekko-connectors
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
262 lines (255 loc) · 6.78 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# For detailed information about docker-compose visit https://docs.docker.com/compose/
# To start all docker containers required to execute the tests locally run:
# docker compose up
services:
amazoneventbridge:
image: localstack/localstack:0.10.6
environment:
- "SERVICES=events"
- "DEBUG=true"
ports:
- "4587:4587"
amazonsns:
image: pafortin/goaws
ports:
- "4100:4100"
volumes:
- ./sns/src/test/travis/:/conf/
amqp:
image: rabbitmq:3
ports:
- "5672:5672"
cassandra:
image: cassandra:4.0
ports:
- "9042:9042"
elasticmq:
image: softwaremill/elasticmq-native:1.5.8
ports:
- "9324:9324"
dynamodb:
image: deangiberson/aws-dynamodb-local
ports:
- "8001:8000"
elasticsearch6:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.23
ports:
- "9201:9200"
environment:
- "discovery.type=single-node"
elasticsearch7:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.20
ports:
- "9202:9200"
environment:
- "discovery.type=single-node"
opensearch1:
image: opensearchproject/opensearch:1.3.14
ports:
- "9203:9200"
environment:
- "discovery.type=single-node"
- "DISABLE_SECURITY_PLUGIN=true"
ftp:
image: stilliard/pure-ftpd:latest
ports:
- "21000:21"
- "30000-30009:30000-30009"
volumes:
- ./ftp/tmp/home:/home/username/
- ./ftp/src/test/resources/ftpd/:/etc/ssl/private/
environment:
PUBLICHOST: "localhost"
FTP_USER_NAME: username
FTP_USER_PASS: userpass
FTP_USER_HOME: /home/username
# https://docs.docker.com/compose/environment-variables/
FTP_USER_UID: ${FTP_USER_UID:-2000}
FTP_USER_GID: ${FTP_USER_GID:-2000}
ADDED_FLAGS: "--tls=1"
geode:
container_name: geode
image: apachegeode/geode:1.15.1
hostname: geode
mem_limit: 2g
expose:
- "10334"
- "1099"
- "7575"
- "40404"
ports:
- "1099:1099"
- "10334:10334"
- "7575:7575"
- "7070:7070"
- "40404:40404"
- "8081:8080"
volumes:
- ./geode/scripts/:/scripts/
command: /scripts/geode.sh
gcloud-pubsub-emulator:
image: google/cloud-sdk:311.0.0
ports:
- "8538:8538"
command: gcloud beta emulators pubsub start --project=pekko-connectors --host-port=0.0.0.0:8538
gcloud-pubsub-emulator_prep:
image: martynas/gcloud-pubsub-client
links:
- "gcloud-pubsub-emulator"
environment:
- "PUBSUB_PROJECT_ID=pekko-connectors"
- "PUBSUB_EMULATOR_HOST=gcloud-pubsub-emulator:8538"
entrypoint: ""
command: >
bash -c "
python publisher.py pekko-connectors create simpleTopic &&
python subscriber.py pekko-connectors create simpleTopic simpleSubscription
python publisher.py pekko-connectors create testTopic &&
python subscriber.py pekko-connectors create testTopic testSubscription
"
hbase:
image: harisekhon/hbase:1.4
hostname: hbase
ports:
- 2181:2181
- 16000:16000
- 16010:16010
- 16201:16201
- 16301:16301
ibmmq:
image: ibmcom/mq:latest
environment:
LICENSE: accept
MQ_QMGR_NAME: QM1
ports:
- "1414:1414"
- "9443:9443"
ironauth:
image: iron/auth
ports:
- "8090:8090"
ironmq:
image: iron/mq
links:
- "ironauth:ironauth"
environment:
- "AUTH_HOST=http://ironauth:8090"
ports:
- "8080:8080"
kudu-master:
image: apache/kudu:1.17.0
ports:
- "7051:7051"
command: [ "master" ]
environment:
- KUDU_MASTERS=kudu-master:7051
- >
MASTER_ARGS=--fs_wal_dir=/var/lib/kudu/master
--rpc_bind_addresses=0.0.0.0:7051
--stderrthreshold=0
--use_hybrid_clock=false
--unlock_unsafe_flags=true
kudu-tserver:
image: apache/kudu:1.17.0
links:
- kudu-master
ports:
- "7050:7050"
command: [ "tserver" ]
environment:
- KUDU_MASTERS=kudu-master:7051
- >
TSERVER_ARGS=--fs_wal_dir=/var/lib/kudu/tserver
--rpc_bind_addresses=0.0.0.0:7050
--stderrthreshold=0
--use_hybrid_clock=false
--unlock_unsafe_flags=true
deploy:
replicas: 1
mongo:
image: mongo
ports:
- "27017:27017"
influxdb:
image: influxdb:1.8-alpine
ports:
- "8086:8086"
mqtt:
image: toke/mosquitto
ports:
- "1883:1883"
volumes:
- ./mqtt/src/test/travis:/mqtt/config/conf.d
orientdb:
image: orientdb:3.2.27
ports:
- "2424:2424"
environment:
- "ORIENTDB_ROOT_PASSWORD=root"
command: /orientdb/bin/server.sh -Dmemory.chunk.size=268435456
sftp:
image: atmoz/sftp
volumes:
- ./ftp/tmp/home:/home/username/upload
- ./ftp/src/test/resources/id_rsa.pub:/home/username/.ssh/keys/id_rsa.pub:ro
- ./ftp/src/test/resources/sftpd/ssh_host_ed25519_key:/tmp/ssh_host_ed25519_key
- ./ftp/src/test/resources/sftpd/ssh_host_rsa_key:/tmp/ssh_host_rsa_key
- ./ftp/src/test/resources/sftpd/init.sh:/etc/sftp.d/init.sh
ports:
- "2222:22"
command: username:userpass:${FTP_USER_UID:-2000}:${FTP_USER_GID:-2000}
squid:
network_mode: host # required for route back to localhost
image: ubuntu/squid
volumes:
- ./ftp/src/test/resources/squid.conf:/etc/squid/squid.conf
pravega:
image: pravega/pravega:0.13.0
ports:
- 9090:9090
- 12345:12345
command: standalone
couchbase:
image: couchbase:community-7.6.1
ports:
- "8091-8096:8091-8096"
- "11210-11211:11210-11211"
couchbase_prep:
image: couchbase:community-7.6.1
links:
- "couchbase"
entrypoint: ""
# when we drop couchbase2, we don't need to create bucket pekkoquery
command: >
bash -c
"echo 'waiting until couchbase is up'
until `curl --output /dev/null --silent --head --fail http://couchbase:8091`; do
printf '.'
sleep 2
done
couchbase-cli cluster-init -c couchbase
--cluster-username Administrator
--cluster-password password
--cluster-ramsize 300
--cluster-index-ramsize 256
--cluster-fts-ramsize 256
--cluster-query-ramsize 256
--services data,index,query,fts
couchbase-cli bucket-create -c couchbase
-u Administrator -p password
--bucket pekko
--bucket-type couchbase
--bucket-ramsize 120
--bucket-replica 1
--wait
couchbase-cli bucket-create -c couchbase
-u Administrator -p password
--bucket pekkoquery
--bucket-type couchbase
--bucket-ramsize 120
--bucket-replica 1
--wait
sleep 2 # just wait a tiny bit more after creating the bucket
"
volumes:
kudu-tserver-data: