This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
f5c1346
commit 8cd0ee5
Showing
4 changed files
with
82 additions
and
5 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,47 @@ | ||
.git/ | ||
.pytest_cache/ | ||
.tox/ | ||
.coverage | ||
.gitignore | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
*.swp | ||
*.swo | ||
*~ | ||
*.orig | ||
*.egg | ||
._* | ||
*.log | ||
.DS_Store | ||
pip-log.txt | ||
build/* | ||
dist/* | ||
tmp/* | ||
.tmp/* | ||
env/* | ||
_build/* | ||
*results.xml | ||
.vagrant | ||
.idea | ||
.cache | ||
*.mo | ||
EGG-INFO | ||
.eggs/ | ||
.coverage | ||
*settings.yaml | ||
local-settings.yaml | ||
simulate_metadata_event.py | ||
simulate_completes_event.py | ||
scripts/*.json | ||
capn.egg-info/* | ||
.tox/* | ||
.pytest_cache/ | ||
htmlcov/* | ||
tags | ||
venv/ | ||
/capn_release.html | ||
*egg-info/ | ||
TODO | ||
volumes/ | ||
Makefile |
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,21 @@ | ||
# docker build -t manga . | ||
# docker run manga | ||
|
||
FROM python:3.8-slim-bullseye | ||
|
||
|
||
WORKDIR /app | ||
COPY . /app | ||
|
||
ENV PYTHONPATH=/app | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y --no-install-recommends install gcc libxml2-dev libxslt-dev python3-dev python3-lxml \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
RUN pip install --no-cache-dir --upgrade pip \ | ||
&& pip install --no-cache-dir -r dev-requirements.txt | ||
|
||
# ENTRYPOINT ["python3", "scraper/"] |
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,9 @@ | ||
|
||
build: | ||
docker build -t manga:latest . | ||
|
||
run: | ||
docker run -v $(PWD):/app -p 4444:4444 --rm manga:latest python3 scraper/ $(ARGS) | ||
|
||
test: | ||
docker run -v $(PWD):/app --rm manga:latest python3 -m pytest tests/ |
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