Showing
6 changed files
with
8 additions
and
87 deletions
docker/cassandra/Dockerfile
deleted
100644 → 0
1 | -# | |
2 | -# Copyright © 2016-2017 The Thingsboard Authors | |
3 | -# | |
4 | -# Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | -# you may not use this file except in compliance with the License. | |
6 | -# You may obtain a copy of the License at | |
7 | -# | |
8 | -# http://www.apache.org/licenses/LICENSE-2.0 | |
9 | -# | |
10 | -# Unless required by applicable law or agreed to in writing, software | |
11 | -# distributed under the License is distributed on an "AS IS" BASIS, | |
12 | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | -# See the License for the specific language governing permissions and | |
14 | -# limitations under the License. | |
15 | -# | |
16 | - | |
17 | -FROM cassandra:3.9 | |
18 | - | |
19 | -COPY ready-probe.sh / | |
20 | - | |
21 | -CMD ["cassandra", "-f"] | |
\ No newline at end of file |
docker/cassandra/Makefile
deleted
100644 → 0
docker/cassandra/ready-probe.sh
deleted
100755 → 0
1 | -#!/bin/bash | |
2 | -# | |
3 | -# Copyright © 2016-2017 The Thingsboard Authors | |
4 | -# | |
5 | -# Licensed under the Apache License, Version 2.0 (the "License"); | |
6 | -# you may not use this file except in compliance with the License. | |
7 | -# You may obtain a copy of the License at | |
8 | -# | |
9 | -# http://www.apache.org/licenses/LICENSE-2.0 | |
10 | -# | |
11 | -# Unless required by applicable law or agreed to in writing, software | |
12 | -# distributed under the License is distributed on an "AS IS" BASIS, | |
13 | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 | -# See the License for the specific language governing permissions and | |
15 | -# limitations under the License. | |
16 | -# | |
17 | - | |
18 | -if [[ $(nodetool status | grep $POD_IP) == *"UN"* ]]; then | |
19 | - if [[ $DEBUG ]]; then | |
20 | - echo "UN"; | |
21 | - fi | |
22 | - exit 0; | |
23 | -else | |
24 | - if [[ $DEBUG ]]; then | |
25 | - echo "Not Up"; | |
26 | - fi | |
27 | - exit 1; | |
28 | -fi | |
\ No newline at end of file |
docker/docker-compose.random.yml
deleted
100644 → 0
1 | -# | |
2 | -# Copyright © 2016-2017 The Thingsboard Authors | |
3 | -# | |
4 | -# Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | -# you may not use this file except in compliance with the License. | |
6 | -# You may obtain a copy of the License at | |
7 | -# | |
8 | -# http://www.apache.org/licenses/LICENSE-2.0 | |
9 | -# | |
10 | -# Unless required by applicable law or agreed to in writing, software | |
11 | -# distributed under the License is distributed on an "AS IS" BASIS, | |
12 | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | -# See the License for the specific language governing permissions and | |
14 | -# limitations under the License. | |
15 | -# | |
16 | - | |
17 | -version: '2' | |
18 | - | |
19 | -services: | |
20 | - cassandra: | |
21 | - ports: | |
22 | - - "9042" | |
23 | - - "9160" | |
24 | - zk: | |
25 | - ports: | |
26 | - - "2181" |
... | ... | @@ -35,9 +35,14 @@ services: |
35 | 35 | - CASSANDRA_URL=${CASSANDRA_URL} |
36 | 36 | entrypoint: ./install-schema.sh |
37 | 37 | cassandra: |
38 | - image: "thingsboard/cassandra:k8stest" | |
38 | + image: "cassandra:3.9" | |
39 | + ports: | |
40 | + - "9042" | |
41 | + - "9160" | |
39 | 42 | volumes: |
40 | 43 | - "${CASSANDRA_DATA_DIR}:/var/lib/cassandra" |
41 | 44 | zk: |
42 | - image: "thingsboard/zk:k8stest" | |
45 | + image: "zookeeper:3.4.9" | |
46 | + ports: | |
47 | + - "2181" | |
43 | 48 | restart: always | ... | ... |