Skip to content

Commit

Permalink
Keep container running
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl committed Oct 30, 2023
1 parent 6bd0869 commit 510d9f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/schema-spy/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ trap delete_pod SIGTERM SIGINT
# Start pod
kubectl run "$pod_name" \
--image=schemaspy/schemaspy:6.2.4 \
--restart=Never --stdin=true --tty=true --rm \
--restart=Never --stdin=true --tty=true \
--overrides='{
"spec": {
"containers": [
Expand All @@ -37,4 +37,7 @@ includes='^(^Z.*$|^.*[0-9]$|^PRF_.*$|^PERF_.*$|^MIS_.*$|^.*_MV$|^.*\\$.*$|^.*TRA
kubectl exec "$pod_name" -- /usr/local/bin/schemaspy -db "${DB}" -host "${HOST}" -port "${PORT}" -s "${SCHEMA}" -u "${USERNAME}" -p "${PASSWORD}" -cat "${SCHEMA}" -t orathin-service -I "$includes" -vizjs

# Download report
kubectl cp "$pod_name:/output" schema-spy-report
kubectl cp "$pod_name:/output" schema-spy-report

# Clean up
delete_pod

0 comments on commit 510d9f8

Please sign in to comment.