Skip to content

Commit

Permalink
Test that booting up an empty pgautoupgrade container is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Nov 14, 2024
1 parent b112cf9 commit 4d84608
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ test_run() {
sudo rm -rf postgres-data
fi

# Start an empty pgautoupgrade container to make sure this is possible as well
TARGET_TAG="${TARGET}-${FLAVOR}" docker compose -f docker-compose-pgauto.yml up --wait -d

# Shut down any containers that are still running
docker compose -f docker-compose-pgauto.yml down --remove-orphans

# Delete the upgraded PostgreSQL data directory
sudo rm -rf postgres-data

import_adventure_works

# Start pgautoupgrade container
Expand Down

0 comments on commit 4d84608

Please sign in to comment.