cruxdaemon/trader

By cruxdaemon

Updated over 6 years ago

Trader microservice with the Liberty data collector embedded

Image
1

1M+

cruxdaemon/trader repository overview

Trader microservice with embedded lightweight collector

The collector is not configured for an APM server in the image, but configuration can be passed with environment variables using docker run or a kubernetes configmap. The following configuration variables are available:

APM
Variable namePossible valuesDescription
APM_BM_GATEWAY_URLhttps://server_ip_or_hostname:443 or http://server_ip_or_hostnameThe URL of the target Cloud APM server.
APM_KEYFILE_PSWDBase64-encoded password of the key file that is paired with the key file. Linux users can use the base64 command to encode the password.Set this variable only when you configured the APM_BM_GATEWAY_URL variable to use HTTPS.
APM_KEYFILE_URLhttp://hosted_http_server:port/keyfile.jksThe URL to download the key file. Set this variable only when you configured the APM_BM_GATEWAY_URL variable to use HTTPS.
METHOD_TRACE_ENABLEtrue / falseUse this variable to enable or disable method tracing. The value of true enables method tracing. The default value is false.
Sample docker command with environment flags:

docker run -p 9080:9080 -d --name {containername} --env APM_BM_GATEWAY_URL=https://server_ip_or_hostname:443 --env APM_KEYFILE_URL=http://hosted_http_server:port/keyfile.jks --env APM_KEYFILE_PSWD=base64-encoded password --env METHOD_TRACE_ENABLE=true cruxdaemon/trader:apmdc

You can also create a file on the host that contains the values and mount it as a volume in the container:

docker run -p 9080:9080 -d -name _containername_ -v {hostpath}/global.environment:/opt/ibm/wlp/usr/extension/liberty_dc/itcamdc/etc/global.environment cruxdaemon/trader:apmdc

For Kubernetes, you can use a configMap to set the environment:
apmdc_config.yaml:
apiVersion: v1
kind: ConfigMap
metadata:
  name: apmdc-config
  namespace: default
data:
  APM_BM_GATEWAY_URL: https://server_ip_or_hostname:443
  APM_KEYFILE_URL: http://hosted_http_server:port/keyfile.jks
  APM_KEYFILE_PSWD: base64-encoded password
  METHOD_TRACE_ENABLE: "true"
In the trader deployment YAML add the following to the container spec:
        envFrom:
        - configMapRef:
            name: apmdc-config

Tag summary

Content type

Image

Digest

Size

304.3 MB

Last updated

over 6 years ago

docker pull cruxdaemon/trader:icam