tree: b5cbc6efb680b44a223bf145b2c55f8bc5861863 [path history] [tgz]
  1. Dockerfile
  2. README.md
  3. docker-entrypoint.sh
  4. log4j2.xml
6/6.4/oap/README.md

Apache SkyWalking OAP Server Docker Files

SkyWalking: an APM(application performance monitor) system, especially designed for microservices, cloud native and container-based (Docker, Kubernetes, Mesos) architectures.

How to use this image

Start a standlone container with H2 storage

$ docker run --name oap --restart always -d apache/skywalking-oap-server:6.4.0

Start a standlone container with elasticsearch storage whose address is elasticsearch:9200

$ docker run --name oap --restart always -d -e SW_STORAGE=elasticsearch -e SW_STORAGE_ES_CLUSTER_NODES=elasticsearch:9200 apache/skywalking-oap-server:6.4.0

Configuration

We could set up environment variables to configure this image. Most of them are defined in backend-setup, but Apache SkyWalking Docker Image adds extra environment variables to help the user to compose it properly. The details are located in docker-entrypoint.sh

SW_ENVOY_ALS_ENABLED

No default value, set it to true to open ALS solution of SkyWalking.

SW_CLUSTER

Default value is standalone, avaliable values are:

  • standlone, If set this value, all enviroment variables of cluster.standlone in application.yml are avaliable.
  • zookeeper, If set this value, all enviroment variables of cluster.zookeeper in application.yml are avaliable.
  • kubernetes, If set this value, all enviroment variables of cluster.kubernetes in application.yml are avaliable.
  • consul, If set this value, all enviroment variables of cluster.consul in application.yml are avaliable.
  • etcd, If set this value, all enviroment variables of cluster.etcd in application.yml are avaliable.
  • nacos, If set this value, all enviroment variables of cluster.nacos in application.yml are avaliable.

SW_STORAGE

Default value is h2, avaliable values are:

  • h2, If set this value, all enviroment variables of storage.h2 in application.yml are avaliable.
  • elasticsearch, If set this value, all enviroment variables of stroage.elasticsearch in application.yml are avaliable.
  • mysql, If set this value, all enviroment variables of stroage.mysql in application.yml are avaliable.

SW_CONFIGURATION

Default value is none, avaliable values are:

  • apollo, If set this value, all enviroment variables of configuration.apollo in application.yml are avaliable.
  • nacos, If set this value, all enviroment variables of configuration.nacos in application.yml are avaliable.
  • zookeeper, If set this value, all enviroment variables of configuration.zookeeper in application.yml are avaliable.

SW_TELEMETRY

Default value is none, avaliable values are:

  • none, If set this value, all enviroment variables of telemetry.none in application.yml are avaliable.
  • prometheus, If set this value, all enviroment variables of configuration.prometheus in application.yml are avaliable.
  • so11y, If set this value, all enviroment variables of configuration.so11y in application.yml are avaliable.

XXX_ENABLED

There are also some other configuration switchers to extend default configuration, they also have a suffix _ENABLED.

  • SW_RECEIVER_ZIPKIN_ENABLED turns on/off zipkin receiver
  • SW_RECEIVER_JAEGER_ENABLED turns on/off jaeger receiver
  • SW_EXPORTER_ENABLED turns on/off exporter

SW_L0AD_CONFIG_FILE_FROM_VOLUME

If you want to adopt a dedicated application.yaml instead of the one generated by docker-entrypoint.sh. This should be set to true.

License

Apache 2.0 License.