I’m having issues with using the Preview Environment
initialDeployHook parameter with a Docker service environment.
My service calls a script that’s within the docker and the Initial Deploy Hook starts, but immediately ends in failure with no error logs in the Render web ui (ex:
The service looks something like this:
- type: web env: docker .... dockerfilePath: ./Dockerfile dockerCommand: /app/scripts/start-web.sh initialDeployHook: /app/scripts/seed-database.sh ....
Notably, the script does run to completion if I open a shell connection to the service and run the same line (
/app/scripts/seed-database.sh). Using a relative path (ex
initialDeployHook: ./scripts/seed-database.sh) has the same result.
Any ideas why it’s failing and why I can’t get any error logs for it?