wodby / docs

Docs for Wodby platform, stacks and docker4x projects
https://wodby.com/docs
MIT License
2 stars 10 forks source link

How to best create bash aliases? #18

Open liquidcms opened 3 years ago

liquidcms commented 3 years ago

If i wanted to create an alias to be available within the wodby bash of all the wodby containers i have created; what is the best way to do this?

Possibly to mount a .wodby.bash.aliases file from my host? and somehow have that run when i enter wodby bash?

llwp commented 2 years ago

I'm curious if you solved this one, Pete...

liquidcms commented 2 years ago

I did not.

csandanov commented 2 years ago

I'm sorry for not responding I completely missed this issue

even if you mount alias file from the host there's probably will be a permissions issue because by default files will be owned by root and you want them under wodby user. We usually fix such issues in entrypoint but I don't think it's a good idea for this use case. I'm pretty sure there are many alternative options though.

What is the most common use case you need this for? Maybe there's a different approach to your problem. Even if it can't be fixed now in Wodby 1, maybe we can fix it in Wodby 2 (it already has a web shell for all containers)