Add dockerfile
This commit is contained in:
parent
b9d9a5f338
commit
f3627390d3
Binary file not shown.
|
@ -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
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10
conf.yml
10
conf.yml
|
@ -1,10 +1,10 @@
|
||||||
connection:
|
connection:
|
||||||
server: irc.synirc.net
|
server: irc.freenode.net
|
||||||
port: 6667
|
port: 6667
|
||||||
nick: buttbot__
|
nick: butt_bot2
|
||||||
username: buttbot
|
username: buttbot
|
||||||
name: hello I am a new buttbot
|
name: hello I am a new buttbot
|
||||||
channels: ['#buttbot']
|
channels: ['#jesusandhacking']
|
||||||
settings:
|
settings:
|
||||||
cmd_prefix: '!'
|
cmd_prefix: '!'
|
||||||
meme: butt
|
meme: butt
|
||||||
|
@ -14,8 +14,8 @@ settings:
|
||||||
invite: Yes
|
invite: Yes
|
||||||
reload: Yes # you probably don't want to change this.
|
reload: Yes # you probably don't want to change this.
|
||||||
pass: unconfigured
|
pass: unconfigured
|
||||||
friends: { tef: 1 }
|
friends: { ollien: 1 }
|
||||||
enemies: {}
|
enemies: {}
|
||||||
frequency:
|
frequency:
|
||||||
friend: 37
|
friend: 1
|
||||||
normal: 51
|
normal: 51
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue