Skip to content

Commit

Permalink
PRIME-2787 Add tini init to Redis pods to cleanup zombie processes (#…
Browse files Browse the repository at this point in the history
…2613)

* custopmize redis image

* change image tag

* get image from rhel8/redis-6

* change the user
  • Loading branch information
rshourou authored Nov 5, 2024
1 parent d8610bb commit 529064e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions infrastructure/redis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM rhel8/redis-6

# Redis image based on Software Collections packages
#
# Volumes:
# * /var/lib/redis/data - Datastore for Redis
# Environment:
# * $REDIS_PASSWORD - Database password

EXPOSE 6379
USER root
# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--", "container-entrypoint"]
CMD ["run-redis"]

0 comments on commit 529064e

Please sign in to comment.