Getting the files from the artifacts container for your FTM offering

Many tools, software development kits (SDKs), database configuration scripts, and other artifacts are provided with your FTM offering. All of the artifacts that are needed for your offering are available after you create the artifacts container by using the operator for the FTM offering on Red Hat® OpenShift®.

Each FTM offering has its own artifacts container that has only the specific files that are needed by the offering. On Red Hat OpenShift, the artifacts container runs inside a pod after it is created. When the artifacts container is installed, you can download the artifacts that you need to use to set up prerequisites, for development purposes, or as needed.

The following instructions show you how to get the artifacts files by using the Red Hat OpenShift Container Platform command-line interface.
  1. Connect to the Red Hat OpenShift environment. Use a user ID with the permissions that are needed for the project where the FTM offering is deployed. The following example shows the command to use to log in to the Red Hat OpenShift Container Platform.
    oc login --server=OCP-URL
    Authentication required for ******(openshift)
    Username: ***
    Password:
    The following types of messages are shown when you successfully log in.
    Login successful.
    
    You have access to 58 projects, the list has been suppressed. You can list all projects with 'oc projects'
    
    Using project "default".
  2. Switch to the project where the pod with your FTM offering artifacts container is deployed. This example uses a project that is called ftm-demo.
    oc project ftm-demo
    The following types of messages are shown when you successfully switched to the project:
    Now using project "ftm-demo" on server "***".
  3. Look for the name of the pod that is running the artifacts container. The following command gets a list of the pods and filters it by using the string artifacts.
    oc get pods | grep artifacts
    The following output from that command shows a sample pod name for the FTM artifacts container. You might see more than one artifacts pod if you used an operator to create the artifacts container for more than one FTM offering.
    ftm-artifacts-base-1-ftl5k                   1/1              Running     0          16m
  4. Use the rsync command to download the artifacts from the pod.
    The following example shows how to download the artifact that has the operator deployment files from the pod name that was found in the previous step. The artifact is downloaded to a path on your local computer, which you provide. In this example, the path on your local computer is called /some/local/path.
    oc rsync ftm-artifacts-base-1-ftl5k:/home/ftmuser/ftm/custom-artifacts/base/operator-base-files.zip /some/local/path

The contents of each artifacts container are shown in the following topics. Each artifacts container also provides a file that has a list of the files that are available in the container.