Skip to content

Commit

Permalink
Update bootstrap.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mrysav authored Nov 17, 2023
1 parent ccbb3fb commit cdce2a3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions docker/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ if [[ -z "$(sudo echo hello)" ]]; then
exit 1
fi

export DEBIAN_FRONTEND=noninteractive

sudo apt-get update
sudo apt-get install -y python3-pip
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip

MUST_RELOGIN=""

Expand All @@ -34,12 +32,12 @@ if ! command -v docker; then
# And that's OK!

set +e
sudo apt-get remove -q docker docker-engine docker.io containerd runc
sudo DEBIAN_FRONTEND=noninteractive apt-get remove -q docker docker-engine docker.io containerd runc
set -e

echo -e "\n--> Installing prerequisites..."
sudo apt-get update -q
sudo apt-get install -q -y ca-certificates curl gnupg lsb-release jq
sudo DEBIAN_FRONTEND=noninteractive apt-get update -q
sudo DEBIAN_FRONTEND=noninteractive apt-get install -q -y ca-certificates curl gnupg lsb-release jq

echo -e "\n--> Downloading Docker repository key..."
sudo mkdir -p /etc/apt/keyrings
Expand All @@ -49,8 +47,8 @@ if ! command -v docker; then
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

echo -e "--> Installing Docker..."
sudo apt-get update -q
sudo apt-get install -q -y docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-buildx-plugin
sudo DEBIAN_FRONTEND=noninteractive apt-get update -q
sudo DEBIAN_FRONTEND=noninteractive apt-get install -q -y docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-buildx-plugin

sudo systemctl enable docker.service
sudo systemctl start docker.service
Expand Down

0 comments on commit cdce2a3

Please sign in to comment.