Skip to content

Commit 69d0962

Browse files
committed
feat(charts): adding external docker_registry support
1 parent 0189a59 commit 69d0962

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

charts/redis/templates/logger-redis-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
spec:
2222
containers:
2323
- name: drycc-logger-redis
24-
image: quay.io/{{ .Values.org }}/redis:{{ .Values.docker_tag }}
24+
image: {{.Values.docker_registry}}{{ .Values.org }}/redis:{{ .Values.docker_tag }}
2525
imagePullPolicy: {{ .Values.pull_policy }}
2626
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
2727
resources:

charts/redis/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
org: "drycc"
22
pull_policy: "Always"
3-
docker_tag: canary
3+
docker_tag: "canary"
4+
docker_registry: ""
45
# limits_cpu: "100m"
56
# limits_memory: "50Mi"
67

rootfs/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ FROM redis:5-alpine
22

33
COPY . /
44

5+
RUN chown -R redis:redis /etc/redis
6+
57
USER redis
68

79
CMD ["/bin/boot"]

rootfs/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ REDIS_PASSWORD_FILE=/var/run/secrets/drycc/redis/creds/password
99
if [ -e $REDIS_PASSWORD_FILE ]; then
1010
REDIS_PASSWORD="$(cat /var/run/secrets/drycc/redis/creds/password)"
1111
if [ ! -z "$REDIS_PASSWORD" ]; then
12-
echo "requirepass $REDIS_PASSWORD" >> REDIS_CONFIG_FILE
12+
echo "requirepass $REDIS_PASSWORD" >> $REDIS_CONFIG_FILE
1313
fi
1414
fi
1515

0 commit comments

Comments
 (0)