Commit 0cf1f5ea4f0393e23a762319d15ad01e94843d42

Authored by Andrew Shvayka
Committed by GitHub
2 parents ade8590b ddd1f27d

Merge pull request #3 from ashvayka/docker-deploy

Added docker deploy scripts
  1 +CASSANDRA_DATA_DIR=/home/docker/cassandra_volume
@@ -27,5 +27,5 @@ $command rm -f @@ -27,5 +27,5 @@ $command rm -f
27 echo "building images.." 27 echo "building images.."
28 $command build 28 $command build
29 29
30 -echo "starting cassandra, zookeeper, db-schema images..."  
31 -$command up -d cassandra zookeeper db-schema 30 +echo "starting cassandra, zookeeper, thingsboard-db-schema images..."
  31 +$command up -d cassandra zookeeper thingsboard-db-schema
@@ -18,7 +18,7 @@ version: '2' @@ -18,7 +18,7 @@ version: '2'
18 18
19 services: 19 services:
20 thingsboard: 20 thingsboard:
21 - build: thingsboard 21 + image: "thingsboard/application:0.1"
22 ports: 22 ports:
23 - "8080:8080" 23 - "8080:8080"
24 - "1883:1883" 24 - "1883:1883"
@@ -27,8 +27,6 @@ services: @@ -27,8 +27,6 @@ services:
27 - cassandra:db 27 - cassandra:db
28 - zookeeper:zk 28 - zookeeper:zk
29 - thingsboard-db-schema:thingsboard-db-schema 29 - thingsboard-db-schema:thingsboard-db-schema
30 - volumes:  
31 - - "../application/target/thingsboard.deb:/root/thingsboard.deb"  
32 env_file: 30 env_file:
33 - thingsboard.env 31 - thingsboard.env
34 entrypoint: ./run_thingsboard.sh 32 entrypoint: ./run_thingsboard.sh
@@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
17 FROM openjdk:8-jre 17 FROM openjdk:8-jre
18 18
19 ADD run_thingsboard.sh /root/run_thingsboard.sh 19 ADD run_thingsboard.sh /root/run_thingsboard.sh
  20 +ADD thingsboard.deb /root/thingsboard.deb
20 21
21 RUN chmod +x /root/run_thingsboard.sh 22 RUN chmod +x /root/run_thingsboard.sh
22 23
  1 +#!/bin/bash
  2 +
  3 +cp ../../application/target/thingsboard.deb thingsboard.deb
  4 +
  5 +docker build -t thingsboard/application:0.1 .
  6 +
  7 +docker login
  8 +
  9 +docker push thingsboard/application:0.1