Skip to content

Commit 54f6476

Browse files
committed
cri-dockerd
1 parent 609adbb commit 54f6476

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

scripts/installCRIDockerd.sh

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22

3-
VER="v0.2.0"
4-
#ARCH=`dpkg --print-architecture`
3+
VER="0.3.0"
54

65
install_linux() {
76
ARCH=$1
@@ -10,9 +9,11 @@ install_linux() {
109
cri-dockerd --version
1110
else
1211
echo "Installing cri-dockerd..."
13-
wget https://github.com/Mirantis/cri-dockerd/releases/download/${VER}/cri-dockerd-${VER}-linux-${ARCH}.tar.gz -P /tmp
14-
tar -xzvf /tmp/cri-dockerd-${VER}-linux-${ARCH}.tar.gz -C /tmp
15-
mv /tmp/cri-dockerd /usr/bin/
12+
wget https://github.com/Mirantis/cri-dockerd/releases/download/v${VER}/cri-dockerd-${VER}.amd64.tgz -P /tmp
13+
#wget https://github.com/Mirantis/cri-dockerd/releases/download/${VER}/cri-dockerd-${VER}-linux-${ARCH}.tar.gz -P /tmp
14+
tar -xzvf /tmp/cri-dockerd-${VER}.${ARCH}.tgz
15+
#tar -xzvf /tmp/cri-dockerd-${VER}-linux-${ARCH}.tar.gz -C /tmp
16+
mv /tmp/cri-dockerd/cri-dockerd /usr/bin/
1617
chmod 755 /usr/bin/cri-dockerd
1718
fi
1819

@@ -21,7 +22,7 @@ install_linux() {
2122
else
2223
wget https://raw.githubusercontent.com/Mirantis/cri-dockerd/master/packaging/systemd/cri-docker.service -P /tmp
2324
wget https://raw.githubusercontent.com/Mirantis/cri-dockerd/master/packaging/systemd/cri-docker.socket -P /tmp
24-
mv /tmp/cri-docker.socket /tmp/cri-docker.service /etc/systemd/system/
25+
mv /tmp/cri-docker.socket /tmp/cri-docker.service /lib/systemd/system/
2526
systemctl enable cri-docker.service
2627
systemctl enable cri-docker.socket
2728
systemctl start cri-docker.service
@@ -36,16 +37,14 @@ if [ -f /etc/os-release ];then
3637
arch=`dpkg --print-architecture`
3738
install_linux "$arch"
3839
elif [ $osname == "amzn" ];then
39-
echo "the script works only for ubuntu OS as of now..."
40-
exit 1
41-
install_linux
40+
arch=amd64
41+
install_linux "$arch"
4242
elif [ $osname == "centos" ];then
43-
echo "the script works only for ubuntu OS as of now..."
44-
exit 1
45-
install_linux
43+
arch=amd64
44+
install_linux "$arch"
4645
fi
4746
else
4847
echo "can not locate /etc/os-release - unable find the osname"
4948
exit 8
5049
fi
51-
exit 0
50+
exit 0

0 commit comments

Comments
 (0)