-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
I tried to build Tango on Rocky Linux 9.6 according to the instructions at https://docs.autolabproject.com/installation/tango/#production-installation. The process failed with the following error message:
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin docker-model-plugin >/dev/null
E: Unable to locate package docker-model-plugin
Error: building at STEP "RUN curl -sSL https://get.docker.com/ -o get_docker.sh && sh get_docker.sh": while running runtime: exit status 100
It appears that the most recent get_docker.sh script assumes the presence of a “docker-model-plugin” package, but the package does not exist on Ubuntu focal. The build had warned me of this earlier in the process:
DEPRECATION WARNING
This Linux distribution (ubuntu focal) reached end-of-life and is no longer supported by this script.
No updates or security fixes will be released for this distribution, and users are recommended
to upgrade to a currently maintained version of ubuntu.
I was able to work around this by applying the following patch to Tango's Dockerfile. The patch uses sed to remove docker-model-plugin from the downloaded script.
diff --git a/Dockerfile b/Dockerfile
index c120e15..54d980d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -38,7 +38,9 @@ RUN apt-get update && apt-get install -y \
WORKDIR /opt/TangoService/Tango/
# Install Docker from Docker Inc. repositories.
-RUN curl -sSL https://get.docker.com/ -o get_docker.sh && sh get_docker.sh
+RUN curl -sSL https://get.docker.com/ -o get_docker.sh
+RUN sed -i 's/docker-model-plugin//g' get_docker.sh
+RUN sh get_docker.sh
# Install the magic wrapper.
ADD ./wrapdocker /usr/local/bin/wrapdocker
This is a bit of a kludge, so I did not submit a pull request to include it.
iamhslee
Metadata
Metadata
Assignees
Labels
No labels