3 Creating AIA Cloud Native Images

This chapter describes how to create AIA cloud native images.

Prerequisites for Creating AIA Cloud Native Images

The prerequisites for creating AIA cloud native images are:

Configuring an AIA Cloud Native Image

To configure an AIA cloud native image:
  1. Update the AIA dockerfile for SOA suite image tag:
    $ cd $AIA_DIR/oc-cn-aia-comms
    $ vi Dockerfile
    
    # Update the base soasuite_cpu image tags as per your requirements and save
    #
    # Search for and update the following lines for image tags
    #
    # FROM container-registry.oracle.com/middleware/soasuite_cpu:tag as builder
    #
    # FROM container-registry.oracle.com/middleware/soasuite_cpu:tag
  2. Update the domain lifecycle scripts:

    Note:

    By default, the AIA cloud native toolkit contains domain lifecycle scripts for WKO 4.0.4. This step is not required for WKO 4.0.4.
    $ cd $AIA_DIR/oc-cn-aia-comms/scripts/common
    $ cp $WORKDIR/domain-lifecycle/helper.sh .
    $ cp $WORKDIR/domain-lifecycle/startCluster.sh .
    $ cp $WORKDIR/domain-lifecycle/stopCluster.sh .
    $ cp $WORKDIR/domain-lifecycle/startServer.sh .
    $ cp $WORKDIR/domain-lifecycle/stopServer.sh .

Creating an AIA Cloud Native Image

To create an AIA cloud native image, run the Docker build command using the updated Docker file:
$ cd $AIA_DIR/oc-cn-aia-comms
$ docker build -f Dockerfile -t aia-comms:12.3.1.0.0 .
Confirm that the AIA image is created and available:
$ docker images | grep aia-comms
This Dockerfile installs kubectl inside the AIA image at location /u01/oracle/.