This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
install_docker() { | |
sudo yum install yum-utils -y | |
sudo yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install docker-ce docker-ce-cli containerd.io -y | |
sudo systemctl is-active --quiet docker || sudo systemctl start docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
CNI_VERSION="v1.3.0" | |
ARCH="amd64" | |
CRICTL_VERSION="v1.27.1" | |
CONTAINERD_VERSION="1.7.26" | |
# The [ -t 1 ] check only works when the function is not called from | |
# a subshell (like in `$(...)` or `(...)`, so this hack redefines the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Default settings | |
NFS_DATA_DEV=${NFS_DATA_DEV:-/dev/sdb} | |
NFS_DATA_DIR=${NFS_DATA_DIR:-/nfs/data} | |
install_dep() { | |
sudo yum install nfs-utils -y | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
download_nsq() { | |
wget -O /tmp/nsq-1.2.0.linux-amd64.go1.12.9.tar.gz https://github.com/nsqio/nsq/releases/download/v1.2.0/nsq-1.2.0.linux-amd64.go1.12.9.tar.gz | |
tar xvzf /tmp/nsq-1.2.0.linux-amd64.go1.12.9.tar.gz -C /tmp/ | |
mv /tmp/nsq-1.2.0.linux-amd64.go1.12.9/bin/* /usr/local/bin | |
rm -rf /tmp/nsq-1.2.0.linux-amd64.go1.12.9 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ETCD_VER=v3.4.13 | |
DOWNLOAD_URL=https://github.com/etcd-io/etcd/releases/download | |
DATA_DIR=/var/lib/etcd | |
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz | |
tar xvzf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /usr/local/bin --strip-components=1 | |
rm -rf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz |
NewerOlder