New certmgr method, ugly.

This commit is contained in:
unknown
2016-05-05 15:42:47 +01:00
parent 96bf7952dc
commit 768a3417ff
5 changed files with 32 additions and 21 deletions

View File

@ -11,25 +11,6 @@ RUN add-apt-repository ppa:mc3man/trusty-media -y
RUN apt-get -q update && \
apt-get install -qy wget libopus0 opus-tools libopus-dev mono-devel unzip ffmpeg
# Get NadekoBot Latest
RUN curl -s https://api.github.com/repos/Kwoth/NadekoBot/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4|wget -i - -O /root/NadekoBot.latest.zip &&\
unzip /root/NadekoBot.latest.zip -d /root/NadekoBot
##Setup Certificates
#RUN mozroots --import --ask-remove --machine &&\
#certmgr --ssl https://gateway.discord.gg
#Test config files present
RUN cred="/config/credentials.json" &&\
if [ -f "$cred" ] ; then echo "Credentials exist" ; else cp /root/NadekoBot/credentials_example.json /config/credentials.json ; fi
RUN sql="/config/nadekobot.sqlite" &&\
if [ -f "$sql" ] ; then echo "SQLite DB exists" ; else echo "" > /config/nadekobot.sqlite ;fi
#Adding Config file sym links
RUN ln /config/credentials.json /root/NadekoBot/credentials.json &&\
ln /config/nadekobot.sqlite /root/NadekoBot/data/nadekobot.sqlite
#Mappings and ports
VOLUME ["/config"]
@ -41,4 +22,4 @@ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#Adding Custom files
ADD init/ /etc/my_init.d/
ADD services/ /etc/service/
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh