remove newgrp, add lsof

pull/9660/head
Sharif Elgamal 2020-11-10 10:33:27 -08:00
parent fe0e087d91
commit ffafd95454
2 changed files with 2 additions and 1 deletions

View File

@ -214,6 +214,8 @@ if [[ "${kprocs}" != "" ]]; then
sudo -E kill ${kprocs} || true
fi
sudo apt-get -y install lsof
# clean up none drivers binding on 8443
none_procs=$(sudo lsof -i :8443 | tail -n +2 | awk '{print $2}' || true)
if [[ "${none_procs}" != "" ]]; then

View File

@ -29,7 +29,6 @@ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debi
sudo apt-get -y update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker jenkins
sudo newgrp docker
echo "Installing latest kubectl"
curl -LO "https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl"