Skip to content

Commit

Permalink
Try s6 again
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTyton committed May 29, 2024
1 parent dd4d1e4 commit 4a2673c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
25 changes: 13 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ RUN echo "*** Install FFF ***" && \
python3 -m pip --no-cache-dir install --extra-index-url https://testpypi.python.org/pypi FanFicFare==${FFF_RELEASE}; \
fi

#ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
#RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
#ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp
#RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
#ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
#RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
#ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
#RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz

RUN echo "**** cleanup ****" && \
rm -rf \
Expand All @@ -68,14 +68,15 @@ RUN echo "**** cleanup ****" && \

COPY root/ /

#RUN chmod -R +777 /etc/cont-init.d/
#RUN chmod -R +777 /etc/s6-overlay/
RUN chmod -R +777 /etc/cont-init.d/
RUN chmod -R +777 /etc/s6-overlay/
RUN chmod -R +777 /app/

# Temporary Workaround

VOLUME /config

WORKDIR /config

#ENTRYPOINT ["/init"]
CMD python /app/fanficdownload.py --config="/config/config.toml"
ENTRYPOINT ["/init"]
#CMD python -u /app/fanficdownload.py --config="/config/config.toml"
2 changes: 1 addition & 1 deletion release-versions/latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.05.28-1
2024.05.28-2
2 changes: 1 addition & 1 deletion root/app/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

python /app/fanficdownload.py --config="/config/config.toml"
python -u /app/fanficdownload.py --config="/config/config.toml"
1 change: 1 addition & 0 deletions root/app/url_ingester.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def get_urls(self) -> set[str]:
except Exception as e:
logging.disable(old_level)
ff_logging.log_failure(f"Failed to get URLs: {e}")
# Restore the old logging level
logging.disable(old_level)
return urls

Expand Down

0 comments on commit 4a2673c

Please sign in to comment.