-
Notifications
You must be signed in to change notification settings - Fork 74
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
bin/otobo.SetPermission.pl doesn't work in docker container #480
Comments
@StefanRother-OTOBO I think that this needs more thought. The execute bit on hooks/post_push is apparently not required. At least it isn't mentioned in https://docs.docker.com/docker-hub/builds/advanced/ . And adding the label :latest did work for the OTOBO 10.0.3. release. When the Docker image is built, How to proceed depends on whether permissions need to be set after installation. If not, then I propose to revert the patch and to put both scripts into .dockignore. If a set permission script is needed after installation then I propose to merge set_permissions.pl into otobo.SetPermiissions.pl. |
Hi @bschmalhofer,
OK, I set the execute bit only for hooks/build, cause after execute otobo.SetPermissions.pl the rights where different.
We need the script otobo.SetPermission.pl. That's a extremely important tool (using docker or not). The important think is, that OTOBO Admins and Consultants can use the known tools. Thanks, Stefan |
Yes, I'll merge bin/otobe.SetPermission.pl and bin/docker/set_permission.pl. In order to be explicit I'll add a flag |
Also some refactoring and better code comments
Scripts are merged, but not tested yet. |
Hi, how das it work for docker environment without user root now? Thanks, Stefan |
Hi @StefanRother-OTOBO , the short answer is that it does not work under Docker. It even does not work when one is root in the running One use case is when building the Docker image. But calling it in otobo.web.dockerfile is really overkill, as the required funtionality could probably be done in a couple of shell commands. So,I think that this needs to be discussen in a devel-meeting. |
This is not a bug, we will discuss somewhen, whether we need this functionality, but I guess not for 10.0.5. |
Let's close this issue as there is nothing to do. |
Hi,
if I execute /opt/otobo/bin/otobo.SetPermission.pl in a docker container, the permissions are wrong.
I change the behavior and check now before, if otobo runs on docker (Check Environment OTOBO_RUNS_UNDER_DOCKER).
If yes, I try to get the user and group info from environment too.
Please, can you check if this is the right procedure?
Thanks!
Stefan
The text was updated successfully, but these errors were encountered: