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:
- Ensure that the AIA cloud native toolkit has been downloaded. For instructions, see "Downloading and Installing the AIA Cloud Native Toolkit".
- Ensure that Oracle SOA suite docker image is available. For details, see the documentation about Oracle Fusion Middleware on Kubernetes on Oracle GitHub at: https://oracle.github.io/fmw-kubernetes/23.1.2/soa-domains/installguide/prepare-your-environment/#obtain-the-oracle-soa-suite-docker-image.
Configuring an AIA Cloud Native Image
To configure an AIA cloud native image:
- 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
- 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/.