-
Notifications
You must be signed in to change notification settings - Fork 0
Build & Installation
Pavel edited this page Feb 17, 2022
·
5 revisions
- App release on GitHub.
- Docker compose file. You can also want compile .NET core source code for different platforms.
- Install Docker for Linux. It will pull .NET Core from the image.
- Install Docker Engine:
sh <(curl -fsSL get.docker.com)
- Download and install docker-compose: https://docs.docker.com/compose/install/
- Install Docker Engine:
- Pull latest pre-compiled version
- Create directory where you want hold
docker-compose.yml
file and locate to it - Download latest docker-compose file:
curl https://raw.githubusercontent.com/TheBottleCyber/LeviathanBot/master/docker-compose.yml > docker-compose.yml
- Run pulling from docker hub:
docker-compose pull
-
Make sure you have own
settings.json
file in/opt/leviathan/settings.json
- Run containers from docker-compose:
docker-compose up -d
- Create directory where you want hold
- Clone git repository to needed directory:
git clone https://github.com/TheBottleCyber/LeviathanBot.git
- Go to source files folder:
cd LeviathanBot
- Create settings file from default
cp settings.def.json settings.json
and edit it to your needs - Build from source code:
dotnet publish -c Release -o ./output
- Move your
settings.json
file from source code directory to output foldermv settings.json ./output/settings.json
- Locate to output folder and run
dotnet Leviathan.Runner.dll
. Please aware, this running method may not work correctly, it is better to create linux services working with dotnet utility
- Find latest app release and download with unpacking to folder
- Locate folder where bot is and create settings file from default
copy settings.def.json settings.json
and edit it to your needs - Run
Leviathan.Runner.exe
. Please aware, this running method may not work correctly, it is better to create windows services or using docker installation with Docker Desktop