runs build_loglog with bash
This commit is contained in:
+5
-4
@@ -22,9 +22,10 @@ RUN crontab -l > crontab.tmp \
|
|||||||
&& crontab crontab.tmp \
|
&& crontab crontab.tmp \
|
||||||
&& rm crontab.tmp
|
&& rm crontab.tmp
|
||||||
|
|
||||||
# gcc is a dependency for agate
|
# bash is needed to run build_loglog.bash
|
||||||
# busybox-openrc provides rc-service, which runs crond
|
# busybox-openrc provides rc-service, which runs crond
|
||||||
RUN apk --no-cache add gcc busybox-openrc
|
# gcc is a dependency for agate
|
||||||
|
RUN apk --no-cache add bash busybox-openrc gcc
|
||||||
RUN rc-service crond start && rc-update add crond
|
RUN rc-service crond start && rc-update add crond
|
||||||
COPY --from=agate /root/.cargo/bin/agate /usr/local/bin/agate
|
COPY --from=agate /root/.cargo/bin/agate /usr/local/bin/agate
|
||||||
COPY --from=comitium /usr/local/bin/comitium /usr/local/bin/comitium
|
COPY --from=comitium /usr/local/bin/comitium /usr/local/bin/comitium
|
||||||
@@ -34,9 +35,9 @@ COPY feeds.txt feeds.txt
|
|||||||
RUN while read feed; do \
|
RUN while read feed; do \
|
||||||
comitium add --data comitium-data/ "$feed"; \
|
comitium add --data comitium-data/ "$feed"; \
|
||||||
done <feeds.txt
|
done <feeds.txt
|
||||||
COPY build_loglog.sh build_loglog.sh
|
COPY build_loglog.bash build_loglog.bash
|
||||||
COPY content content
|
COPY content content
|
||||||
RUN /bin/bash ./build_loglog.sh
|
RUN ./build_loglog.bash
|
||||||
|
|
||||||
CMD \
|
CMD \
|
||||||
( sleep 5; comitium refresh --data comitium-data/ ) & \
|
( sleep 5; comitium refresh --data comitium-data/ ) & \
|
||||||
|
|||||||
@@ -126,6 +126,6 @@ for ((i=${#dates[@]}-1; i>=0; i--)); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Cleaning up temporary files..."
|
echo "Cleaning up temporary files..."
|
||||||
rm -rd "$TMP"
|
rm -rf "$TMP"
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
Reference in New Issue
Block a user