Netflix / dispatch-docker

Apache License 2.0
206 stars 87 forks source link

How to define dispatch organization & project names for Slack plug-in #132

Closed olam-slack closed 2 years ago

olam-slack commented 2 years ago

Hi,

I have started a dispatch server locally. In addition, following your configuration guide for Slack "(This process has to be daemonized similarly to the dispatch webserver.)", I have initialized a process by adding the following to my docker-compose.yml file.

  slack:
    <<: *restart_policy
    image: dispatch-local
    depends_on:
      - postgres
      - core
    env_file:
      - .env
    command: ["server", "slack", "default", "default"]
    ports:
      - 3001:8000      

I checked the log, I got an error: "No slack plugin has been configured for this organization/plugin. Organization: default Project: <Project #1>"

Thanks for your help in advance.

mvilanova commented 2 years ago

You have to add and configure the Slack plugin in your project in the Web UI under Settings -> Projects -> Your Project -> Plugins

olam-slack commented 2 years ago

Marc mentioned that it is important to run bash command on dispatch_web container, to install and check the plugins.

dispatch plugins install
dispatch plugins list

And then select the second plugin on the drop-down in the UI to setup Slack integration.

Afterwards, one can run another bash command on dispatch_web container to get the process running, if running on Slack socket mode. dispatch server slack <organization> <project>