Build Windows Container Image

OmniDeq transforms the processes into container images using Build box.

Build box

It is an intermediate build system which is used to build the container image and upload them on the respective docker registry.

In order to find out about Windows Build Box Prerequisites, please click here

OmniDeq supports following type of applications to create windows container images

Let's take a look into them one by one

Adding a Build box for Windows and creating container image for selected profile

  1. Click on the Project you want to transform process , example: we can click on windows-project.

    Transform Menu

  2. Once you click on the Project, click on Transform in the menu on the left side, as shown in the image below.

    Transform Menu Wave

  3. Click on Containerize in front of the process you want to tarnsform.

    Containerize Image Button

  4. Clicking on Containerize button will open up following page which will have multiple options like Create Copy, edit docker file, file explorer and validate and build button.

    Build Container Image Button

  5. Click on Create Copy button from top right corner to create a copy of base profile, newly created profile will be listed as on following page.

    Build Container Image Button

    Following options are listed for profile:

    • Docker File: Docker file generated using transformation studio can be viewed as well as updated using edit option provided at bottom of the screen.

    Note: More Details related with edit docker file are listed here

    • File Selection: Files and folders associated with the application can be viewed using file selection option.

    Note: More Details related with File selection are mentioned here

    • Validate & build: Using Validate and build option we can containerize the profile by selecting buildbox as well as appropriate registry config
  6. Once the user clicks on Validate & Build option, it will open a page as shown in the image below.

    Transform Menu Add Build Box

  7. Buildbox can added by clicking new link in front of buildbox label which will open following screen

    Transform Menu Add Build Box

  8. Selecting the build box will populate the below fields :

    User Name Type Username here
    Host Type Fully Qualified Host Name” OR “IP Address” here
    Port Default Port “5986”, change as applicable
    Build Box Credentials Choose credentials
    • Username : username which will be used to connect to the build box.
    • Host Name or IP : It is the Host Name or IP address of the build box.
    • Port : It is the port number which will be used for data transmission. By default port will be 5986 for windows.
    • Build Box Credentials : It is a drop down which will display the Password vault names. User can only choose the credentials which is added in OmniDeq vault.
  9. Click on Validate Buildbox button which is next to selected buildbox to validate the buildbox. Logs for validating buildbox will be shown as on following screen :

Validate Windows Buildbox

  1. Following registries are supported which could be used to push container image :

    • Registry Type : It is the type of registry where the container image will be pushed.

      • Docker Hub
      • ECR
      • QUAY
      • Custom
      • ACR
      • Harbor

       

    If a user wants to push the container image in Docker Hub then user will have to add the following details when adding a build box :

    Repository Name Name of the repository
    Repository URL Repository URL will be populated based on server URL and name of the repository, if required it can be edited
    Image Tag Enter Image Tag which will be visible on the registry.
    Vault Choose Credentials for the Docker Hub registry.

    If a user wants to push the container image in ECR then user will have to add the following details when adding a build box :

    Server Enter Repository URI
    Repository Enter Repository Name
    Image Tag Enter Image Tag which will be visible on the registry.
    Vault Choose Credentials for the ECR registry.

    If a user wants to push the container image in QUAY then user will have to add the following details when adding a build box :

    Server Enter 'quay.io'
    Repository Enter Repository Name
    Image Tag Enter Image Tag which will be visible on the registry.
    Vault Choose Credentials for the QUAY registry.

    If a user wants to push the container image in Custom Registry then user will have to add the following details when adding a build box :

    Server Enter the Custom Registry Address
    Repository Enter Repository Name
    Image Tag Enter Image Tag which will be visible on the registry.
    Vault Choose Credentials for the Custom registry.

    If a user wants to push the container image in ACR then user will have to add the following details when adding a build box :

    Server Enter Repository URI
    Repository Enter Repository Name
    Image Tag Enter Image Tag which will be visible on the registry.
    Vault Choose Credentials for the ACR registry.

    If a user wants to push the container image in Harbor then user will have to add the following details when adding a build box :

    Server Enter Repository URI
    Repository Enter Repository Name
    Image Tag Enter Image Tag which will be visible on the registry.
    Vault Choose Credentials for the Harbor registry.

  2. Once the user enters all the above details, following screen will be shown

    Windows Buildbox Details

  3. Click on Perform pre check button which will show details as shown in the image below.

    Perform pre check

    Note: This is optional step which will help to detect missing prerequisites which could affect transform process.

  4. Click on Build Container Image button which will start containerization process and logs will be shown as in the image below.

    Build Container Image

    • Log panel will have details of each step performed while contenarization of selected profile like connectivity check to discovery host, connectivity check to buildbox, connectivity between discovery host and buildbox, check for available disk space on discovery host as well as on builbox
    • Status of contenarization will be shown in log panel

  5. User will get a success message after a few minutes and the process transformation will be completed.

  6. User can verify the Image on the registry which was pushed while adding the Build box.

Build Windows Container Image by merging IIS website/applications

Merge Profiles

  1. Click on Merge Components button which will open dialog as shown in image below

Merge Profiles

  1. After clicking on Create merged component button from dialog, profile for selected websites/applications will be created as shown in image below

Merge Profiles

Note: Once merged profile for two or more IIS websites/applications is created, we can follow the steps of building windows container image as described here

Build Windows Container Image for console based applications (Beta)/Service based applications (Beta)

Notes: - We are capturing current working directory of console application if it is from "Program Files" or "Program Files (x86)" folder. If console application is running from any other place then path of executable will be captured. - Files which are not captured or need to be part of container can be included from include files option provided for file explorer while transform as described here - Files which are not required as part of container can be excluded using exclude files option provided for file explorer while transform as described here

  1. Navgate to the landing page.

    Transform Menu

    • This page shows all the waves whose Discovery process was completed earlier.

  2. Now click on the Project for which you want to transform the processes. The page opens as shown in the image below. Transform Menu Wave

  3. Click on Transform. Profile for console based application or service based application will be displayed. Click on Containerize button to Containerize the console or service application

Note: Please follow the steps of building windows container image as described here