Add dockerfile

This commit is contained in:
dave 2017-07-02 18:27:50 -07:00
parent b9d9a5f338
commit f3627390d3
10 changed files with 83 additions and 5 deletions

BIN
Bot-BasicBot-0.91.tar.gz Normal file

Binary file not shown.

48
Dockerfile Normal file
View File

@ -0,0 +1,48 @@
FROM ubuntu:trusty
RUN apt-get update && \
apt-get install -y make libperl-dev build-essential wget && \
sh -c 'echo "yes" | cpan' && \
cpan -i App::cpanminus
ADD Bot-BasicBot-0.91.tar.gz \
Moose-2.2005.tar.gz \
POE-1.367.tar.gz \
POE-Component-IRC-6.88.tar.gz \
POE-Component-Syndicator-0.06.tar.gz \
POE-Filter-IRCD-2.44.tar.gz \
/tmp/
ADD . /srv/buttbot/
RUN rm /srv/buttbot/conf.yml && \
cpanm -i Class::Load Package::DeprecationManager MRO::Compat Devel::OverloadInfo Eval::Closure Devel::GlobalDestruction Sub::Exporter Math::Random TeX::Hyphen Dir::Self YAML::Any IRC::Utils IO::Pipely Object::Pluggable::Constants && \
cd /tmp/Bot-BasicBot-0.91 && \
perl Makefile.PL && \
make install && \
cd /tmp/POE-1.367 && \
sh -c 'echo "y" | perl Makefile.PL' && \
make install && \
cd /tmp/POE-Component-IRC-6.88 && \
perl Makefile.PL && \
make install && \
cd /tmp/POE-Filter-IRCD-2.44 && \
perl Makefile.PL && \
make install && \
cd /tmp/POE-Component-Syndicator-0.06 && \
perl Makefile.PL && \
make install && \
cd /tmp/Moose-2.2005 && \
perl Makefile.PL && \
make && \
make install && \
rm -rf /srv/buttbot/*.tar.gz && \
cp /srv/buttbot/start /start && \
useradd --home /srv/buttbot buttbot && \
chown buttbot:buttbot /srv/buttbot && \
chmod +x /start
ENTRYPOINT ["/start"]
WORKDIR /srv/buttbot
USER buttbot

BIN
Moose-2.2005.tar.gz Normal file

Binary file not shown.

BIN
POE-1.367.tar.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
POE-Filter-IRCD-2.44.tar.gz Normal file

Binary file not shown.

View File

@ -1,10 +1,10 @@
connection:
server: irc.synirc.net
server: irc.freenode.net
port: 6667
nick: buttbot__
nick: butt_bot2
username: buttbot
name: hello I am a new buttbot
channels: ['#buttbot']
channels: ['#jesusandhacking']
settings:
cmd_prefix: '!'
meme: butt
@ -14,8 +14,8 @@ settings:
invite: Yes
reload: Yes # you probably don't want to change this.
pass: unconfigured
friends: { tef: 1 }
friends: { ollien: 1 }
enemies: {}
frequency:
friend: 37
friend: 1
normal: 51

21
conf.yml.example Normal file
View File

@ -0,0 +1,21 @@
connection:
server: irc.synirc.net
port: 6667
nick: buttbot__
username: buttbot
name: hello I am a new buttbot
channels: ['#buttbot']
settings:
cmd_prefix: '!'
meme: butt
set_meme: Yes
changenick: Yes
debug: Yes
invite: Yes
reload: Yes # you probably don't want to change this.
pass: unconfigured
friends: { tef: 1 }
enemies: {}
frequency:
friend: 37
normal: 51

9
start Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh -e
if test ! -f /srv/buttbot/conf.yml ; then
echo "Need config at /srv/buttbot/conf.yml"
cp /srv/buttbot/conf.yml.example /srv/buttbot/conf.yml
exit 1
fi
exec ./buttbot.pl