-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
name: Docker Image CI | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- /** | ||
jobs: | ||
qemu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
version: "v0.5.1" | ||
buildkitd-flags: --debug | ||
- | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: Luxxy-GF | ||
password: ${{ secrets.REGISTRY_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: | | ||
ghcr.io/luxxy-gf/pterodactyl-qbittorrent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM debian:bookworm-slim | ||
|
||
# Path: Dockerfile | ||
|
||
RUN apt-get update && apt upgrade -y && apt-get install -y \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
libssl-dev \ | ||
pkg-config \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN useradd -m -d /home/container container | ||
|
||
USER container | ||
ENV USER=container HOME=/home/container | ||
WORKDIR /home/container | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
COPY --chmod=777 ./start.sh /start.sh | ||
COPY --chmod=777 ./qbittorrent /qbittorrent | ||
CMD [ "/bin/bash", "/entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
app: | ||
entrypoint: | ||
- sleep | ||
- infinity | ||
image: docker/dev-environments-default:stable-1 | ||
init: true | ||
volumes: | ||
- type: bind | ||
source: /var/run/docker.sock | ||
target: /var/run/docker.sock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
cd /home/container || exit 1 | ||
|
||
# Configure colors | ||
CYAN='\033[0;36m' | ||
RESET_COLOR='\033[0m' | ||
|
||
# Replace Startup Variables | ||
# shellcheck disable=SC2086 | ||
echo -e "${CYAN}STARTUP /home/container: /start.sh ${RESET_COLOR}" | ||
# Run the Server | ||
# shellcheck disable=SC2086 | ||
|
||
eval '/start.sh' |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
#Path: start.sh | ||
|
||
echo -e "Starting the server" | ||
|
||
# Start the first process | ||
|
||
/qbittorrent --webui-port=${SERVER_PORT} --profile=/home/container/.config/qBittorrent/ --configuration=/home/container/.config/qBittorrent/ --save-path /home/container/downloads/ | ||
|