Skip to content

[improvement](release) add release download scripts#18703

Merged
morningman merged 6 commits intoapache:masterfrom
morningman:download_sh
Apr 16, 2023
Merged

[improvement](release) add release download scripts#18703
morningman merged 6 commits intoapache:masterfrom
morningman:download_sh

Conversation

@morningman
Copy link
Contributor

@morningman morningman commented Apr 16, 2023

Proposed changes

Issue Number: close #xxx

Problem summary

Motivation

For now, there are 3 packages for the release binaries of Doris: https://doris.apache.org/download
And user may be confused about how to download and deploy these packages.

So I provide a download script for each release, and user can simply download the script and run it, like:

> sh download_x64_apache.sh

Begin to download FE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-fe-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 408078012 Bytes
#################################################### 100.0%
Begin to download BE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-be-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 606211324 Bytes
#################################################### 100.0%
Begin to download DEPS from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-dependencies-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 253869148 Bytes
#################################################### 100.0%
Begin to assemble the binaries ...
Move java-udf-jar-with-dependencies.jar to be/lib/ ...
Download complete!
You can now deploy Apache Doris from apache-doris-1.2.3-bin/

The script will do the rest.

This script will later be published on the Download page of Apache Doris website, so that user can easily get
it and use it.

Currently only for Linux platform. Other platform is untested.

Checklist(Required)

  • Does it affect the original behavior
  • Has unit tests been added
  • Has document been added or modified
  • Does it need to update dependencies
  • Is this PR support rollback (If NO, please explain WHY)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@github-actions
Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors

'shellcheck ' returned error 1 finding the following syntactical issues:

----------

In dist/download_scripts/1.2.3/download_arm_apache.sh line 21:
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
^--^ SC2034 (warning): ROOT appears unused. Verify use (or export if used externally).


In dist/download_scripts/1.2.3/download_arm_apache.sh line 32:
if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
   ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.

Did you mean: 
if [[ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]]; then


In dist/download_scripts/1.2.3/download_arm_apache.sh line 34:
        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
                     ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
        && chmod a+x "${DOWNLOAD_BASE_SCRIPTS}"


In dist/download_scripts/1.2.3/download_arm_apache.sh line 38:
./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
  ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
./"${DOWNLOAD_BASE_SCRIPTS}" "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"


In dist/download_scripts/1.2.3/download_arm_tsinghua.sh line 21:
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
^--^ SC2034 (warning): ROOT appears unused. Verify use (or export if used externally).


In dist/download_scripts/1.2.3/download_arm_tsinghua.sh line 32:
if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
   ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.

Did you mean: 
if [[ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]]; then


In dist/download_scripts/1.2.3/download_arm_tsinghua.sh line 34:
        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
                     ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
        && chmod a+x "${DOWNLOAD_BASE_SCRIPTS}"


In dist/download_scripts/1.2.3/download_arm_tsinghua.sh line 38:
./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
  ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
./"${DOWNLOAD_BASE_SCRIPTS}" "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"


In dist/download_scripts/1.2.3/download_x64_apache.sh line 21:
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
^--^ SC2034 (warning): ROOT appears unused. Verify use (or export if used externally).


In dist/download_scripts/1.2.3/download_x64_apache.sh line 32:
if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
   ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.

Did you mean: 
if [[ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]]; then


In dist/download_scripts/1.2.3/download_x64_apache.sh line 34:
        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
                     ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
        && chmod a+x "${DOWNLOAD_BASE_SCRIPTS}"


In dist/download_scripts/1.2.3/download_x64_apache.sh line 38:
./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
  ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
./"${DOWNLOAD_BASE_SCRIPTS}" "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"


In dist/download_scripts/1.2.3/download_x64_noavx2_apache.sh line 21:
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
^--^ SC2034 (warning): ROOT appears unused. Verify use (or export if used externally).


In dist/download_scripts/1.2.3/download_x64_noavx2_apache.sh line 32:
if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
   ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.

Did you mean: 
if [[ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]]; then


In dist/download_scripts/1.2.3/download_x64_noavx2_apache.sh line 34:
        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
                     ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
        && chmod a+x "${DOWNLOAD_BASE_SCRIPTS}"


In dist/download_scripts/1.2.3/download_x64_noavx2_apache.sh line 38:
./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
  ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
./"${DOWNLOAD_BASE_SCRIPTS}" "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"


In dist/download_scripts/1.2.3/download_x64_noavx2_tsinghua.sh line 21:
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
^--^ SC2034 (warning): ROOT appears unused. Verify use (or export if used externally).


In dist/download_scripts/1.2.3/download_x64_noavx2_tsinghua.sh line 32:
if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
   ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.

Did you mean: 
if [[ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]]; then


In dist/download_scripts/1.2.3/download_x64_noavx2_tsinghua.sh line 34:
        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
                     ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
        && chmod a+x "${DOWNLOAD_BASE_SCRIPTS}"


In dist/download_scripts/1.2.3/download_x64_noavx2_tsinghua.sh line 38:
./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
  ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
./"${DOWNLOAD_BASE_SCRIPTS}" "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"


In dist/download_scripts/1.2.3/download_x64_tsinghua.sh line 21:
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
^--^ SC2034 (warning): ROOT appears unused. Verify use (or export if used externally).


In dist/download_scripts/1.2.3/download_x64_tsinghua.sh line 32:
if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
   ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.

Did you mean: 
if [[ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]]; then


In dist/download_scripts/1.2.3/download_x64_tsinghua.sh line 34:
        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
                     ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
        && chmod a+x "${DOWNLOAD_BASE_SCRIPTS}"


In dist/download_scripts/1.2.3/download_x64_tsinghua.sh line 38:
./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
  ^----------------------^ SC2248 (style): Prefer double quoting even when variables don't contain special characters.

Did you mean: 
./"${DOWNLOAD_BASE_SCRIPTS}" "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"


In dist/download_scripts/download_base.sh line 35:
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
^--^ SC2034 (warning): ROOT appears unused. Verify use (or export if used externally).


In dist/download_scripts/download_base.sh line 46:
if [ $? -ne 0 ]; then
   ^----------^ SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.
     ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.

Did you mean: 
if [[ $? -ne 0 ]]; then


In dist/download_scripts/download_base.sh line 52:
if [ -f "${DOWNLOAD_DIR}" -o -d "${DOWNLOAD_DIR}" ]; then
   ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.
                          ^-- SC2166 (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.


In dist/download_scripts/download_base.sh line 53:
    read -p "Download dir ${DOWNLOAD_DIR} already exists. Overwrite? [y/n] " resp
    ^--^ SC2162 (info): read without -r will mangle backslashes.


In dist/download_scripts/download_base.sh line 54:
    if [ "${resp}" = "y" -o "${resp}" = "Y" ]
       ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.
                         ^-- SC2166 (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.


In dist/download_scripts/download_base.sh line 81:
download "FE" ${FE_LINK} ${DOWNLOAD_DIR}
              ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                         ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
download "FE" "${FE_LINK}" "${DOWNLOAD_DIR}"


In dist/download_scripts/download_base.sh line 82:
download "BE" ${BE_LINK} ${DOWNLOAD_DIR}
              ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                         ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
download "BE" "${BE_LINK}" "${DOWNLOAD_DIR}"


In dist/download_scripts/download_base.sh line 83:
download "DEPS" ${DEPS_LINK} ${DOWNLOAD_DIR}
                ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                             ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
download "DEPS" "${DEPS_LINK}" "${DOWNLOAD_DIR}"

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- ROOT appears unused. Verify use (...
  https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] || [ q ] as [ p -o q...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
----------

You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
  # shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.



shfmt errors

'shfmt ' returned error 1 finding the following formatting issues:

----------
--- dist/download_scripts/1.2.3/download_arm_apache.sh.orig
+++ dist/download_scripts/1.2.3/download_arm_apache.sh
@@ -30,10 +30,9 @@
 DOWNLOAD_BASE_SCRIPTS="download_base.sh"
 
 if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
-   curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh \
-        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
+    curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh &&
+        chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
 fi
 
 # Begin to download
 ./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
-
--- dist/download_scripts/1.2.3/download_arm_tsinghua.sh.orig
+++ dist/download_scripts/1.2.3/download_arm_tsinghua.sh
@@ -30,10 +30,9 @@
 DOWNLOAD_BASE_SCRIPTS="download_base.sh"
 
 if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
-   curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh \
-        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
+    curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh &&
+        chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
 fi
 
 # Begin to download
 ./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
-
--- dist/download_scripts/1.2.3/download_x64_apache.sh.orig
+++ dist/download_scripts/1.2.3/download_x64_apache.sh
@@ -30,10 +30,9 @@
 DOWNLOAD_BASE_SCRIPTS="download_base.sh"
 
 if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
-   curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh \
-        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
+    curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh &&
+        chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
 fi
 
 # Begin to download
 ./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
-
--- dist/download_scripts/1.2.3/download_x64_noavx2_apache.sh.orig
+++ dist/download_scripts/1.2.3/download_x64_noavx2_apache.sh
@@ -30,10 +30,9 @@
 DOWNLOAD_BASE_SCRIPTS="download_base.sh"
 
 if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
-   curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh \
-        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
+    curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh &&
+        chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
 fi
 
 # Begin to download
 ./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
-
--- dist/download_scripts/1.2.3/download_x64_noavx2_tsinghua.sh.orig
+++ dist/download_scripts/1.2.3/download_x64_noavx2_tsinghua.sh
@@ -30,10 +30,9 @@
 DOWNLOAD_BASE_SCRIPTS="download_base.sh"
 
 if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
-   curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh \
-        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
+    curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh &&
+        chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
 fi
 
 # Begin to download
 ./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
-
--- dist/download_scripts/1.2.3/download_x64_tsinghua.sh.orig
+++ dist/download_scripts/1.2.3/download_x64_tsinghua.sh
@@ -30,10 +30,9 @@
 DOWNLOAD_BASE_SCRIPTS="download_base.sh"
 
 if [ ! -f "${DOWNLOAD_BASE_SCRIPTS}" ]; then
-   curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh \
-        && chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
+    curl -O https://raw.githubusercontent.com/apache/doris/master/dist/download_scripts/download_base.sh &&
+        chmod a+x ${DOWNLOAD_BASE_SCRIPTS}
 fi
 
 # Begin to download
 ./${DOWNLOAD_BASE_SCRIPTS} "${FE}" "${BE}" "${DEPS}" "${DOWNLOAD_LINK_PREFIX}" "${DOWNLOAD_DIR}"
-
--- dist/download_scripts/download_base.sh.orig
+++ dist/download_scripts/download_base.sh
@@ -27,7 +27,7 @@
 #       apache-doris-dependencies-1.2.3-bin-x86_64                          \
 #       https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/   \
 #       apache-doris-1.2.3-bin
- 
+
 ###############################################################################
 
 set -eo pipefail
@@ -42,7 +42,7 @@
 FILE_SUFFIX=".tar.xz"
 
 # Check if curl cmd exists
-which curl > /dev/null 2>&1
+which curl >/dev/null 2>&1
 if [ $? -ne 0 ]; then
     echo "curl command not found on the system"
     exit 1
@@ -51,8 +51,7 @@
 # Check download dir
 if [ -f "${DOWNLOAD_DIR}" -o -d "${DOWNLOAD_DIR}" ]; then
     read -p "Download dir ${DOWNLOAD_DIR} already exists. Overwrite? [y/n] " resp
-    if [ "${resp}" = "y" -o "${resp}" = "Y" ]
-    then
+    if [ "${resp}" = "y" -o "${resp}" = "Y" ]; then
         rm -rf "${DOWNLOAD_DIR}"
         echo "Origin ${DOWNLOAD_DIR} has been removed and created a new one".
     else
@@ -90,4 +89,3 @@
 
 echo "Download complete!"
 echo "You can now deploy Apache Doris from ${DOWNLOAD_DIR}/"
-
----------

You can reformat the above files to meet shfmt's requirements by typing:

  shfmt  -w filename


@github-actions
Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors

'shellcheck ' returned error 1 finding the following syntactical issues:

----------

In dist/download_scripts/download_base.sh line 42:
if [[ ! $(which curl >/dev/null 2>&1) ]]; then
        ^---------------------------^ SC2243 (style): Prefer explicit -n to check for output (or run command without [/[[ to check for success).

Did you mean: 
if [[ ! -n $(which curl >/dev/null 2>&1) ]]; then


In dist/download_scripts/download_base.sh line 49:
    read -p "Download dir ${DOWNLOAD_DIR} already exists. Overwrite? [y/n] " resp
    ^--^ SC2162 (info): read without -r will mangle backslashes.

For more information:
  https://www.shellcheck.net/wiki/SC2162 -- read without -r will mangle backs...
  https://www.shellcheck.net/wiki/SC2243 -- Prefer explicit -n to check for o...
----------

You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
  # shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.



shfmt errors

'shfmt ' returned error 1 finding the following formatting issues:

----------
--- dist/download_scripts/download_base.sh.orig
+++ dist/download_scripts/download_base.sh
@@ -85,4 +85,3 @@
 
 echo "Download complete!"
 echo "You can now deploy Apache Doris from ${DOWNLOAD_DIR}/"
-
----------

You can reformat the above files to meet shfmt's requirements by typing:

  shfmt  -w filename


@github-actions
Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors

'shellcheck ' returned error 1 finding the following syntactical issues:

----------

In dist/download_scripts/download_base.sh line 49:
    read -p "Download dir ${DOWNLOAD_DIR} already exists. Overwrite? [y/n] " resp
    ^--^ SC2162 (info): read without -r will mangle backslashes.

For more information:
  https://www.shellcheck.net/wiki/SC2162 -- read without -r will mangle backs...
----------

You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
  # shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.



shfmt errors

'shfmt ' returned error 1 finding the following formatting issues:

----------
--- dist/download_scripts/download_base.sh.orig
+++ dist/download_scripts/download_base.sh
@@ -85,4 +85,3 @@
 
 echo "Download complete!"
 echo "You can now deploy Apache Doris from ${DOWNLOAD_DIR}/"
-
----------

You can reformat the above files to meet shfmt's requirements by typing:

  shfmt  -w filename


@github-actions
Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors
'shellcheck ' found no issues.

shfmt errors

'shfmt ' returned error 1 finding the following formatting issues:

----------
--- dist/download_scripts/download_base.sh.orig
+++ dist/download_scripts/download_base.sh
@@ -86,4 +86,3 @@
 
 echo "Download complete!"
 echo "You can now deploy Apache Doris from ${DOWNLOAD_DIR}/"
-
----------

You can reformat the above files to meet shfmt's requirements by typing:

  shfmt  -w filename


@github-actions
Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors
'shellcheck ' found no issues.

shfmt errors

'shfmt ' returned error 1 finding the following formatting issues:

----------
--- dist/download_scripts/download_base.sh.orig
+++ dist/download_scripts/download_base.sh
@@ -86,4 +86,3 @@
 
 echo "Download complete!"
 echo "You can now deploy Apache Doris from ${DOWNLOAD_DIR}/"
-
----------

You can reformat the above files to meet shfmt's requirements by typing:

  shfmt  -w filename


@github-actions
Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors
'shellcheck ' found no issues.

shfmt errors

'shfmt ' returned error 1 finding the following formatting issues:

----------
--- dist/download_scripts/download_base.sh.orig
+++ dist/download_scripts/download_base.sh
@@ -86,4 +86,3 @@
 
 echo "Download complete!"
 echo "You can now deploy Apache Doris from ${DOWNLOAD_DIR}/"
-
----------

You can reformat the above files to meet shfmt's requirements by typing:

  shfmt  -w filename


@morningman morningman added dev/1.2.4 usercase Important user case type label labels Apr 16, 2023
@morningman
Copy link
Contributor Author

run buildall

Copy link
Contributor

@luzhijing luzhijing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Apr 16, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morningman morningman merged commit 70a418c into apache:master Apr 16, 2023
morningman added a commit that referenced this pull request Apr 16, 2023
For now, there are 3 packages for the release binaries of Doris: https://doris.apache.org/download
And user may be confused about how to download and deploy these packages.

So I provide a download script for each release, and user can simply download the script and run it, like:

```
> sh download_x64_apache.sh

Begin to download FE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-fe-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 408078012 Bytes
#################################################### 100.0%
Begin to download BE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-be-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 606211324 Bytes
#################################################### 100.0%
Begin to download DEPS from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-dependencies-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 253869148 Bytes
#################################################### 100.0%
Begin to assemble the binaries ...
Move java-udf-jar-with-dependencies.jar to be/lib/ ...
Download complete!
You can now deploy Apache Doris from apache-doris-1.2.3-bin/
```

The script will do the rest.

This script will later be published on the Download page of Apache Doris website, so that user can easily get
it and use it.

Currently only for Linux platform. Other platform is untested.
gnehil pushed a commit to gnehil/doris that referenced this pull request Apr 21, 2023
For now, there are 3 packages for the release binaries of Doris: https://doris.apache.org/download
And user may be confused about how to download and deploy these packages.

So I provide a download script for each release, and user can simply download the script and run it, like:

```
> sh download_x64_apache.sh

Begin to download FE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-fe-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 408078012 Bytes
#################################################### 100.0%
Begin to download BE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-be-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 606211324 Bytes
#################################################### 100.0%
Begin to download DEPS from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-dependencies-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 253869148 Bytes
#################################################### 100.0%
Begin to assemble the binaries ...
Move java-udf-jar-with-dependencies.jar to be/lib/ ...
Download complete!
You can now deploy Apache Doris from apache-doris-1.2.3-bin/
```

The script will do the rest.

This script will later be published on the Download page of Apache Doris website, so that user can easily get
it and use it.

Currently only for Linux platform. Other platform is untested.
Reminiscent pushed a commit to Reminiscent/doris that referenced this pull request May 15, 2023
For now, there are 3 packages for the release binaries of Doris: https://doris.apache.org/download
And user may be confused about how to download and deploy these packages.

So I provide a download script for each release, and user can simply download the script and run it, like:

```
> sh download_x64_apache.sh

Begin to download FE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-fe-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 408078012 Bytes
#################################################### 100.0%
Begin to download BE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-be-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 606211324 Bytes
#################################################### 100.0%
Begin to download DEPS from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-dependencies-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 253869148 Bytes
#################################################### 100.0%
Begin to assemble the binaries ...
Move java-udf-jar-with-dependencies.jar to be/lib/ ...
Download complete!
You can now deploy Apache Doris from apache-doris-1.2.3-bin/
```

The script will do the rest.

This script will later be published on the Download page of Apache Doris website, so that user can easily get
it and use it.

Currently only for Linux platform. Other platform is untested.
mongo360 pushed a commit to mongo360/doris that referenced this pull request Jul 12, 2023
For now, there are 3 packages for the release binaries of Doris: https://doris.apache.org/download
And user may be confused about how to download and deploy these packages.

So I provide a download script for each release, and user can simply download the script and run it, like:

```
> sh download_x64_apache.sh

Begin to download FE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-fe-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 408078012 Bytes
#################################################### 100.0%
Begin to download BE from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-be-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 606211324 Bytes
#################################################### 100.0%
Begin to download DEPS from "https://mirrors.tuna.tsinghua.edu.cn/apache/doris/1.2/1.2.3-rc02/apache-doris-dependencies-1.2.3-bin-x86_64.tar.xz" to "apache-doris-1.2.3-bin/" ...
Total size: 253869148 Bytes
#################################################### 100.0%
Begin to assemble the binaries ...
Move java-udf-jar-with-dependencies.jar to be/lib/ ...
Download complete!
You can now deploy Apache Doris from apache-doris-1.2.3-bin/
```

The script will do the rest.

This script will later be published on the Download page of Apache Doris website, so that user can easily get
it and use it.

Currently only for Linux platform. Other platform is untested.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/1.2.4-merged reviewed usercase Important user case type label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants