switched from drone to gitea actions
Some checks failed
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (arm64) (push) Successful in 2m1s
Container Publish / build-image (amd64) (push) Successful in 4m7s
Container Publish / update docker manifest (push) Successful in 10s
Vulnerability Scan / Daily Vulnerability Scan (arm64) (push) Failing after 36s
Vulnerability Scan / Daily Vulnerability Scan (amd64) (push) Failing after 2m1s

This commit is contained in:
2025-06-13 08:19:45 +02:00
parent a569e48273
commit 4f9dd8f51f
6 changed files with 140 additions and 45 deletions

20
src/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM debian:bullseye-slim
COPY logrotate-cron /etc/logrotate.d
COPY entrypoint.sh /
RUN \
mkdir /scripts /crontabs && \
apt update && \
DEBIAN_FRONTEND=noninteractive apt -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt -y install wget python3 python3-pip python3-dateutil python3-requests python3-bs4 logrotate unzip tzdata && \
pip3 install fdb mysql-connector-python==8.0.29 telepot caldav && \
wget -O /tmp/bw.zip 'https://vault.bitwarden.com/download/?app=cli&platform=linux' && \
unzip /tmp/bw.zip -d /usr/local/bin && \
chmod +x /usr/local/bin/bw && \
rm /tmp/bw.zip
ENV CRONTAB=""
ENV TZ="Europe/Rome"
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]

3
src/entrypoint.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
/usr/sbin/cron -f -L /var/log/cron.log

8
src/logrotate-cron Normal file
View File

@@ -0,0 +1,8 @@
/var/log/cron.log {
rotate 4
compress
delaycompress
missingok
notifempty
sharedscripts
}