37 Commits
1.3 ... release

Author SHA1 Message Date
13a1f6f32a updating to new file 2017-11-30 20:32:13 -06:00
2893ca1dcb adding build.sh 2017-11-30 19:59:30 -06:00
9e8620cd3c adding build.sh 2017-11-30 19:53:10 -06:00
7df377f507 Nadeko Fixes 2017-11-30 19:42:36 -06:00
ffef749ea6 Nadeko Release Branch 2017-11-30 19:33:01 -06:00
83ce7ac876 fixing 2017-09-20 21:28:45 -05:00
26130e7038 updating git URL to be my own 2017-09-20 20:10:43 -05:00
613d31192c adding tzdata as a required application for build 2017-09-20 18:38:03 -05:00
ce0a5d1d0d Phusion migration (#3)
* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile

* Update DockerFile
2017-07-11 11:30:57 +01:00
120ada163e Update DockerFile 2017-07-10 11:29:20 +01:00
4b6555c2c0 Update DockerFile 2017-07-10 11:17:46 +01:00
04638ca319 Update DockerFile 2017-07-05 14:34:09 +01:00
ad2e040bab Update DockerFile 2017-07-05 09:24:49 +01:00
09c6a822d7 Phusion (#2)
* Update DockerFile

* Update DockerFile
2017-07-04 09:06:09 +01:00
cd8c8b3281 Update DockerFile 2017-06-28 10:14:41 +01:00
f5ea0908d4 Update nadeko_autorestart.sh 2017-06-28 08:31:33 +01:00
65267ca8cd Update DockerFile 2017-06-21 09:46:06 +01:00
d72bc47344 Update nadeko_autorestart.sh 2017-06-21 09:45:47 +01:00
7d0a656a11 Create nadeko_autorestart.sh 2017-06-09 09:38:12 +01:00
365c0890c6 Create nadeko_autorestart.sh 2017-06-09 09:09:12 +01:00
6b0000f980 Update nadeko_autorestart.sh 2017-06-07 15:06:12 +01:00
fb9c9cfee3 Update nadeko_autorestart.sh 2017-06-07 14:51:50 +01:00
a0a5afe9db Update nadeko_autorestart.sh 2017-06-07 14:34:01 +01:00
7a03d9fea7 Update nadeko_installer_1_4.sh 2017-06-07 14:20:08 +01:00
bd045d5f4a Update DockerFile 2017-06-07 14:19:55 +01:00
7cddb7c193 Create nadeko_autorestart.sh 2017-06-07 14:19:32 +01:00
134a8a1cd0 Update DockerFile 2017-06-07 14:06:44 +01:00
6d30473fa1 Update nadeko_installer_1_4.sh 2017-06-07 14:06:26 +01:00
8f80b7e471 Update nadeko_installer_1_4.sh 2017-06-07 13:32:23 +01:00
e582d163ca Update nadeko_installer_1_4.sh 2017-06-07 13:30:18 +01:00
2fae65bb4c Update DockerFile 2017-06-07 13:07:41 +01:00
68fd58533d Update nadeko_installer_1_4.sh 2017-06-07 13:07:14 +01:00
0ba8946eeb Update DockerFile 2017-06-07 13:00:03 +01:00
7ea95d7a82 Update DockerFile 2017-06-01 08:53:39 +01:00
804658cf9f Create nadeko_installer_1_4.sh 2017-06-01 08:52:52 +01:00
cfc6db9479 Update DockerFile 2017-06-01 08:45:01 +01:00
52d72c1822 Update DockerFile 2017-06-01 08:42:08 +01:00
5 changed files with 137 additions and 20 deletions

View File

@ -1,20 +0,0 @@
FROM microsoft/dotnet:1.1-sdk-projectjson
MAINTAINER Poag <poag@gany.net>
WORKDIR /opt/
#Install required software
RUN echo "deb http://www.deb-multimedia.org jessie main non-free" | tee /etc/apt/sources.list.d/debian-backports.list \
&& apt-get update \
&& apt-get install -y --force-yes deb-multimedia-keyring \
&& apt-get update \
&& apt-get install -y git libopus0 opus-tools libopus-dev libsodium-dev ffmpeg
#Download and install stable version of Nadeko
RUN curl -L https://github.com/Kwoth/NadekoBot-BashScript/raw/master/nadeko_installer_latest.sh | sh \
&& curl -L https://github.com/Kwoth/NadekoBot-BashScript/raw/master/nadeko_autorestart.sh > nadeko.sh \
&& chmod 755 nadeko.sh
VOLUME ["/opt"]
CMD ["/opt/nadeko.sh"]

46
Dockerfile Normal file
View File

@ -0,0 +1,46 @@
# Download Ubuntu base image from phusion
# https://github.com/phusion/baseimage-docker
FROM phusion/baseimage:latest
# Define working directory
WORKDIR /opt/
# Prepare for Basic stuff
RUN apt-get update
RUN apt-get install software-properties-common apt-transport-https curl -y
# Register the trusted Microsoft signature key
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
RUN mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
# Register the Microsoft Product feed for your distro version
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
# Add ffmpeg3 ppa
RUN add-apt-repository ppa:jonathonf/ffmpeg-3
# Updating existing tools
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
# Install Git
RUN apt-get update && apt-get install -y git
# Install .Net Core
RUN apt-get update && apt-get install -y dotnet-sdk-2.0.0
# Install Redis-server
RUN apt-get update && apt-get install -y redis-server
# Install required software
RUN apt-get update && apt-get install -y libopus0 opus-tools libopus-dev libsodium-dev ffmpeg rsync python python3-pip
#Add youtube-dl
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl
#Download and install stable version of Nadeko
RUN curl -H "Cache-Control: no-cache" https://raw.githubusercontent.com/willysunny/Nadecker/master/nadeko_installer_2_5_7.sh -o ./nadeko_installer.sh && chmod 755 nadeko_installer.sh && ./nadeko_installer.sh
RUN curl -O -H "Cache-Control: no-cache" https://raw.githubusercontent.com/willysunny/Nadecker/master/nadeko_autorestart.sh && chmod 755 nadeko_autorestart.sh
VOLUME ["/root/nadeko"]
CMD ["sh","/opt/nadeko_autorestart.sh"]

7
build.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "You need to specify a version."
exit
else
docker build -t mattburchett/nadeko-$1 .
fi

32
nadeko_autorestart.sh Normal file
View File

@ -0,0 +1,32 @@
#!/bin/sh
if hash dotnet 2>/dev/null
then
echo "Dotnet installed."
else
echo "Dotnet is not installed. Please install dotnet."
exit 1
fi
echo ""
echo "Linking Nadeko Credentials"
mv -n /opt/NadekoBot/src/NadekoBot/credentials.json /root/nadeko/credentials.json > /dev/null 2>&1
rm /opt/NadekoBot/src/NadekoBot/credentials.json > /dev/null 2>&1
ln -s /root/nadeko/credentials.json /opt/NadekoBot/src/NadekoBot/credentials.json > /dev/null 2>&1
echo ""
echo "Patching Nadeko Data Folder"
mkdir -p /root/nadeko/patch
cd /root/nadeko/patch && bash "./patch.sh"
echo ""
echo "Starting Redis-Server"
/usr/bin/redis-server --daemonize yes
echo ""
echo "Running NadekoBot with auto restart Please wait."
cd /opt/NadekoBot/src/NadekoBot
while :; do dotnet run -c Release; sleep 5s; done
echo "Done"
exit 0

52
nadeko_installer_2_5_7.sh Normal file
View File

@ -0,0 +1,52 @@
#!/bin/sh
echo ""
echo "NadekoBot Installer started."
if hash git 1>/dev/null 2>&1
then
echo ""
echo "Git Installed."
else
echo ""
echo "Git is not installed. Please install Git."
exit 1
fi
if hash dotnet 1>/dev/null 2>&1
then
echo ""
echo "Dotnet installed."
else
echo ""
echo "Dotnet is not installed. Please install dotnet."
exit 1
fi
root=/opt
cd "$root"
echo ""
echo "Downloading NadekoBot, please wait."
git clone -b release --recursive --depth 1 https://github.com/mattburchett/NadekoBot.git
echo ""
echo "NadekoBot downloaded."
echo ""
echo "Downloading Nadeko dependencies"
cd $root/NadekoBot
dotnet restore
echo ""
echo "Download done"
echo ""
echo "Building NadekoBot"
#dotnet add /opt/NadekoBot/src/NadekoBot package ImageSharp --version 1.0.0-alpha9-00194 --source https://www.myget.org/F/imagesharp/api/v3/index.json
dotnet build --configuration Release
echo ""
echo "Building done."
echo ""
echo "Installation Complete."
exit 0