diff --git a/docker-images/Dockerfile b/docker-images/Dockerfile deleted file mode 100644 index 66b35e155..000000000 --- a/docker-images/Dockerfile +++ /dev/null @@ -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"] \ No newline at end of file diff --git a/docker-images/quick-start/Dockerfile b/docker-images/quick-start/Dockerfile new file mode 100644 index 000000000..5fb9ca231 --- /dev/null +++ b/docker-images/quick-start/Dockerfile @@ -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"] \ No newline at end of file diff --git a/docker-images/conf/docker_init_start.sh b/docker-images/quick-start/docker_init_start.sh similarity index 100% rename from docker-images/conf/docker_init_start.sh rename to docker-images/quick-start/docker_init_start.sh diff --git a/docker-images/conf/rule.xml b/docker-images/quick-start/rule.xml similarity index 100% rename from docker-images/conf/rule.xml rename to docker-images/quick-start/rule.xml diff --git a/docker-images/conf/schema.xml b/docker-images/quick-start/schema.xml similarity index 100% rename from docker-images/conf/schema.xml rename to docker-images/quick-start/schema.xml diff --git a/docker-images/conf/server.xml b/docker-images/quick-start/server.xml similarity index 100% rename from docker-images/conf/server.xml rename to docker-images/quick-start/server.xml diff --git a/docker-images/conf/wrapper.conf b/docker-images/quick-start/wrapper.conf similarity index 100% rename from docker-images/conf/wrapper.conf rename to docker-images/quick-start/wrapper.conf