Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in redis configuration - versionning change #196

Closed
valvin1 opened this issue Feb 15, 2022 · 6 comments · Fixed by #197
Closed

error in redis configuration - versionning change #196

valvin1 opened this issue Feb 15, 2022 · 6 comments · Fixed by #197
Labels
Bug Something isn't working

Comments

@valvin1
Copy link
Contributor

valvin1 commented Feb 15, 2022

hello,

unfortunately 2021.09 isn't very stable and I should remove my imagePullPolicy: Always configuration.

I think this commit introduce a new bug in my configuration.

Configuring Redis as session handler
/entrypoint.sh: 52: Bad substitution

I have net yet seen if I should update my configuration but I think it would be nice to have a sort of versionning in image tag. If I deploy a 2021.09 it should be always the same image. If I want a new feature or a fix it should be 2021.09-1 or something like this?

What do you think of this idea ?

@valvin1
Copy link
Contributor Author

valvin1 commented Feb 15, 2022

i'm looking at the error itself and don't understand what is wrong. It breaks at https://github.com/friendica/docker/blob/stable/docker-entrypoint.sh#L52 and my REDIS_HOST is set to friendica-redis.friendica.svc.cluster.local

when i do the following command on my computer I don't have any issue:

sh-5.1$ export REDIS_HOST=friendica-redis.friendica.svc.cluster.local
sh-5.1$ echo ${REDIS_HOST:0:1}
f

but in the image php:7.4-apache-bullseye

podman run --rm -it --entrypoint="/bin/sh" php:7.4-apache-bullseye
# export REDIS_HOST=friendica-redis.friendica.svc.cluster.local
# echo ${REDIS_HOST:0:1}
/bin/sh: 2: Bad substitution

it looks to be specific to the sh version of the docker image?

@valvin1
Copy link
Contributor Author

valvin1 commented Feb 15, 2022

it looks like ${REDIS_HOST:0:1} is bash but we are using sh

i belive i was on sh but on my computer :

ls -l /usr/bin/sh
lrwxrwxrwx. 1 root root 4 26 janv.  2021 /usr/bin/sh -> bash

so it works with bash not sh.

@nupplaphil nupplaphil added the Bug Something isn't working label Feb 15, 2022
@nupplaphil
Copy link
Collaborator

@valvin1 - Please retry and close this issue after docker-library/official-images#11872 is merged

I have net yet seen if I should update my configuration but I think it would be nice to have a sort of versionning in image tag. If I deploy a 2021.09 it should be always the same image. If I want a new feature or a fix it should be 2021.09-1 or something like this?

What do you think of this idea ?

The problem is that the versioning follows the rules from the upstream branch.. I think it would be better to have a an CI environment here, where we/I can prove that the setup still works .. "just" building it doesn't seem to be enough

and tbh I thought it was a "quick win" because I found this (working) script at Nextcloud as well, so I didn't test it enough.. my bad :-/

@nupplaphil nupplaphil reopened this Feb 15, 2022
@valvin1
Copy link
Contributor Author

valvin1 commented Feb 16, 2022

Thank you for the fix and I let you know when my instance is up again.

The goal of this issue is more about a frozen version of the stable images. New development, quick wins shouldn't be applied to stable version directly. Maybe stable version shouldn't be published from mainstream but from a tag?

You are doing a great work but it is really frustrating having an instance which could stop working at any time when my server pulls again the stable image.

@valvin1
Copy link
Contributor Author

valvin1 commented Feb 17, 2022

My instance has downloaded a new image during the night and is up again.

@nupplaphil
Copy link
Collaborator

I opened another issue for the versioning topic #200 and close this issue because the bug per se is fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants