Applies the MEF.DEV platform database schema of a release to an existing SQL Server.
1.2K
Brings the MEF.DEV platform database on an existing SQL Server to the schema of a release — for servers that are not the lab image digitalbss/mssql, or that already hold platform data. The image tag is the platform release it upgrades to.
Three steps against the server named by MSSQL_HOST and the database named by MSSQL_DB:
sqlcmd);sqlpackage);APP_VERSION.The container has no ports. When the three steps are done it stays idle rather than exiting — read the log, then stop and remove it.
docker run -d --name db-update \
-e MSSQL_HOST=<server> -e MSSQL_DB=<database> \
-e MSSQL_USER=<login> -e MSSQL_PASSWORD=<password> \
-e APP_VERSION=<version> \
digitalbss/db-update:<version>
docker logs -f db-update
Always pass the credentials at run time — the defaults inside the image are public. The job writes the login and the password it uses to its log: treat the log as a secret and remove the container afterwards. Back up the database before the upgrade.
Business Source License 1.1; each release converts to Apache License 2.0 on its Change Date. See Licensing.
Content type
Image
Digest
sha256:2d7f00523…
Size
241.6 MB
Last updated
10 months ago
docker pull digitalbss/db-update