diff --git a/tasks/Dockerfile b/tasks/Dockerfile deleted file mode 100644 index e387a1a..0000000 --- a/tasks/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM alpine:3.14 - -RUN apk add --update --no-cache \ - docker-compose \ - docker - -COPY entrypoint.sh /entrypoint -RUN chmod +x /entrypoint - -ENTRYPOINT ["/entrypoint"] diff --git a/tasks/Makefile b/tasks/Makefile deleted file mode 100644 index ffc1b47..0000000 --- a/tasks/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -IMG_NAME = tasks -REGISTRY=registry.monotremata.xyz:443 - -IMG=$(REGISTRY)/$(IMG_NAME) - -.PHONY: build build-nc push - -build: Dockerfile entrypoint.sh - docker build -t $(IMG) . - -push: build - docker image push $(IMG) - -build-nc: Dockerfile entrypoint.sh - docker build --no-cache -t $(IMG) diff --git a/tasks/entrypoint.sh b/tasks/entrypoint.sh deleted file mode 100644 index c8dacc9..0000000 --- a/tasks/entrypoint.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -set -e - -[ -f /tasks/tasks.cron ] && crontab /tasks/tasks.cron - -if [ -n "$*" ]; then - exec "$@" -else - exec crond -f -L /dev/stdout -fi