From 6a3aa5cb9156a157cd7c70021ca66bce12ded693 Mon Sep 17 00:00:00 2001 From: AnJia Date: Tue, 19 Mar 2019 10:30:41 +0800 Subject: [PATCH] Update CONTRIBUTING.md (#584) use docker build args --- CONTRIBUTING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fe9fc75ec..07deba475 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -134,14 +134,14 @@ Tip: you can use `--versions` to list all available versions. * 需要更新 gh-pages 分支下面的 arthas-boot.jar/arthas-demo.jar/as.sh * 需要更新docker镜像,push新的tag - 以 3.1.0 版本为例,先修改docker file里的版本: + 以 3.1.0 版本为例: ``` - docker build . -t hengyunabc/arthas:3.1.0 + docker build . --build-arg ARTHAS_VERSION=3.1.0 -t hengyunabc/arthas:3.1.0 docker tag hengyunabc/arthas:3.1.0 hengyunabc/arthas:latest docker push hengyunabc/arthas:3.1.0 docker push hengyunabc/arthas:latest - docker build . -f Dockerfile-No-Jdk -t hengyunabc/arthas:3.1.0-no-jdk + docker build . --build-arg ARTHAS_VERSION=3.1.0 -f Dockerfile-No-Jdk -t hengyunabc/arthas:3.1.0-no-jdk docker push hengyunabc/arthas:3.1.0-no-jdk ```