run_container_AcuToWeb.sh

Starts AcuToWeb in a detached container.

Usage

run_container_AcuToWeb.bat

podman Specifications

run_container_AcuToWeb.sh runs the podman run command as follows:
podman run \
   -d \
   --rm \
   --entrypoint "/AppContainerDirectory/start_acutoweb.sh" \
   --env "PATH=/opt/microfocus/extend/bin:$PATH" \
   --env "LD_LIBRARY_PATH=/opt/microfocus/extend/lib:$LD_LIBRARY_PATH" \      
   --publish 5632:5632 \
   --publish 3000:3000 \
   --publish 8008:8008 \
   --name acu_acutoweb \
   --volume "$PWD/SharedContainerDirectory":"/SharedContainerDirectory:z" \
   microfocus/extend-app:ubuntu_10.5.0_x64

Where:

-d
Runs the image as a detached container.
--rm
Automatically removes the container when it exits.
--entrypoint "/AppContainerDirectory/start_acutoweb.sh"
Specifies the program to be run in the detached container.
Note: If this requires one or more programs to start, the last program must be run in the foreground within the container waiting for input, otherwise the container stops running along with any programs that were started. The following shows the commands run in start_acutoweb.sh when the container is run
cd /opt/microfocus/extend/acutoweb
./acutoweb-gateway -start -c /AppContainerDirectory/gateway_linux.toml
cd /AppContainerDirectory
acurcl -start -c /AppContainerDirectory/acurcl_linux.cfg -l -t7 -e /SharedContainerDirectory/acurcl_linux.out -f

The -f option is used to start AcuRCLb in the foreground. In this example, the error file specified by the -e option is in /SharedContainerDirectory. This is for persistent data. See the --volume option for more details.

--publish 5632:5632, --publish 3000:3000, --publish 8008:8008
Publishes a host port to the container port. AcuRCL uses port 5632 by default, and AcuToWeb uses ports 3000 and 8008 by default. For clients to communicate with programs, the host ports must be mapped to ports used by the container programs. The host port and the container port are not required to match. For example, if you started AcuRCL on port 5666 in the container, you could use the following to map the host port of 5632 to the container port of 5666 and the Thin Client would use the host port of 5632:
 --publish 5632:5666

Alternatively, you could have the host port be the same as the container port and the Thin Client would use the host port of 5666:

 --publish 5666:5666
--name acu_acutoweb
Provides a unique name for the container. Use the following docker command to see a list of all containers: docker ps -a
--volume "$PWD/SharedContainerDirectory":"/SharedContainerDirectory:z"
This option allows for persistent data after a container has been stopped. It specifies a single shared directory between the host and the container where your container applications can create or make changes to files and data that you want to remain after a container has been stopped. The format of the --volume option is:
"host-directory":"container-directory"
Note: We prefix the host directory with the $PWD environment variable to eliminate the need to hard code a path, which might be different on each machine. If the container programs create or change files and data in any other directory, these changes are not there the next time the image is run.
microfocus/extend-app:ubuntu_10.5.0_x64
Specifies the name of the application image to be run, including the repository name and the tag name. The format of the image specification is:
"repository-name":"tag-name"

Where the repository name is microfocus/extend-app, and the tag name is ubuntu_10.5.0_x64.