install specific redis version
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-05-02 15:28:36 -03:00
parent 68bc2bf48e
commit f3827028f4
2 changed files with 8 additions and 5 deletions

View file

@ -20,4 +20,6 @@ matrix:
MAX_MEMORY: MAX_MEMORY:
- "100mb" - "100mb"
ALPINE_VERSION: ALPINE_VERSION:
- 3.15.0 - 3.15.4
REDIS_VERSION:
- 6.2.7

View file

@ -3,10 +3,10 @@ ARG ALPINE_VERSION=3.13.6
ARG BASE_IMAGE=sutty/monit ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION} AS build FROM ${BASE_IMAGE}:${ALPINE_VERSION} AS build
MAINTAINER "f <f@sutty.nl>" MAINTAINER "f <f@sutty.nl>"
ARG REDIS_VERSION=6.2.7
ARG MAX_MEMORY=100mb
ARG MAX_MEMORY RUN apk add --no-cache redis~${REDIS_VERSION}
RUN apk add --no-cache redis su-exec
RUN sed -re "/^bind /d" -i /etc/redis.conf RUN sed -re "/^bind /d" -i /etc/redis.conf
RUN sed -re "/^protected-mode /d" -i /etc/redis.conf RUN sed -re "/^protected-mode /d" -i /etc/redis.conf
@ -23,8 +23,9 @@ ARG ALPINE_VERSION=3.13.6
ARG BASE_IMAGE=sutty/monit ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION} FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "f <f@sutty.nl>" MAINTAINER "f <f@sutty.nl>"
ARG REDIS_VERSION=6.2.7
RUN apk add --no-cache redis RUN apk add --no-cache redis~${REDIS_VERSION} su-exec
COPY --from=build /etc/redis.conf /etc/redis.conf COPY --from=build /etc/redis.conf /etc/redis.conf
COPY ./monit.conf /etc/monit.d/redis.conf COPY ./monit.conf /etc/monit.d/redis.conf