-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from openzim/new_ui_init
Move scraper to subfolder and initialize new Vue.js project
- Loading branch information
Showing
69 changed files
with
3,017 additions
and
113 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,50 @@ | ||
FROM node:20-alpine as zimui | ||
|
||
WORKDIR /src | ||
COPY zimui /src | ||
RUN yarn install --frozen-lockfile | ||
RUN yarn build | ||
|
||
FROM python:3.12-bookworm | ||
LABEL org.opencontainers.image.source https://github.com/openzim/youtube | ||
|
||
# Install necessary packages | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
locales-all \ | ||
wget \ | ||
unzip \ | ||
ffmpeg \ | ||
aria2 \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& python -m pip install --no-cache-dir -U \ | ||
pip | ||
&& apt-get install -y --no-install-recommends \ | ||
locales-all \ | ||
wget \ | ||
unzip \ | ||
ffmpeg \ | ||
aria2 \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& python -m pip install --no-cache-dir -U \ | ||
pip | ||
|
||
# Custom entrypoint | ||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||
COPY scraper/entrypoint.sh /usr/local/bin/entrypoint.sh | ||
ENTRYPOINT ["entrypoint.sh"] | ||
RUN mkdir -p /output | ||
WORKDIR /output | ||
|
||
# Copy pyproject.toml and its dependencies | ||
COPY pyproject.toml README.md openzim.toml /src/ | ||
COPY src/youtube2zim/__about__.py /src/src/youtube2zim/__about__.py | ||
COPY README.md /src/ | ||
COPY scraper/pyproject.toml scraper/openzim.toml /src/scraper/ | ||
COPY scraper/src/youtube2zim/__about__.py /src/scraper/src/youtube2zim/__about__.py | ||
|
||
# Install Python dependencies | ||
RUN pip install --no-cache-dir /src | ||
RUN pip install --no-cache-dir /src/scraper | ||
|
||
# Copy code + associated artifacts | ||
COPY src /src/src | ||
COPY scraper/src /src/scraper/src | ||
COPY *.md LICENSE CHANGELOG /src/ | ||
|
||
# Install + cleanup | ||
RUN pip install --no-cache-dir /src \ | ||
&& rm -rf /src | ||
RUN pip install --no-cache-dir /src/scraper \ | ||
&& rm -rf /src/scraper | ||
|
||
# Copy zimui build output | ||
COPY --from=zimui /src/dist /src/zimui | ||
|
||
ENV YOUTUBE_ZIMUI_DIST=/src/zimui | ||
|
||
CMD ["youtube2zim", "--help"] |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -33,4 +33,3 @@ msgstr "Page {current}/{total}" | |
#: youtube2zim/scraper.py:872 | ||
msgid "Back to top" | ||
msgstr "Haut" | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.