File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 11org : " drycc"
22pull_policy : " Always"
3- docker_tag : canary
3+ docker_tag : " canary"
4+ docker_registry : " "
45# limits_cpu: "100m"
56# limits_memory: "50Mi"
67
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM redis:5-alpine
22
33COPY . /
44
5+ RUN chown -R redis:redis /etc/redis
6+
57USER redis
68
79CMD ["/bin/boot" ]
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ REDIS_PASSWORD_FILE=/var/run/secrets/drycc/redis/creds/password
99if [ -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
1414fi
1515
You can’t perform that action at this time.
0 commit comments