Building Application Monitor Agent Docker Image
ActiveMatrix Service Grid - Container Edition provides an Application Monitor agent. After you register the Application Monitor agent with TIBCO Enterprise Administrator, you can monitor ActiveMatrix Service Grid - Container Edition applications by using the Application Monitor.
- See Preparing for Containerization.
- To update JVM arguments and Log4j configuration for the Application Monitor, see Setting JVM Arguments and Logging Configuration for Application Monitor.
- Procedure
- Navigate to
<temp_directory>/amsgce-runtime-<version>/teaagent/build.
-
Build the Application Monitor agent Docker image by using the following script:
Linux:
./build_amxceteaagent
Windows:
build_amxceteaagent.exe
You can list the most recently created images by using the following command:
docker images
Note:./build_amxceteaagent
script creates the image with the default nameamxceteaagent:1.0.1
, though you specify different image name by using--image
tag.The following table lists the arguments that you can pass when building an application Docker image. You can specify the arguments to be passed in the
amsgce-runtime-<version>\teaagent\build\build_amxceteaagent.yaml
file or you can specify the arguments when running the command. Arguments specified when running the command have precedence over the arguments specified in the YAML file.Argument Optional /
Required
Description -b / --base_dir <Base directory path> Optional The base directory in which the build files are located. If not specified, the current directory is considered as base location directory.
Default:
amsgce-runtime-<version>\teaagent\build
-java <Java package file location>
Optional Specify the location of the Java Package to be used to create the image. This option can be used to provide pre-downloaded JDK or JRE to be used while creating the image. Image creation script skips downloading Java from a remote site when this option is provided. Specified Java package is automatically copied to the
amsgce-runtime-<version>/runtime/java
folder. Previously specified Package is removed fromamsgce-runtime-<version>/runtime/java
before copying the new package.Note: Do not manually copy the package directly toamsgce-runtime-<version>/runtime/java
.Note: Do not specify the folder location. This must be the compressed Java package file location.Example:
./build_amxceteaagent --java /path/to/openjdk-11+28_linux-x64_bin.tar.gz
dockerfile <Dockerfile Name> Optional Specify Dockerfile name to use a Dockerfile other than the default one. Default Dockerfile is
Dockerfile_alpine_java11
.Example:
./build_amxceteaagent --dockerfile Dockerfile_ubuntu_java11
-h / --help
Optional Displays help for the command. --config <Configuration file> Optional Configuration YAML file in which you can specify arguments to be passed to command.
Default:
amsgce-runtime-<version>/runtime/build/build_amxceteaagent.yaml
-v / --version Optional Displays version of the build_amxceteaagent
executable.