Skip to content

Commit

Permalink
Add redis-sentinel-6.2
Browse files Browse the repository at this point in the history
Signed-off-by: Furkan Türkal <furkan.turkal@chainguard.dev>
  • Loading branch information
Dentrax committed Jul 26, 2023
1 parent c00815e commit 9032559
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ newrelic-infrastructure-agent
kaf
dask-gateway
http-echo
redis-sentinel-6.2-compat
src
prometheus-redis-exporter
guac
Expand Down
68 changes: 68 additions & 0 deletions redis-sentinel-6.2-compat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#nolint:valid-pipeline-git-checkout-commit,valid-pipeline-git-checkout-tag
package:
name: redis-sentinel-6.2-compat
version: 6.2.13
epoch: 0
description: "Redis Sentinel provides high availability for Redis."
copyright:
- license: Apache-2.0
dependencies:
runtime:
- redis-cli-6.2
- redis-sentinel-6.2
- bash
- busybox
- coreutils
- posix-libc-utils

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- bash
- curl
- openssl
- procps

pipeline:
- uses: git-checkout
with:
branch: main
repository: https://github.com/bitnami/containers

- uses: patch
with:
patches: remove-user-check.patch

- runs: |
mkdir -p "${{targets.destdir}}"/opt/bitnami
mkdir -p "${{targets.destdir}}"/opt/bitnami/licenses
mkdir -p "${{targets.destdir}}"/opt/bitnami/scripts
mkdir -p "${{targets.destdir}}"/opt/bitnami/etc
mkdir -p "${{targets.destdir}}"/opt/bitnami/redis-sentinel/bin
mkdir -p "${{targets.destdir}}"/opt/bitnami/redis-sentinel/logs
mkdir -p "${{targets.destdir}}"/opt/bitnami/redis-sentinel/tmp
mkdir -p "${{targets.destdir}}"/bitnami/redis-sentinel/conf
cd bitnami/redis-sentinel/6.2/debian-11
cp -R ./prebuildfs/opt/bitnami/* ${{targets.destdir}}/opt/bitnami/
cp -R ./rootfs/opt/bitnami/scripts ${{targets.destdir}}/opt/bitnami/
chmod g+rwX "${{targets.destdir}}"/opt/bitnami
- runs: |
mkdir -p "${{targets.destdir}}"/opt/bitnami/redis-sentinel/etc
cp /home/build/sentinel.conf "${{targets.destdir}}"/opt/bitnami/redis-sentinel/etc/sentinel.conf
- runs: |
ln -sf /usr/bin/redis-cli "${{targets.destdir}}"/opt/bitnami/redis-sentinel/bin/redis-cli
- uses: strip

update:
enabled: false
manual: true # This requires manual updates because of the upstream repo does not release tags and branches.
github:
identifier: bitnami/containers
14 changes: 14 additions & 0 deletions redis-sentinel-6.2-compat/remove-user-check.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/bitnami/redis-sentinel/6.2/debian-11/rootfs/opt/bitnami/scripts/redis-sentinel/setup.sh b/bitnami/redis-sentinel/6.2/debian-11/rootfs/opt/bitnami/scripts/redis-sentinel/setup.sh
index d870e24..711bc13 100755
--- a/bitnami/redis-sentinel/6.2/debian-11/rootfs/opt/bitnami/scripts/redis-sentinel/setup.sh
+++ b/bitnami/redis-sentinel/6.2/debian-11/rootfs/opt/bitnami/scripts/redis-sentinel/setup.sh
@@ -16,9 +16,6 @@ set -o pipefail
. /opt/bitnami/scripts/libredissentinel.sh
. /opt/bitnami/scripts/libos.sh

-# Create daemon user if needed
-am_i_root && ensure_user_exists "$REDIS_SENTINEL_DAEMON_USER" --group "$REDIS_SENTINEL_DAEMON_GROUP"
-
# Ensure redis environment variables are valid
redis_validate

Loading

0 comments on commit 9032559

Please sign in to comment.