Modeling Guide

Create Dockerfiles

Create Dockerfiles that contains all commands, which you may call on the command line to assemble a docker image.

Context

In the SAP Data Hub Modeler, you can create a library of Dockerfiles. These Dockerfiles provide a predefined runtime environment to execute the operators in a graph.

Procedure

  1. Start the SAP Data Hub Modeler.
  2. In the navigation pane, choose the Repository tab.
    The tool displays all graphs, operators, and Dockerfiles available in your repository. These are grouped under the tabs, Graphs, Operators, Docker Files respectively.
  3. Create a folder.
    1. Right-click the Docker Files section, and choose Create Folder to create a new folder in which you want to define the operator.
    2. Provide a name for the root folder and choose OK.
  4. Create a Dockerfile.
    1. Right-click the folder in which you want to create the operator and choose the Create Docker File menu option.
    2. In the Name text field, provide a name for the new Dockerfile.
    3. Choose OK.
    4. In the editor, write the script that defines your Dockerfile.
  5. Create tags.
    Tags describe the runtime requirements of operators and are the annotations of Dockerfiles that you create.
    1. In the editor toolbar, choose to open the configuration pane.
    2. In the right-pane, choose + (Add Tag) to add one or more tags.
    3. In the dropdown list, select a tag.
    4. Provide a version.
  6. In the editor toolbar, choose (Save) to save your changes.
  7. Build a docker image.
    A docker image is a stand-alone, executable package that includes all the code, a runtime, libraries, environment variables, and config files necessary to execute the operators in a graph.
    1. In the editor toolbar, choose (Build) to build a docker image for the Dockerfile.