aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xci/deploy.sh1
-rw-r--r--mcp/scripts/lib.sh11
2 files changed, 12 insertions, 0 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index d3704a1dd..47662f796 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -241,6 +241,7 @@ if [ ${USE_EXISTING_PKGS} -eq 1 ]; then
else
notify "[NOTE] Installing required distro pkgs" 2
jumpserver_pkg_install 'deploy'
+ docker_install
fi
if ! virsh list >/dev/null 2>&1; then
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index c3a71a436..5f1275dc5 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -572,3 +572,14 @@ function get_nova_compute_pillar_data {
echo "${value}"
fi
}
+
+function docker_install {
+ # Mininum effort attempt at installing Docker if missing
+ if ! which docker; then
+ curl -fsSL https://get.docker.com -o get-docker.sh
+ sudo sh get-docker.sh
+ rm get-docker.sh
+ # On RHEL distros, the Docker service should be explicitly started
+ sudo systemctl start docker
+ fi
+}