From 6319bd46a3b662435ef9b0315f58470dc1bbc002 Mon Sep 17 00:00:00 2001 From: gyurix Date: Fri, 19 Jul 2024 14:18:29 +0200 Subject: [PATCH] added initial files and planing flow --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5c0699f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +ARG BUILDPLATFORM +FROM --platform $BUILDPLATFORM alpine:latest AS redis-source + +ARG REDIS_VERSION="7.2.4" +ARG REDIS_DOWNLOAD_URL="http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz" +RUN apk add --update --no-cache --virtual build-deps gcc make linux-headers musl-dev tar openssl-dev pkgconfig +RUN wget -O redis.tar.gz "$REDIS_DOWNLOAD_URL" && \ + mkdir -p /usr/src/redis && \ + tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1 && \ + cd /usr/src/redis/src && \ + make BUILD_TLS=yes MALLOC=libc redis-cli + +ARG BUILDPLATFORM +FROM --platform $BUILDPLATFORM alpine:latest + +COPY --from=redis-source /usr/src/redis/src/redis-cli /usr/bin/redis-cli +RUN chmod +x /usr/bin/redis-cli + +RUN apk add --update --no-cache docker-cli wget curl dos2unix jq openssl git + +COPY scripts/scheduler/*.sh /scripts/ +RUN find ./scripts -name "*.sh" | xargs dos2unix +RUN ["chmod", "+x", "-R", "/scripts/"] + +ENTRYPOINT ["/scripts/entrypoint.sh"]