You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/11/19 03:15:47 UTC

[shardingsphere] branch master updated: Reduce integration test image size (#22267)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new f1e55843e81 Reduce integration test image size (#22267)
f1e55843e81 is described below

commit f1e55843e81274cbb4146315b1501b03a9708848
Author: 吴伟杰 <wu...@apache.org>
AuthorDate: Sat Nov 19 11:15:41 2022 +0800

    Reduce integration test image size (#22267)
---
 test/integration-test/fixture/Dockerfile | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/test/integration-test/fixture/Dockerfile b/test/integration-test/fixture/Dockerfile
index 6b069433c82..9988df045b0 100644
--- a/test/integration-test/fixture/Dockerfile
+++ b/test/integration-test/fixture/Dockerfile
@@ -14,21 +14,24 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-
-FROM openjdk:8-jdk-alpine
+FROM alpine AS prepare
 
 ARG APP_NAME
 
 ADD target/${APP_NAME}.tar.gz /opt
 RUN mv /opt/${APP_NAME} /opt/shardingsphere-proxy
 
-EXPOSE 3307
-EXPOSE 3308
-
 WORKDIR /opt/shardingsphere-proxy
 
 RUN cat bin/start.sh | tr -d '\r' > _start.sh && mv _start.sh bin/start.sh
 RUN cat bin/stop.sh | tr -d '\r' > _stop.sh && mv _stop.sh bin/stop.sh
 RUN chmod +x -R ./bin
 
+FROM openjdk:8-jdk-alpine
+
+COPY --from=prepare /opt/shardingsphere-proxy /opt/shardingsphere-proxy
+
+EXPOSE 3307
+EXPOSE 3308
+
 CMD /opt/shardingsphere-proxy/bin/start.sh && tail -f /opt/shardingsphere-proxy/logs/stdout.log