change to master branch

This commit is contained in:
sunzhengfang
2019-01-14 13:55:49 +08:00
parent 3f024f00ef
commit 15df7fb21f
7 changed files with 17 additions and 16 deletions

View File

@@ -1,16 +0,0 @@
From centos:centos7
RUN yum install -y wget java mysql
RUN wget -P /opt https://github.com/actiontech/dble/releases/download/2.18.12.0%2Ftag/actiontech-dble-2.18.12.0.tar.gz && \
tar zxvf /opt/actiontech-dble-2.18.12.0.tar.gz -C /opt && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/conf/schema.xml -P /opt/dble/conf/ && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/conf/server.xml -P /opt/dble/conf/ && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/conf/rule.xml -P /opt/dble/conf/ && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/conf/wrapper.conf -P /opt/dble/conf/ && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/conf/docker_init_start.sh -P /opt/dble/bin/ && \
chmod 777 /opt/dble/bin/docker_init_start.sh && \
rm -f /opt/actiontech-dble-2.18.12.0.tar.gz
VOLUME /opt/dble
CMD ["/opt/dble/bin/docker_init_start.sh"]

View File

@@ -0,0 +1,17 @@
From centos:centos7
RUN yum install -y wget java mysql
RUN version=$( curl "https://github.com/actiontech/dble/releases/latest"|awk -F "/" '{print $8}')
wget -P /opt https://github.com/actiontech/dble/releases/download/$version%2Ftag/actiontech-dble-$version.tar.gz && \
tar zxvf /opt/actiontech-dble-$version.tar.gz -C /opt && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/quick-start/schema.xml -P /opt/dble/conf/ && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/quick-start/server.xml -P /opt/dble/conf/ && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/quick-start/rule.xml -P /opt/dble/conf/ && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/quick-start/wrapper.conf -P /opt/dble/conf/ && \
wget https://raw.githubusercontent.com/actiontech/dble/docker-file/docker-images/quick-start/docker_init_start.sh -P /opt/dble/bin/ && \
chmod 777 /opt/dble/bin/docker_init_start.sh && \
rm -f /opt/actiontech-dble-$version.tar.gz
VOLUME /opt/dble
CMD ["/opt/dble/bin/docker_init_start.sh"]