This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[minor] Add support for Docker and create a docker image (#26)
- Loading branch information
1 parent
285ec61
commit 635fd14
Showing
9 changed files
with
237 additions
and
55 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,15 @@ | ||
.git | ||
.gitignore | ||
.github | ||
.gitattributes | ||
|
||
.bumpversion.cfg | ||
.grenrc.yml | ||
.pre-commit-config.yaml | ||
|
||
CHANGELOG.md | ||
README.md | ||
|
||
dist/ | ||
build/ | ||
qBitrr.egg-info/ |
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,7 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily |
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
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,24 @@ | ||
# Pin Python to the latest supported version | ||
# (This avoid it auto updating to a higher untested version) | ||
FROM pypy:3.8-7.3.7 | ||
|
||
LABEL Maintainer="Draper" | ||
|
||
# Env used by the script to determine if its inside a docker - | ||
# if this is set to 69420 it will change the working dir for docker specific values | ||
ENV QBITRR_DOCKER_RUNNING=69420 | ||
|
||
COPY . /app | ||
|
||
WORKDIR /app/ | ||
|
||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN pypy -m ensurepip --default-pip && \ | ||
pip install -U pip wheel && \ | ||
pip install -e . | ||
|
||
WORKDIR /config | ||
|
||
ENTRYPOINT ["pypy", "-m", "qBitrr.main"] |
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
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
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
Oops, something went wrong.