Installation - SO-Close-Vote-Reviewers/SOCVR-Chatbot GitHub Wiki
Want to run the bot on your own system? This page will tell you most of what you need to know.
##Windows##
You'll need:
- .NET 4.5 framework installed or Mono 2.1
- Visual Studio 2012 or higher (optional but encouraged)
- Postgresql. This can be on a separate computer but needs to be accessible through the network.
##Configuration##
Depending on how you are running the program the method for setting configuration
###Environment Variables### The first place the program will look for values are
- Read the
settings-sample.json
file. - Set environment variables with the same names as the key values in the json file.
###Json File###
- Copy the
settings-sample.json
file into the same directory as the exe. Call itsettings.json
. - Customize the values as needed.
##Docker## This program can be ran in docker. This is by far the easiest method of running the program. You don't need to worry about installing dependencies or setting up Posgresql - all of that will be done for you in an isolated environment.
Follow these steps to get it running:
- Make sure you have
docker
anddocker compose
installed. - From the root of the repository run
./build.sh
. This runsdocker build -t socvr/chatbot .
. You can change the name of the image that will be built by swapping outsocvr/chatbot
. - Make a copy of the
docker-compose.yml.example
file and remove the.example
from the end. Edit and customize the settings within to your liking. If you changed the name of the image in the previous step, update the value in this file as well. - Run
docker-compose up -d
to create and start the containers.