Docker

Deploy all InLong module by Docker Compose, it’s only available for development.

Notice: The default message queue services is Apache Pulsar for Docker.

Requirements:

  • Docker 19.03.1+
  • Docker Compose 1.29.2+

Build

you can refer to How to Build.

Deploy

Start all components.

  1. cd docker/docker-compose
  2. docker-compose up -d

Register Component

  • DataProxy
  1. curl --header "Content-Type: application/json" --request POST http://localhost:8083/api/inlong/manager/openapi/cluster/save --data '
  2. {
  3. "name": "default_dataproxy",
  4. "type": "DATA_PROXY",
  5. "ip": "dataproxy",
  6. "port": 46801,
  7. "mqSetName": "default_set_name",
  8. "inCharges": "admin",
  9. "creator": "admin"
  10. }
  11. '
  • Pulsar
  1. curl --header "Content-Type: application/json" --request POST http://localhost:8083/api/inlong/manager/openapi/cluster/save --data '
  2. {
  3. "name": "pulsar_cluster",
  4. "type": "PULSAR",
  5. "url": "pulsar://pulsar:6650",
  6. "token": "null",
  7. "mqSetName": "default_set_name",
  8. "extParams": "{\"pulsar_adminUrl\": \"http://pulsar:8080\"}",
  9. "inCharges": "admin",
  10. "creator": "admin"
  11. }'

Usage

After all containers run successfully, you can access http://localhost with default account:

  1. User: admin
  2. Password: inlong

Destroy

  1. docker-compose down