marcel-dempers / docker-development-youtube-series

5.3k stars 4.09k forks source link

[Redis/Kubernetes] Unexpected operator in non alpine image #168

Closed Vijay-Nirmal closed 1 year ago

Vijay-Nirmal commented 2 years ago

Below line of codes will through [: redis-0: unexpected operator exception in non alpine images. Please change it to if [ "$(hostname)" = "redis-0" ]; (Single =)

https://github.com/marcel-dempers/docker-development-youtube-series/blob/c484d2f39f7eb8d6eb01a9dfb66fbcfb07a36317/storage/redis/kubernetes/redis/redis-statefulset.yaml#L29

https://github.com/marcel-dempers/docker-development-youtube-series/blob/c484d2f39f7eb8d6eb01a9dfb66fbcfb07a36317/storage/redis/kubernetes/sentinel/sentinel-statefulset.yaml#L29

image

marcel-dempers commented 1 year ago

Thanks, fixed in PR https://github.com/marcel-dempers/docker-development-youtube-series/pull/171