From 17a19353e3156aefed919e8ed25840bfe0dcccc5 Mon Sep 17 00:00:00 2001 From: Olaf Reitmaier Date: Sat, 19 Oct 2024 00:19:38 +0200 Subject: [PATCH] decoupling installer --- README.md | 3 ++- install-docker.sh | 22 ---------------------- 2 files changed, 2 insertions(+), 23 deletions(-) delete mode 100755 install-docker.sh diff --git a/README.md b/README.md index 7700375..38dff6f 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,8 @@ make run # with python3 interpreter ## Run (Docker) ```shell -./install-docker.sh # install docker with compose capabilities +# If you don't have it (latest docker official version) +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/olafrv/my_collections/refs/heads/main/scripts/bash/install-docker.sh)" make docker.build # build docker image with python requirements make docker.run # A) without compose, and removed after stopped make docker.start # B.1) with compose running in background as service diff --git a/install-docker.sh b/install-docker.sh deleted file mode 100755 index 26258c8..0000000 --- a/install-docker.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# https://docs.docker.com/engine/install/ubuntu/ - -# Uninstall old versions: -for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get -y remove $pkg; done - -# Add Docker's official GPG key: -sudo apt-get update -sudo apt-get install -y ca-certificates curl gnupg -sudo install -m 0755 -d /etc/apt/keyrings -curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg -sudo chmod a+r /etc/apt/keyrings/docker.gpg - -# Add the repository to Apt sources: -echo \ -"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ -"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ -sudo tee /etc/apt/sources.list.d/docker.list > /dev/null -sudo apt-get update - -sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin