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

Enhancement: make run.sh customizable #112

Open
grhangelone opened this issue Nov 22, 2020 · 3 comments
Open

Enhancement: make run.sh customizable #112

grhangelone opened this issue Nov 22, 2020 · 3 comments

Comments

@grhangelone
Copy link

grhangelone commented Nov 22, 2020

Hi there,
I really like this project, thanks for everything :)
I have 3 containers running as service in my docker cluster and they work perfectly.
You just have to have a nfs volume on all nodes to store the bind mounts on.

like:
docker service create --name lamp_nextcloud -p "84:80"
--mount type=bind,source=/mnt/nfs/lamp_nextcloud/app,destination=/app
--mount type=bind,source=/mnt/nfs/lamp_nextcloud/mysql,destination=/var/lib/mysql
mattrayner/lamp:latest

the /mnt/nfs directoy is a mounted nfs share from my fileserver

Now to my request:
I do have 1 web container, where I would like to have cron running and a crontab for root in place.
Currently I do have to set this up manually on every container restart.

/edit better way

At the end of the supplied run.sh as it currently is do a

[ -x /run/execute.sh ] && /run/execute.sh

This way we can bindmount our /run "startup folder" and add commands for the container start

In my case this would be an echo into the crontab file and a cron service start

@mattrayner
Copy link
Owner

mattrayner commented Nov 22, 2020 via email

@grhangelone
Copy link
Author

I would love to, but I'm not sure how to do this :)
I first have to read up how pull requests and all that Github stuff works

@grhangelone
Copy link
Author

Hi Matt,
did you have time to look into this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants