diff --git a/cron/.gitignore b/cron/.gitignore new file mode 100644 index 00000000..af0de72b --- /dev/null +++ b/cron/.gitignore @@ -0,0 +1,6 @@ +logs/* +cron/dev/cron.d/*.std* +cron/qa/cron.d/*.std* +cron/prod/cron.d/*.std* +crontabs/*.db +crontabs/logs/* \ No newline at end of file diff --git a/cron/crontabs/.placeholder b/cron/crontabs/.placeholder new file mode 100644 index 00000000..e69de29b diff --git a/cron/crontabs/logs/.placeholder b/cron/crontabs/logs/.placeholder new file mode 100644 index 00000000..e69de29b diff --git a/cron/dev/cron.d/root b/cron/dev/cron.d/root new file mode 100644 index 00000000..4310921c --- /dev/null +++ b/cron/dev/cron.d/root @@ -0,0 +1,5 @@ +* * * * * ((({ ; } | tee /etc/crontabs/ralOdkkC3eDKO3gh.stdout) 3>&1 1>&2 2>&3 | tee /etc/crontabs/ralOdkkC3eDKO3gh.stderr) 3>&1 1>&2 2>&3) +*/30 * * * * ((({ /usr/bin/curl -o /var/log/wrenchboard_cron.log https://apigate.nebula.g1.wrenchboard.com/en/wrench/api/v1/cron; } | tee /etc/crontabs/BWiNQEUyST1NQPpV.stdout) 3>&1 1>&2 2>&3 | tee /etc/crontabs/BWiNQEUyST1NQPpV.stderr) 3>&1 1>&2 2>&3); if test -f /etc/crontabs/BWiNQEUyST1NQPpV.stderr; then date >> "/crontab-ui/crontabs/logs/BWiNQEUyST1NQPpV.log"; cat /etc/crontabs/BWiNQEUyST1NQPpV.stderr >> "/crontab-ui/crontabs/logs/BWiNQEUyST1NQPpV.log"; fi; if test -f /etc/crontabs/BWiNQEUyST1NQPpV.stdout; then date >> "/crontab-ui/crontabs/logs/BWiNQEUyST1NQPpV.stdout.log"; cat /etc/crontabs/BWiNQEUyST1NQPpV.stdout >> "/crontab-ui/crontabs/logs/BWiNQEUyST1NQPpV.stdout.log"; fi +*/10 * * * * ((({ /usr/bin/curl -o /var/log/wrenchboard_cron.log https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1/cron; } | tee /etc/crontabs/OXokwkGTFLjMDEs1.stdout) 3>&1 1>&2 2>&3 | tee /etc/crontabs/OXokwkGTFLjMDEs1.stderr) 3>&1 1>&2 2>&3); if test -f /etc/crontabs/OXokwkGTFLjMDEs1.stderr; then date >> "/crontab-ui/crontabs/logs/OXokwkGTFLjMDEs1.log"; cat /etc/crontabs/OXokwkGTFLjMDEs1.stderr >> "/crontab-ui/crontabs/logs/OXokwkGTFLjMDEs1.log"; fi; if test -f /etc/crontabs/OXokwkGTFLjMDEs1.stdout; then date >> "/crontab-ui/crontabs/logs/OXokwkGTFLjMDEs1.stdout.log"; cat /etc/crontabs/OXokwkGTFLjMDEs1.stdout >> "/crontab-ui/crontabs/logs/OXokwkGTFLjMDEs1.stdout.log"; fi +*/5 * * * * ((({ /usr/bin/curl -o /var/log/wrenchboard.log https://wrenchboard.com/; } | tee /etc/crontabs/bs9sfJ5FTzl4YkvW.stdout) 3>&1 1>&2 2>&3 | tee /etc/crontabs/bs9sfJ5FTzl4YkvW.stderr) 3>&1 1>&2 2>&3) +* * * * * ((({ /bin/sh -c echo "`date >> /var/log/1min.log`"; } | tee /etc/crontabs/dQWYEeRnf2ZXvFbQ.stdout) 3>&1 1>&2 2>&3 | tee /etc/crontabs/dQWYEeRnf2ZXvFbQ.stderr) 3>&1 1>&2 2>&3) diff --git a/cron/docker-compose.yml b/cron/docker-compose.yml new file mode 100644 index 00000000..3042a1c1 --- /dev/null +++ b/cron/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3" + +services: + wrenchboard-cron: + image: alseambusher/crontab-ui:0.3.16 + hostname: wrenchboard-cron + container_name: wrenchboard-cron + privileged: true + restart: unless-stopped + environment: + - BASIC_AUTH_USER=admin + - BASIC_AUTH_PWD=wrenchboard + volumes: + - ./crontabs/:/crontab-ui/crontabs/ + - ./logs:/var/log + - ./${CRON_ENV:-dev}/cron.d:/etc/crontabs + ports: + - 8000:8000 \ No newline at end of file diff --git a/cron/prod/cron.d/root b/cron/prod/cron.d/root new file mode 100644 index 00000000..e69de29b diff --git a/cron/qa/cron.d/root b/cron/qa/cron.d/root new file mode 100644 index 00000000..e69de29b