Modifying a prebuilt Docker image

import the current community Docker image in your own Dockerfile and install the missing package. Docker images are tarballed filesystem layers - it’s a minor addition. Anybody having the upstream image locally already can build it fast

FROM registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:community AS cicd

RUN apt-get -qq update && apt-get install -y python3-requests

(current docker-lineage-cicd seems to use python3)

put this Dockerfile in its own folder and build with

docker build -t local/docker-lineage-cicd:community .

you can push it to a registry outside the local machine, but if you don’t use it often elsewhere there’s no reason to do so.

After doing the build reference it in your

docker run
  -e ..
  -v ..
  local/docker-lineage-cicd:community
3 Likes