Docker Install
Docker Install
Insight stable and development branches are available on Docker hub.
Insight on Docker Hub Link {.is-info}
Supported tags and Dockerfile links
latest(master/Dockerfile)
Quick reference
-
Where to file issues:
Start an Insight instance
This Docker image uses volumes to persist the Database.db and config file. See volumes for information about Docker volumes.
- Create and navigate to a directory where you wish to store Insight configuration, logs, and database.
- Pull and run the image. This command will pull the stable Docker Insight image and initialize the config files in your current directory.
docker run --name insight -it --rm -v ${PWD}:/app nathanls/insight --docker-init - Edit
default-config.iniand populate your configuration values in accordance with the Configuring Insight section. Rename this file toconfig.ini. - Keep the image up to date by checking for updates and then starting Insight:
docker pull nathanls/insight && docker run --name insight -it --rm -v ${PWD}:/app nathanls/insight
via docker stack deploy or docker-compose
Example stack.yml for insight:
version: '3.1'
services:
insight:
image: nathanls/insight
restart: always
volumes:
- ./:/app
stdin_open: true
tty: true
Configuring Insight
- Find and open the ‘default-config.ini’ file with a text editor.
- Go to Discord Developer and create a New App.
- No Redirect URL is required.
- After creating a new app, edit your app and click Create a Bot User.
- Ensure the Public Bot checkbox is enabled and the Require OAuth2 Code Grant is disabled.
- Copy your Discord application’s Token into the config file under the section [discord]. Your config file section should look
like this:
[discord] token = YourDiscordAppTokenGoesHereWithoutQuotes ;required - Create a new Discord app at https://discordapp.com/developers/applications/me and set token to your App's token - Go to CCP Developers and create a new app with the following settings:
- Connection Type = Authentication & API Access
- Requested Scopes List:
- esi-characters.read_contacts.v1
- esi-corporations.read_contacts.v1
- esi-alliances.read_contacts.v1
- Callback =
https://insight.nathan-s.com/Insight/callbackif you don’t plan on personally hosting a callback landing page.- Insight does not utilize a callback listener for simplicity so the user must manually copy their returned callback URL into Discord.
Feel free to host the contents of /callback/index.html and modify the callback to point to your own landing page. The above URL is hosted on Github and directs users to the contents of
Insight/callback/index.html.
- Insight does not utilize a callback listener for simplicity so the user must manually copy their returned callback URL into Discord.
Feel free to host the contents of /callback/index.html and modify the callback to point to your own landing page. The above URL is hosted on Github and directs users to the contents of
- Create your new CCP App and copy the Client ID, Secret Key, and Callback URL into the appropriate sections in your config file.
- Save your config file and rename it from
default-config.initoconfig.ini.
Updating
This Docker repository utilizes automated builds. The Docker images are automatically updated whenever there are new commits to the Git repo. You can update your image locally by running a pull command and restarting the Docker container:
docker pull nathanls/insight
There is no need to manually update the SDE or any files associated with the Insight build as the latest dependencies are all included within the image.
Inviting your bot
- Find your Discord application’s id from Discord Apps.
- Edit this URL to include your app’s client ID:
https://discordapp.com/api/oauth2/authorize?client_id=YourClientIDHere&permissions=149504&scope=botor
- A link is provided when Insight starts. Check the program console and copy down the Invite Link.