only install phantomjs for x86
This commit is contained in:
parent
bdddc60738
commit
5b8d5c74cf
2 changed files with 9 additions and 3 deletions
|
|
@ -20,12 +20,15 @@ RUN mkdir -p /config && \
|
||||||
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||||
ffmpeg=5.1.2-r8 && \
|
ffmpeg=5.1.2-r8 && \
|
||||||
ffmpeg -version && \
|
ffmpeg -version && \
|
||||||
# Install phantomjs, ensure it is properly installed
|
# Install phantomjs if using x86_64, ensure it is properly installed
|
||||||
cd /usr/share && \
|
if [[ $(uname -m) == "x86_64" ]]; then \
|
||||||
|
cd /usr/share && \
|
||||||
curl -L https://github.com/Overbryd/docker-phantomjs-alpine/releases/download/2.11/phantomjs-alpine-x86_64.tar.bz2 | tar xj && \
|
curl -L https://github.com/Overbryd/docker-phantomjs-alpine/releases/download/2.11/phantomjs-alpine-x86_64.tar.bz2 | tar xj && \
|
||||||
ln -s /usr/share/phantomjs/phantomjs /usr/bin/phantomjs && \
|
ln -s /usr/share/phantomjs/phantomjs /usr/bin/phantomjs && \
|
||||||
|
echo "Phantom JS version:" && \
|
||||||
phantomjs --version && \
|
phantomjs --version && \
|
||||||
cd - && \
|
cd -; \
|
||||||
|
fi && \
|
||||||
# Install ytdl-sub, ensure it is installed properly
|
# Install ytdl-sub, ensure it is installed properly
|
||||||
pip install --no-cache-dir ytdl_sub-*.whl && \
|
pip install --no-cache-dir ytdl_sub-*.whl && \
|
||||||
ytdl-sub -h && \
|
ytdl-sub -h && \
|
||||||
|
|
|
||||||
|
|
@ -111,4 +111,7 @@ class TestChapters:
|
||||||
output_directory=output_directory,
|
output_directory=output_directory,
|
||||||
dry_run=dry_run,
|
dry_run=dry_run,
|
||||||
expected_download_summary_file_name="plugins/chapters/test_chapters_from_comments.json",
|
expected_download_summary_file_name="plugins/chapters/test_chapters_from_comments.json",
|
||||||
|
ignore_md5_hashes_for=[
|
||||||
|
"JMC/JMC - Move 78 - Automated Improvisation [Full Album].mp4"
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue