bld.sh

bld.sh runs the extend installer to create a base image or an application image.

Usage

bld.sh IacceptEULA [app]

Parameters

IacceptEULA
Indicates the acceptance of the End User License Agreement (EULA). This parameter is required.
app
Build an application image based on the extend base image, including the AppContainerDirectory.

bld_linux_x64.env

bld.sh uses the following information included from bld_linux_x64.env:
# Version of extend
EXTEND_VERSION=10.5.0

# Name of the Linux operating system used by the base image
OS=ubuntu

# Name of the Linux repository tag used to create the base image
BASEOSIMAGE=ubuntu:20.04

# Name of the Dockerfile used to create the base image
DOCKERFILE=Dockerfile_linux_x64

# Complete base image reference name
# like microfocus/extend:ubuntu_10.5.0_x64
BASEIMAGE=microfocus/extend:ubuntu_${EXTEND_VERSION}_x64

# Complete application image reference name
# like microfocus/extend-app:ubuntu_10.5.0_x64
APPIMAGE=microfocus/extend-app:ubuntu_${EXTEND_VERSION}_x64

# Name of the Linux extend setup program
SETUPEXE=setup_acucob1050pmk59shACU

# Name of the directory containing the license files
LICENSE_DIRECTORY=aculic_pmk59

# Name of the installation directory
INSTALL_DIRECTORY=/opt/microfocus/extend

podman Build Command

bld.sh runs the podman build command to create the base image:

podman build \
   --tag $BASEIMAGE\
   --format docker \
	  --build-arg BASEOSIMAGE=$BASEOSIMAGE \
	  --build-arg ACCEPTEULA=$ACCEPTEULA \
	  --build-arg SETUPEXE=$SETUPEXE \
	  --build-arg LICENSE_DIRECTORY=$LICENSE_DIRECTORY \
	  --build-arg INSTALL_DIRECTORY=$INSTALL_DIRECTORY \
	  --build-arg EXTEND_VERSION=$EXTEND_VERSION \
	  --file $DOCKERFILE .

Where:

--tag
Sets a name for the base image that gets built.
--format docker
Uses the Docker format for the built image's manifest and configuration data.
--build-arg
Sets variables that get used in the Dockerfile specified by the --file option.
--file
Specifies the name of the Dockerfile that contains the base image creation commands.
.
Sets the current directory as the directory in which to look for file and subdirectories.

Example

The podman build command with expanded parameters:

podman build 
       --tag microfocus/extend-app:ubuntu_10.5.0_x64 
       --format docker 
       --build-arg BASEIMAGE=microfocus/extend:ubuntu_10.5.0_x64 
       --build-arg EXTEND_VERSION=10.5.0 
       --build-arg "APPCONTAINERDIRECTORY=/opt/microfocus/extend/sample/containerization/linux/AppContainerDirectory"
       --file Dockerfile_linux_x64_app
       .
Note: The --tag parameter includes "app" to differentiate it from the base image.