Skip to content

Commit

Permalink
Merge pull request #120 from rockcutter/#118_add_docker-compose.yml
Browse files Browse the repository at this point in the history
#118 add docker compose.yml
  • Loading branch information
rockcutter authored Sep 19, 2022
2 parents 7b85306 + 91419ee commit 929112b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'
services:
maidea:
image: ubuntu:22.04
container_name: maidea
volumes:
- .:/maidea
tty: true
entrypoint: /maidea/entrypoint.sh

17 changes: 17 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
apt update -y
apt install -y git
apt install -y build-essential
apt install -y cmake
apt install -y libssl-dev
apt install -y libboost-dev
apt install -y libboost-program-options-dev
cd /maidea
git clone https://github.com/yourWaifu/sleepy-discord.git
mkdir bld
cd bld
cmake ../
make
cp /maidea/maidea.cfg /maidea/bld/maidea.cfg
/maidea/bld/maidea

3 changes: 3 additions & 0 deletions maidea.cfg.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DISCORD_TOKEN=token_here
PRIVILEGED_USER=userid_here

0 comments on commit 929112b

Please sign in to comment.