Skip to content

Running docker build --tag="tango_deployment" . due to lack of “docker-model-plugin” package #282

@flyn-org

Description

@flyn-org

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions