ai-dock / base-image

Base image to be extended by all other ai-dock images
Other
18 stars 6 forks source link

How to auto run script after boot #5

Open mbac opened 1 month ago

mbac commented 1 month ago

Hi,

How can I run a command (wget to download my own startup/provision script) after all is set and done in the image?

If I add commands to the end of the provisioning script, I don't get errors, but any time I try to download a file it's nowhere to be found at boot (even if I set, say, wget https://onefile.com/thisone.txt -O /workspace/my_startup.sh).

Can you please advise?

thanks!

robballantyne commented 1 month ago

Check /var/log/provisioning.log for errors

You are doing the right thing. Use the provisioning script to download and then execute whatever you need, or place the code directly into provisioning