Compare commits

...

5 commits

Author SHA1 Message Date
f
2eaa22ae1b feat: change maxmemory from env during deploy
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-11-23 11:40:23 -03:00
f
c8728df6e8 Merge branch 'antifascista' of ssh://gitea.nulo.in:420/Sutty/containers-skel into antifascista 2022-11-23 11:39:33 -03:00
f
c4d0c8ac35 feat: 3.17 upgrade 2022-11-23 10:58:48 -03:00
f
b0dadddbb0 fix: 3.16.3 bug release 2022-11-23 10:58:28 -03:00
f
c1e94bd27f fix: deprecate 3.13 2022-11-23 10:56:44 -03:00
2 changed files with 6 additions and 8 deletions

View file

@ -6,7 +6,7 @@ pipeline:
username: sutty username: sutty
repo: registry.nulo.in/sutty/redis repo: registry.nulo.in/sutty/redis
tags: tags:
- ${ALPINE_VERSION}-${MAX_MEMORY} - ${ALPINE_VERSION}
- latest - latest
build_args: build_args:
- MAX_MEMORY=${MAX_MEMORY} - MAX_MEMORY=${MAX_MEMORY}
@ -21,11 +21,8 @@ pipeline:
matrix: matrix:
include: include:
- MAX_MEMORY: "500mb" - MAX_MEMORY: "500mb"
ALPINE_VERSION: "3.16.2" ALPINE_VERSION: "3.17.0"
REDIS_VERSION: "7.0.5"
- MAX_MEMORY: "500mb"
ALPINE_VERSION: "3.16.3"
REDIS_VERSION: "7.0.4" REDIS_VERSION: "7.0.4"
- MAX_MEMORY: "100mb"
ALPINE_VERSION: "3.16.2"
REDIS_VERSION: "7.0.4"
- MAX_MEMORY: "100mb"
ALPINE_VERSION: "3.15.6"
REDIS_VERSION: "6.2.7"

View file

@ -5,6 +5,7 @@ run=/run/redis
case $1 in case $1 in
start) start)
install -dm 750 -o redis -g redis $run install -dm 750 -o redis -g redis $run
sed -re "s/^(maxmemory ).*/\1${MAX_MEMORY}/" -i /etc/redis.conf
su-exec redis /usr/bin/redis-server /etc/redis.conf su-exec redis /usr/bin/redis-server /etc/redis.conf
;; ;;
stop) stop)