Merge pull request #3 from ashvayka/docker-deploy

Added docker deploy scripts
This commit is contained in:
Andrew Shvayka 2016-12-05 17:22:34 +02:00 committed by GitHub
commit 0cf1f5ea4f
5 changed files with 14 additions and 5 deletions

1
docker/.env Normal file
View File

@ -0,0 +1 @@
CASSANDRA_DATA_DIR=/home/docker/cassandra_volume

View File

@ -27,5 +27,5 @@ $command rm -f
echo "building images.."
$command build
echo "starting cassandra, zookeeper, db-schema images..."
$command up -d cassandra zookeeper db-schema
echo "starting cassandra, zookeeper, thingsboard-db-schema images..."
$command up -d cassandra zookeeper thingsboard-db-schema

View File

@ -18,7 +18,7 @@ version: '2'
services:
thingsboard:
build: thingsboard
image: "thingsboard/application:0.1"
ports:
- "8080:8080"
- "1883:1883"
@ -27,8 +27,6 @@ services:
- cassandra:db
- zookeeper:zk
- thingsboard-db-schema:thingsboard-db-schema
volumes:
- "../application/target/thingsboard.deb:/root/thingsboard.deb"
env_file:
- thingsboard.env
entrypoint: ./run_thingsboard.sh

View File

@ -17,6 +17,7 @@
FROM openjdk:8-jre
ADD run_thingsboard.sh /root/run_thingsboard.sh
ADD thingsboard.deb /root/thingsboard.deb
RUN chmod +x /root/run_thingsboard.sh

View File

@ -0,0 +1,9 @@
#!/bin/bash
cp ../../application/target/thingsboard.deb thingsboard.deb
docker build -t thingsboard/application:0.1 .
docker login
docker push thingsboard/application:0.1