IBM Security QRadar SOAR

 View Only
Expand all | Collapse all

Issue with pulling an docker image from the artifactory while trying to deploy custom app

  • 1.  Issue with pulling an docker image from the artifactory while trying to deploy custom app

    Posted Fri April 08, 2022 03:57 PM
    We are trying to understand how to use custom apps on App Host, we took an already working integration and packaged it by following "Developing and Converting Apps for App Host in Resilient" (url: Course: Developing and Converting Apps for App Host in Resilient (securitylearningacademy.com)) and Packaging your app (url: Packaging your app - IBM Documentation).

    We learned that to refer our custom app on App Host, we need to use Private repository. So, we created a new repo and populated it with our custom app's docker image. And configured the App Host to use this repo.

    Docker image details:
    Docker image URL in Repo: https://artifactory.XXXX.com:<port>/artifactory/<repo_name>/XXXX/<custom_app>/1.0.0/
    Docker image Title: XXXX/<custom_app>:1.0.0

    And when we try to deploy the custom app from IBM SOAR, we are getting errors as mentioned below and not able to proceed further:

    Case 1: When using image name as: " "image": "XXXX/<custom_app>/1.0.0/"," in app.json,  the below error is observed.
    Error:
    InvalidImageName: Failed to apply default image tag "artifactory.XXXX.com:<port>/artifactory/<repo_name>/XXXX/<custom_app>/1.0.0/": couldn't parse image reference "artifactory.XXXX.com:<port>/artifactory/<repo_name>/XXXX/<custom_app>/1.0.0/": invalid reference format

    Case 2: When using image name as: " "image": "XXXX/<custom_app>:1.0.0"," in app.json,  the below error is observed.
    Error:
    ErrImagePull: rpc error: code = NotFound desc = failed to pull and unpack image "artifactory.XXXX.com:<port>/artifactory/<repo_name>/XXXX/<custom_app>:1.0.0": failed to resolve reference "artifactory.XXXX.com:<port>/artifactory/<repo_name>/XXXX/<custom_app>:1.0.0": artifactory.XXXX.com:<port>/artifactory/<repo_name>/XXXX/<custom_app>:1.0.0: not found


    Please share your insights.



    ------------------------------
    Meghana Medasani
    ------------------------------


  • 2.  RE: Issue with pulling an docker image from the artifactory while trying to deploy custom app

    Posted Mon April 11, 2022 06:20 AM
    Container image path is represented like this:
    
    <registry-host>:<registry-port>/<repository-name>/<app-name>:<app-version>
    (1)---------------------------- (2)-------------- (3)---------------------
    
    (1) is determined during Application Host registry setup
    
      manageAppHost registry --registry=<registry-host>:<registry-port>  [--user=<user>]
                                        (1)----------------------------
    
    	default <registry-host>:<registry-port> os quay.io:443
    
    (2) is determined during packaging application
    
      resilient-sdk package -p <path_to_directory> --repositry-name <repository-name>
                                                                    (2)--------------
            default <respositry-name> is ibmresilient
    
    (3) is determined during creating application
    
      python setup.py sdist
    
        setup.py
          setup(
            name="<app-name>"
                  (3)--------
             version="<app-version>"
                      (3)----------
    
    If you use custom application and custom registry, you may need to specify (1)(2) and (3).
    
    (2) is the possible case to omit, which implies <respositry-nam> is "ibmresilient"
    


    ------------------------------
    Yohji Amano
    ------------------------------