Added docker deploy scripts
This commit is contained in:
parent
887cb712ec
commit
8e25277dcb
@ -27,5 +27,5 @@ $command rm -f
|
|||||||
echo "building images.."
|
echo "building images.."
|
||||||
$command build
|
$command build
|
||||||
|
|
||||||
echo "starting cassandra, zookeeper, db-schema images..."
|
echo "starting cassandra, zookeeper, thingsboard-db-schema images..."
|
||||||
$command up -d cassandra zookeeper db-schema
|
$command up -d cassandra zookeeper thingsboard-db-schema
|
||||||
|
|||||||
@ -18,7 +18,7 @@ version: '2'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
thingsboard:
|
thingsboard:
|
||||||
build: thingsboard
|
image: "thingsboard/application:0.1"
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "1883:1883"
|
- "1883:1883"
|
||||||
@ -27,8 +27,6 @@ services:
|
|||||||
- cassandra:db
|
- cassandra:db
|
||||||
- zookeeper:zk
|
- zookeeper:zk
|
||||||
- thingsboard-db-schema:thingsboard-db-schema
|
- thingsboard-db-schema:thingsboard-db-schema
|
||||||
volumes:
|
|
||||||
- "../application/target/thingsboard.deb:/root/thingsboard.deb"
|
|
||||||
env_file:
|
env_file:
|
||||||
- thingsboard.env
|
- thingsboard.env
|
||||||
entrypoint: ./run_thingsboard.sh
|
entrypoint: ./run_thingsboard.sh
|
||||||
|
|||||||
@ -17,6 +17,7 @@
|
|||||||
FROM openjdk:8-jre
|
FROM openjdk:8-jre
|
||||||
|
|
||||||
ADD run_thingsboard.sh /root/run_thingsboard.sh
|
ADD run_thingsboard.sh /root/run_thingsboard.sh
|
||||||
|
ADD thingsboard.deb /root/thingsboard.deb
|
||||||
|
|
||||||
RUN chmod +x /root/run_thingsboard.sh
|
RUN chmod +x /root/run_thingsboard.sh
|
||||||
|
|
||||||
|
|||||||
9
docker/thingsboard/build_and_deploy.sh
Executable file
9
docker/thingsboard/build_and_deploy.sh
Executable 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
|
||||||
Loading…
x
Reference in New Issue
Block a user