install docker-ce

This commit is contained in:
Jeffrey Paul 2018-03-06 18:37:40 -05:00
parent 759fcfbd85
commit 0fa1b7998f
2 changed files with 19 additions and 0 deletions

View File

@ -1,10 +1,14 @@
apt-transport-https
bash-completion
build-essential
byobu
ca-certificates
curl
git
golang-go
mosh
python-pip
python3-pip
screen
software-properties-common
vim

View File

@ -1,6 +1,9 @@
#!/bin/bash
#exec 1 2>&1 | tee -a ${LOG_FILE}
# snap writes stuff under $CWD like a noob
cd /tmp
if which lsb_release; then
export DEBIAN_FRONTEND=noninteractive
apt-get update
@ -11,8 +14,20 @@ if which lsb_release; then
snap install kubectl --classic
fi
# DO agent for advanced monitoring
curl -sSL https://agent.digitalocean.com/install.sh | sh
pip3 install --upgrade pip
# install docker CE
curl -fsSL https://download.docker.com/linux/ubuntu/gpg |
apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update && apt-get install -y docker-ce
# install gcloud
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# Add the Cloud SDK distribution URI as a package source