diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3a99edf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' +services: + maidea: + image: ubuntu:22.04 + container_name: maidea + volumes: + - .:/maidea + tty: true + entrypoint: /maidea/entrypoint.sh + diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..4e225a4 --- /dev/null +++ b/entrypoint.sh @@ -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 + diff --git a/maidea.cfg.example b/maidea.cfg.example new file mode 100644 index 0000000..e1866ac --- /dev/null +++ b/maidea.cfg.example @@ -0,0 +1,3 @@ +DISCORD_TOKEN=token_here +PRIVILEGED_USER=userid_here +