This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 92f00e03e Docker-compose install script supports default version as
latest (#3252)
92f00e03e is described below
commit 92f00e03e3fc38c987c4f539d1231da65806b396
Author: Kunshuai Zhu <[email protected]>
AuthorDate: Fri Apr 15 20:06:00 2022 +0800
Docker-compose install script supports default version as latest (#3252)
---
.../shenyu-docker-compose-dist/src/main/resources/install.sh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git
a/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
b/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
index 147613d8a..55f533ca7 100644
--- a/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
+++ b/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
@@ -34,7 +34,12 @@ function check_sed() {
version=${1}
-if [[ $version != v* && $version != 'latest' ]]; then
+if [[ $version == '' || $version == 'latest' ]]; then
+ echo "The version will be set to latest."
+ version='master'
+fi
+
+if [[ $version != v* && $version != 'master' ]]; then
echo "The version should start with 'v', such as 'v2.4.2' or 'latest'."
exit 1
fi
@@ -48,9 +53,9 @@ cd shenyu-${version}
mkdir -p {shenyu-bootstrap,shenyu-admin}/{conf,logs}
echo "Downloading docker-compose configuration ..."
-curl -sSl
https://raw.githubusercontent.com/apache/incubator-shenyu/${version}/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/docker-compose.yaml
> docker-compose.yaml
+curl -sSl
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/docker-compose.yaml
> docker-compose.yaml
-if [ "$version" != "latest" ];then
+if [ "$version" != "master" ];then
check_sed
newVersion=${version#"v"}
if [[ "$OSTYPE" == "darwin"* ]]; then