From 7365970fe07f552f5c51ab881d5681fae87fbc6d Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 12 Dec 2016 15:42:10 +0100 Subject: [PATCH] Moved dev dockerfile to / --- docker/dev/Dockerfile => Dockerfile | 2 +- docker/README.md | 40 ----------------------------- docker/stable/Dockerfile | 20 --------------- 3 files changed, 1 insertion(+), 61 deletions(-) rename docker/dev/Dockerfile => Dockerfile (94%) delete mode 100644 docker/README.md delete mode 100644 docker/stable/Dockerfile diff --git a/docker/dev/Dockerfile b/Dockerfile similarity index 94% rename from docker/dev/Dockerfile rename to Dockerfile index d1f2c9a9..46c56a22 100644 --- a/docker/dev/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM microsoft/dotnet:sdk -MAINTAINER Reiuiji +MAINTAINER Poag WORKDIR /opt/ diff --git a/docker/README.md b/docker/README.md deleted file mode 100644 index a27b97e3..00000000 --- a/docker/README.md +++ /dev/null @@ -1,40 +0,0 @@ -NadekoBot Docker Image -====================== - -This is a Docker setup for NadekoBot - -Usage ------ - -The docker image creates a volume to hold the NadekoBot application to be able to quickly edit the credentials and data. - -To initialize NadekoBot, run this: - -`docker run --name=NadekoBot -t reiuiji/nadekobot:stable` - -If you want to create a separate volume to handle the data for NadekoBot run the following. - -```Nadeko_DATA="NadekoBot-data" -docker volume create --name $Nadeko_DATA -docker run --name=NadekoBot -v $Nadeko_DATA:/opt -t reiuiji/nadekobot:stable -``` - -If you want to link the volumes you can link credentials.json and data individual. - -`-v /path/to/credentials.json:/opt/NadekoBot/src/NadekoBot/credentials.json` - -`-v /path/to/data:/opt/NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.0/data` - -If you want to use the latest developmental version then change tag from "stable" to "dev". - -`docker run --name=NadekoBot -t reiuiji/nadekobot:dev` - -Build ------ - -There are two versions of the docker container for stable and dev branches. Select dev if you want latest unstable build or select stable for latest stable build. - -Once you selected the build process you want now enter that directory and build the docker image. - -`docker build -t reiuiji/nadekobot .` - diff --git a/docker/stable/Dockerfile b/docker/stable/Dockerfile deleted file mode 100644 index c14a83b2..00000000 --- a/docker/stable/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM microsoft/dotnet:sdk -MAINTAINER Reiuiji - -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.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"]