...
To list the downloaded images from the Stonebranch repository, run the following command:
Panel | ||||
---|---|---|---|---|
docker images -a stonebranch/universal-agent | ||||
REPOSITORY | TAG | IMAGE ID | CREATED | SIZE |
stonebranch/universal-agent | 6.6.0.1 | bc9dfbf7d367 | 19 hours ago | 1.04GB |
stonebranch/universal-agent | latest | bc9dfbf7d367 | 19 hours ago | 1.04GB |
These images were created with the following
...
title | Dockerfile |
---|
...
These images were created with the following
Expand | ||
---|---|---|
| ||
# Set the base image to RedHat UBI |
Expand | ||
---|---|---|
| ||
# Set the base image to DebianUBI Debian based Image"# MAINTAINER "Colin Cocksedge <colin.cocksedge@stonebranch.com> LABEL author="Stonebranch, Inc." # create license directory and add product license-files /sb-${ua_version}-linux-3 .10-x86_64-deb.tar.Z /tmp.10 -x86_64-deb.tar.Z | tar xvf - && ./unvinst --network_provider oms --oms_servers 7878@localhost --python yes -- oms_port 7878 --security inherit --ubroker_start no && rm unvinst *.rpm deb *.tar upimerge.sh upimerge.log usrmode.inc install.log /tmp/sb-${ua_version}-linux-3.10 -x86_64-deb.tar.Z # Set Permissions for Arbitrary ID Support/var /opt/universal/python3.6 && mkdir /opt/universal/uag/logs/ python3.6/bin && ln -s /dev usr/null bin/var python3 /opt/universal/uag python3.6/logs/agent.log && # ENV PATH bin/python3 && apt-get install -y python3-pipEntry Point Set entrypoint |
Expand | ||
---|---|---|
| ||
#!/bin/bash 7 8"
kill -TERM
wait "$ubroker" exit 0 if [ -w /etc/passwd ]; then echo "${USER_NAME:-default}:x:$(id -u):0:${USER_NAME:-default} user:${HOME}:/sbin/nologin" >> /etc/passwd fi
sed -ri "s/^message_level.*/message_level $UBRMSGLEVEL/g" /etc/universal/ubroker.conf
sed -ri "s/^message_level.*/message_level $UAGMSGLEVEL/g" /etc/universal/uags.conf
sed -ri "s/^message_level.*/message_level $UDMMSGLEVEL/g" /etc/universal/udms.conf
sed -ri "s/^message_level.*/message_level $UCMMSGLEVEL/g" /etc/universal/ucmds.conf
sed -ri "s/^loglvl.*/loglvl $UAGLOGLEVEL/g" /etc/universal/uags.conf
|
Docker Environment Variables
...
Environment Variable | Description | Example | |||||
---|---|---|---|---|---|---|---|
OMSAUTOSTART | Specifies whether the Universal Broker starts an OMS server. Default = no | OMSAUTOSTART=yes | |||||
UAGAGENTCLUSTERS | List of Universal Controller Agent Clusters to join automatically. Default = 'Opswise - Default Linux/Unix Cluster, Opswise - Default Windows Cluster' | UAGAGENTCLUSTERS='Agent Cluster 1,Agent Cluster 2' | |||||
UAGAUTOSTART | Specifies whether the Universal Broker starts a UAG server. Default = yes | UAGAUTOSTART=no | |||||
UAGBUSINESSSERVICES | Specify the list of UC Business Services that this Agent will join when registering with the Universal Controller. | UAGBUSINESSSERVICES:='Business Service 1,Business Service 2' | |||||
UAGENABLESSL | Specifies whether the SSL/TLS protocol is used for network communication between UAG and OMS. Default = no | UAGENABLESSL=yes | |||||
UAGNETNAME | Sets the Agent ID to be used when the Universal Agent registers / connects to a Universal Controller Instance. Default = OPSAUTOCONF | UAGNETNAME=UADKR001 | |||||
UAGOMSSERVERS | Specifies one or more OMS server addresses. Default = 7878@localhost | UAGOMSSERVERS=7878\@omsserver1,7878\@omsserver2 | |||||
UAGTRANSIENT | Specifies whether the Agent is Transient and will be deleted or decommissioned when the Agent shuts down or goes offline. Transient Agents are suspended from any Agent Clusters that they may belong to.
Valid values are:
Default = no. | UAGTRANSIENT=yes | |||||
UEMAUTOSTART | Specifies whether the Universal Broker starts a UEM server. Default = yes | UEMAUTOSTART=no | |||||
UBRMSGLEVEL | Specify the Universal Broker message level. Default = INFO | UBRMSGLEVEL=TRACE | |||||
UAGMSGLEVEL | Specify the UAG Server message level. Default = INFO | UAGMSGLEVEL=TRACE | |||||
UDMMSGLEVEL | Specify the UDM Server message level. Default = INFO | UDMMSGLEVEL=TRACE | |||||
UCMMSGLEVEL | Specify the UCMD Server message level. Default = INFO | UCMMSGLEVEL=TRACE | |||||
UAGLOGLEVEL | Specify the UAG Server Log Level. Default = I | UAGLOGLEVEL=T |
...
The Universal Agent image configures the Universal Broker service to start in console mode, which writes all log data (unv.log and agent.log) to stdout. To view the log of a specific container, run the following command:
Panel |
---|
docker logs container-name |
Anchor | ||||
---|---|---|---|---|
|
To run a Universal Agent 6.6.0.1 latest version container that connects to Universal Controller (via an OMS server) with SSL/TLS enabled and registers with an Agent ID of UA001, run the following command:
Panel |
---|
docker run --detach --env UAGNETNAME=UA001 --env UAGOMSSERVERS=7878@uchost --name ua-test stonebranch/universal-agent:6.6.0.1 latest |