Open tomersagi opened 4 years ago
Hi @tomersagi Do you want to use the user for some service? Or how the user will be used?
The installation process for pentaho requires a pentaho user to be created to run the service etc. https://help.pentaho.com/Documentation/9.0/Setup/Prepare_your_Linux_environment_for_an_archive_install
You could pass the -D
option to adduser
to not assign any password.
yeah, that is what I'm doing for now
Alright. I have never had to add users in a docker image or use any keys/secrets, so I have no experience with it, neither have I tried pentaho. But I guess you could figure it out just as well as me, have a look here. Have you also seen this docker image? Maybe it just works or at least for inspiration.
Two ways I think you can try to approach this:
Create custome credentials files and bind them to the container:
mkdir credentials
touch credentials/{passwd,shadow,group}
singularity -B credentails/passwd:/etc/passwd -B credentails/shadow:/etc/shadow -B credentails/group:/etc/group shell <image.sif>
. In this way the files can be updated and kept across instances of containers.
Using singularity compose
, similar way to docker compose
. I haven't tested with singularity, but tried with docker
on other server. The idea is to use it to setup variables, users, and orchestrate multiple images. See example for docker. Singularity compose is very similar
TBC, will try to use the suggestions above
Currently installed in ~/pentaho of my homedir. Configured according to the instructions to connect to a MySQL db. But it is failing to load when accessed at localhost:8080.
Consider https://www.youtube.com/watch?v=SNf2VJjTmd4&list=UUAHejP4v46vrWU-VuAtWeXA&index=28
I want to create a user in the singularity image but do not want to store the password in the .def file for obvious reasons. Should I perhaps create the user without the password and use a public-private keypair to login to it? @KasperSkytte @biocyberman Ideas are welcome.