modify the dockerfile and docker build script to adapt the change of software release script

This commit is contained in:
liu0x54 2020-02-12 14:23:15 +08:00
parent aff1068952
commit f4dac146dc
2 changed files with 3 additions and 9 deletions

View File

@ -4,7 +4,7 @@ WORKDIR /root
COPY tdengine.tar.gz /root/
RUN tar -zxf tdengine.tar.gz
WORKDIR /root/tdengine/
WORKDIR /root/TDengine-server/
RUN sh install.sh

View File

@ -1,12 +1,6 @@
#!/bin/bash
set -x
$1
tar -zxf $1
DIR=`echo $1|awk -F . '{print($1"."$2"."$3"."$4)}'`
mv $DIR tdengine
tar -czf tdengine.tar.gz tdengine
TMP=`echo $1|awk -F . '{print($2"."$3"."$4)}'`
TAG="1."$TMP
docker build --rm -f "Dockerfile" -t tdengine/tdengine:$TAG "."
docker build --rm -f "Dockerfile" -t tdengine/tdengine:$1 "."
docker login -u tdengine -p ******** #replace the docker registry username and password
docker push tdengine/tdengine:$TAG
docker push tdengine/tdengine:$1