diff --git a/build.sh b/build.sh deleted file mode 100755 index b7f27a3..0000000 --- a/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -docker build -t nijiholo_bot . \ No newline at end of file diff --git a/run.sh b/run.sh deleted file mode 100755 index 5cdf8c4..0000000 --- a/run.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -mkdir -p run -docker run -v ./run:/app/run --name bot -it nijiholo_bot diff --git a/run_detached.sh b/run_detached.sh deleted file mode 100755 index 847b63f..0000000 --- a/run_detached.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -mkdir -p run -docker run -v ./run:/app/run --name bot -d nijiholo_bot diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..8a36b64 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sudo docker build -t nijiholo_bot "$(dirname `realpath "$0"`)/.." \ No newline at end of file diff --git a/scripts/delete.sh b/scripts/delete.sh new file mode 100755 index 0000000..fd1e212 --- /dev/null +++ b/scripts/delete.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +sudo docker container rm bot +sudo docker image rm nijiholo_bot \ No newline at end of file diff --git a/scripts/run.sh b/scripts/run.sh new file mode 100755 index 0000000..dda7aaf --- /dev/null +++ b/scripts/run.sh @@ -0,0 +1,5 @@ +#!/bin/sh +CURPATH="$(dirname `realpath "$0"`)/.." +cd "$CURPATH" +mkdir -p run +sudo docker run -v "$CURPATH/run:/app/run" --name bot -it nijiholo_bot diff --git a/scripts/run_detached.sh b/scripts/run_detached.sh new file mode 100755 index 0000000..c605946 --- /dev/null +++ b/scripts/run_detached.sh @@ -0,0 +1,5 @@ +#!/bin/sh +CURPATH="$(dirname `realpath "$0"`)/.." +cd "$CURPATH" +mkdir -p run +sudo docker run -v "$CURPATH/run:/app/run" --name bot -d nijiholo_bot