-
Notifications
You must be signed in to change notification settings - Fork 944
refactor: facilitate make.sh build #1261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1261 +/- ##
==========================================
+ Coverage 15.24% 15.31% +0.07%
==========================================
Files 172 172
Lines 10715 10665 -50
==========================================
Hits 1633 1633
+ Misses 8962 8912 -50
Partials 120 120
|
|
@u2takey Thanks a lot for your PR @Letty5411 could your please review this PR? |
|
ping @sunyuan3 @Letty5411 Please take a look at and review this. |
hack/make.sh
Outdated
| { | ||
| echo "Try installing containerd" | ||
| get_containerd_version | ||
| if [ "$CONTAINERD_VERSION" = "v1.0.3" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
= to be ==
And I would prefer using [[ ]], same comments for the following code.
hack/make.sh
Outdated
| echo "Nsenter already installed." | ||
| else | ||
| echo "Download and install nsenter." | ||
| apt-get install libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apt-get install -y
hack/make.sh
Outdated
| else | ||
| echo "Download and install nsenter." | ||
| apt-get install libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool | ||
| wget https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.gz -P $TMP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wget -q
hack/make.sh
Outdated
| echo "Dumb-init already installed." | ||
| else | ||
| echo "Download and install dumb-init." | ||
| wget -O /tmp/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wget -q
check install status before do install binaries Signed-off-by: u2takey <[email protected]>
|
updated,ping @sunyuan3 @Letty5411 for review |
|
LGTM |
Signed-off-by: u2takey [email protected]
Ⅰ. Describe what this PR did
facilitate make.sh build by checking install status before do install binaries