Sign inSign up

cruxdaemon/loyalty-level

By cruxdaemon

Updated almost 8 years ago

The IBM Stock Trader loyalty level microservice with the unified data collector embedded.

Image
0

208

cruxdaemon/loyalty-level repository overview

Loyalty Level microservice with embedded lightweight collector

The collector is not configured for an APM server in the image, but configuration can be passed via 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
http://server_ip_or_hostname
The 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.
`echo password
base64`
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
false
Use 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/loyalty-level: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/loyalty-level: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 loyalty-level deployment YAML add the following to the container spec:
        envFrom:
        - configMapRef:
            name: apmdc-config

Tag summary

Content type

Image

Digest

Size

239.2 MB

Last updated

about 8 years ago

docker pull cruxdaemon/loyalty-level:apmdc