From c3e3dfa25dcf89691f90238463e529e6822408d9 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 8 Jan 2021 10:53:20 +0000 Subject: [PATCH] Changing scripts directory around a bit for hosting, make it clear shell scripts are for unix/linux. --- .../scripts/{ => linux}/install-docker-compose.sh | 0 hosting/scripts/linux/install-docker.sh | 14 ++++++++++++++ .../scripts/{ => linux}/release-to-docker-hub.sh | 0 3 files changed, 14 insertions(+) rename hosting/scripts/{ => linux}/install-docker-compose.sh (100%) create mode 100755 hosting/scripts/linux/install-docker.sh rename hosting/scripts/{ => linux}/release-to-docker-hub.sh (100%) diff --git a/hosting/scripts/install-docker-compose.sh b/hosting/scripts/linux/install-docker-compose.sh similarity index 100% rename from hosting/scripts/install-docker-compose.sh rename to hosting/scripts/linux/install-docker-compose.sh diff --git a/hosting/scripts/linux/install-docker.sh b/hosting/scripts/linux/install-docker.sh new file mode 100755 index 0000000000..dccf688de1 --- /dev/null +++ b/hosting/scripts/linux/install-docker.sh @@ -0,0 +1,14 @@ +#!/bin/bash +sudo apt-get install \ + apt-transport-https \ + ca-certificates \ + curl \ + gnupg-agent \ + software-properties-common +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - +sudo add-apt-repository \ + "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ + $(lsb_release -cs) \ + stable" +sudo apt-get update +sudo apt-get install docker-ce docker-ce-cli containerd.io diff --git a/hosting/scripts/release-to-docker-hub.sh b/hosting/scripts/linux/release-to-docker-hub.sh similarity index 100% rename from hosting/scripts/release-to-docker-hub.sh rename to hosting/scripts/linux/release-to-docker-hub.sh