RHEL 7.x

To build a custom RHEL 7.x base image:

  1. SSH into the system where App Workbench is installed.
  2. Create a directory by executing the mkdir command, such as:

    $> mkdir -p ~/src/base_images.
  3. Switch to the directory you just created by executing the cd command, such as:

    $> cd ~/src/base_images
    .
  4. Retrieve the BlueData base image for RHEL 7 by executing the following command:

    $> bdwb --baseimg rhel7
    .

    This creates a directory called rhel7 under your current directory.

  5. Switch to the rhel7 directory by executing the following command:

    $> cd rhel7
            $> ls -a
    You should see the following:
                            drwxr-xr-x. 3 root root   54 Oct 10 08:59 .
                            drwxr-xr-x. 7 root root   78 Oct 15 12:32 ..
                            -rw-r--r--. 1 root root 4361 Oct  9 15:36 build.sh
                            -rw-r--r--. 1 root root 1393 Oct  9 15:36 Makefile
                            drwxr-xr-x. 3 root root   79 Oct 10 08:59 template
  6. You may override one or more of the following parameter(s) by executing the following command(s), as appropriate:
    • $> export BASE_IMG_ORGNAME='<orgname>', where <orgname> is the name of your organization, such as enterprise. The default name is bluedata.
    • $> export BASE_IMG_VERSION='<version>', where <version> is the image version number, such as 1.0. The default version is set to 4.1.
    • $> export UPSTREAM='<upstream>', where <upstream> is the name of the upstream image source, such as artifactory.com/enterprise:rhel7. The default upstream image source is rhel:rhel7.
    Note: This base image can only be built on a RHEL server.
  7. Modify the base image as needed. See HelloWorld Application Image Walkthrough for an example of creating a custom image.
  8. Make the new image by executing the following command:

    $> make rhel7
  9. Verify that the image has built successfully by executing the following command:

    $> docker images
    .