No need to run the setup when build the container; logging.
This commit is contained in:
parent
3cbb67e680
commit
5ba3b49090
@ -32,9 +32,6 @@ ENV DB_NAME ttrss
|
||||
ENV DB_USER ttrss
|
||||
ENV DB_PASS ttrss
|
||||
|
||||
# Only run the setup once.
|
||||
RUN set -xe && /srv/setup-ttrss.sh
|
||||
|
||||
# Clean up.
|
||||
RUN set -xe && apk del --progress --purge && rm -rf /var/cache/apk/*
|
||||
|
||||
|
||||
@ -50,11 +50,13 @@ setup_ttrss()
|
||||
if [ ! -d ${TTRSS_PATH} ]; then
|
||||
mkdir -p ${TTRSS_PATH}
|
||||
if [ -n "$TTRSS_GIT_TAG" ]; then
|
||||
echo "Setup: Setting up Tiny Tiny RSS '$TTRSS_GIT_TAG' ..."
|
||||
cd ${TTRSS_PATH}
|
||||
git init .
|
||||
git fetch --depth 1 https://tt-rss.org/gitlab/fox/tt-rss.git refs/tags/${TTRSS_GIT_TAG}:refs/tags/${TTRSS_GIT_TAG}
|
||||
git fetch --depth=1 https://tt-rss.org/gitlab/fox/tt-rss.git refs/tags/${TTRSS_GIT_TAG}:refs/tags/${TTRSS_GIT_TAG}
|
||||
git checkout tags/${TTRSS_GIT_TAG}
|
||||
else
|
||||
echo "Setup: Setting up Tiny Tiny RSS (latest revision) ..."
|
||||
git clone --depth=1 https://tt-rss.org/gitlab/fox/tt-rss.git ${TTRSS_PATH}
|
||||
fi
|
||||
git clone --depth=1 https://github.com/sepich/tt-rss-mobilize.git ${TTRSS_PATH}/plugins/mobilize
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user