From 15f990500456abc71f2360893f7285ac514809f3 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Fri, 24 Jul 2020 13:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6hxsf=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9buile.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 95 -------------------------------------- .gitignore | 93 ------------------------------------- docker/build.sh | 2 +- docker/docker-compose.yaml | 11 ----- docker/n1.sh | 2 +- 5 files changed, 2 insertions(+), 201 deletions(-) delete mode 100644 .dockerignore delete mode 100644 .gitignore delete mode 100644 docker/docker-compose.yaml diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 2f1a185..0000000 --- a/.dockerignore +++ /dev/null @@ -1,95 +0,0 @@ -/docker -!/docker/entrypoint.sh -# Created by https://www.toptal.com/developers/gitignore/api/osx,linux,windows,visualstudiocode,composer -# Edit at https://www.toptal.com/developers/gitignore?templates=osx,linux,windows,visualstudiocode,composer - -### Composer ### -composer.phar -/vendor/ - -# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control -# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file -# composer.lock - -### Linux ### -*~ - -# temporary files which can be created if a process still has a handle open of a deleted file -.fuse_hidden* - -# KDE directory preferences -.directory - -# Linux trash folder which might appear on any partition or disk -.Trash-* - -# .nfs files are created when an open file is removed but is still being accessed -.nfs* - -### OSX ### -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -### VisualStudioCode ### -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -*.code-workspace - -### VisualStudioCode Patch ### -# Ignore all local history of files -.history - -### Windows ### -# Windows thumbnail cache files -Thumbs.db -Thumbs.db:encryptable -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# End of https://www.toptal.com/developers/gitignore/api/osx,linux,windows,visualstudiocode,composer diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 90b253e..0000000 --- a/.gitignore +++ /dev/null @@ -1,93 +0,0 @@ -/config/config.php -# Created by https://www.toptal.com/developers/gitignore/api/osx,linux,windows,visualstudiocode,composer -# Edit at https://www.toptal.com/developers/gitignore?templates=osx,linux,windows,visualstudiocode,composer - -### Composer ### -composer.phar - -# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control -# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file -# composer.lock - -### Linux ### -*~ - -# temporary files which can be created if a process still has a handle open of a deleted file -.fuse_hidden* - -# KDE directory preferences -.directory - -# Linux trash folder which might appear on any partition or disk -.Trash-* - -# .nfs files are created when an open file is removed but is still being accessed -.nfs* - -### OSX ### -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -### VisualStudioCode ### -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -*.code-workspace - -### VisualStudioCode Patch ### -# Ignore all local history of files -.history - -### Windows ### -# Windows thumbnail cache files -Thumbs.db -Thumbs.db:encryptable -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# End of https://www.toptal.com/developers/gitignore/api/osx,linux,windows,visualstudiocode,composer diff --git a/docker/build.sh b/docker/build.sh index 94ae479..051b04b 100644 --- a/docker/build.sh +++ b/docker/build.sh @@ -6,4 +6,4 @@ rm ./IYUUAutoReseed.zip cd /root/IYUUAutoReseed/docker chmod +x ./*.sh docker build -t iyuu:latest . -docker run -it -v /root/IYUUAutoReseed:/var/www -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest +docker run -it -v /root/IYUUAutoReseed:/IYUU -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml deleted file mode 100644 index 0bd7ff5..0000000 --- a/docker/docker-compose.yaml +++ /dev/null @@ -1,11 +0,0 @@ -version: "2.3" -services: - app: - image: hxsf/iyuuautoreseed - network_mode: host - environment: - - cron=0 * * * * - volumes: - - ./config:/IYUU/config - - ./torrent:/IYUU/torrent - restart: always diff --git a/docker/n1.sh b/docker/n1.sh index 1ff60c8..8299ae8 100644 --- a/docker/n1.sh +++ b/docker/n1.sh @@ -4,5 +4,5 @@ git clone https://gitee.com/ledc/IYUUAutoReseed.git cd /root/IYUUAutoReseed/docker chmod +x ./*.sh docker build -t iyuu:latest . -docker run -it -v /root/IYUUAutoReseed:/var/www -v /var/lib/qbittorrent/.local/share/data/qBittorrent/BT_backup:/BT_backup -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest +docker run -it -v /root/IYUUAutoReseed:/IYUU -v /var/lib/qbittorrent/.local/share/data/qBittorrent/BT_backup:/BT_backup -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest ./iyuu.sh \ No newline at end of file