Categories

Versions

You are viewing the RapidMiner Hub documentation for version 10.2 - Check here for latest version

Create a custom Docker image

This document explains how to add additional software to Rapidminer Docker images.

Obtain the official image

Pull the official image from Docker Hub:

docker pull rapidminer/rapidminer-jobagent:<version>

Most of the RapidMiner images are based on Debian based except for the following:

RedHat-based images

  • rapidminer/rapidminer-deployment-init
  • rapidminer/rapidminer-keycloak
  • rapidminer/panopticon-monetdb

Alpine-based image

  • rapidminer/rapidminer-grafana-proxy

Create a custom Dockerfile

To create a custom Dockerfile, see the official Dockerfile reference.

To add software from a Linux repository to the image, use the following tools:

  • Debian-based images -- use apt-get
  • RedHat-based images -- use microdnf
  • Alpine-based images -- use apk

For example, take the following steps to add curl to the Debian-based Job Agent image:

$ touch Dockerfile

Edit the Dockerfile:

FROM rapidminer/rapidminer-jobagent:<version>
USER 0
RUN apt-get update && apt-get install -y curl

Then build the Dockerfile:

docker build .

Similarly, any file or custom software can be added to the new image:

FROM rapidminer/rapidminer-jobagent:<version>
USER 0
RUN apt-get update && apt-get install -y curl
COPY ./custom-internal-software /usr/local/bin/custom-internal-software
RUN chmod +x /usr/local/bin/custom-internal-software