feat: implement license platform business flows and delivery tooling
Add admin and customer interfaces, orders, signed activation and leases, protected package delivery, keyring verification, migrations, security controls, tests and deployment documentation. Co-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
10
deploy/entrypoint.sh
Normal file
10
deploy/entrypoint.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
if [ -n "${MYSQL_PASSWORD_FILE:-}" ]; then
|
||||
password=$(cat "$MYSQL_PASSWORD_FILE")
|
||||
case "$password" in ''|*[!a-zA-Z0-9_-]*) echo 'Database secret must be a nonempty URL-safe value' >&2; exit 1;; esac
|
||||
export MYSQL_DSN="license_app:${password}@tcp(mysql:3306)/license_platform?parseTime=true"
|
||||
export MIGRATION_DSN="mysql://license_app:${password}@tcp(mysql:3306)/license_platform?multiStatements=true"
|
||||
unset password
|
||||
fi
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user