From 2a35408867002643c83cb9effbc373ed6660c57e Mon Sep 17 00:00:00 2001 From: seba Date: Sun, 10 Jun 2018 16:05:43 +0200 Subject: [PATCH] adding docker* installation --- deploy_all.sh | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/deploy_all.sh b/deploy_all.sh index 40de90d..ec01263 100755 --- a/deploy_all.sh +++ b/deploy_all.sh @@ -1,6 +1,23 @@ +## INSTALL docker-ce +read -r -p "Do you want to install docker? [y/N] " response +if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]] +then + curl -fsSL get.docker.com -o get-docker.sh + sudo sh get-docker.sh + sudo usermod -aG docker $(whoami) +else + echo -e "'no' chosen for docker installation - docker assummed to be already installed" +fi + ## INSTALL docker-compose -## uncomment if you don't have docker-compose installed #sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose -## uncomment if you don't have docker-compose installed #sudo chmod +x /usr/local/bin/docker-compose +read -r -p "Do you want to install docker-compose? [y/N] " response +if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]] +then + sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose + sudo chmod +x /usr/local/bin/docker-compose +else + echo -e "'no' chosen for docker-compose installation - docker-compose assummed to be already installed" +fi # START docker-compose docker-compose up -d