Open ChristopherHackett opened 1 year ago
The underlying issue that caused the command to fail was related to local docker setup however the reported problem re error checking is still a relevant issue to resolve.
Thanks for reporting this. We will add -b
to improve the error-handling.
When setting the Alloy demo up
I have an issue with the database creation. This may be a local issue with docker however on reviewing the logs I noticed
CREATE DATABASE failed.
followed byCreating database completed
.On reviewing the source code the status code is checked
https://github.com/episerver/content-templates/blob/0c72f0eea84fc20e4af5184a8ed7360e093d2527/templates/Alloy.Mvc/Docker/create-db.sh#L1-L12
However
sqlcmd
requires-b
to return an error value https://learn.microsoft.com/en-us/sql/tools/sqlcmd/sqlcmd-utilityThe following files appear to be affected by this behaviour: