Skip to content

Commit

Permalink
PG 15.4->16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-dbos committed Mar 8, 2024
1 parent 0e6e471 commit 7666b15
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bank/scripts/start_postgres_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -z "${PGPASSWORD}" ]]; then
fi

# Start Postgres in a local Docker container
docker run --rm --name=bankdb --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data -p 5432:5432 -d postgres:15.4
docker run --rm --name=bankdb --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data -p 5432:5432 -d postgres:16.1

# Wait for PostgreSQL to start
echo "Waiting for PostgreSQL to start..."
Expand All @@ -30,4 +30,4 @@ echo "Database user: 'bank' and database: 'bank' created."

# Create Keycloak schema
docker exec bankdb psql -U bank -d bank -c "CREATE SCHEMA IF NOT EXISTS keycloak;"
echo "Schema: 'keycloak' created."
echo "Schema: 'keycloak' created."
2 changes: 1 addition & 1 deletion e-commerce/start_postgres_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -z "${PGPASSWORD}" ]]; then
fi

# Start Postgres in a local Docker container
docker run --rm --name=dbos-ecommerce --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data -p 5432:5432 -d postgres:15.4
docker run --rm --name=dbos-ecommerce --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data -p 5432:5432 -d postgres:16.1

# Wait for PostgreSQL to start
echo "Waiting for PostgreSQL to start..."
Expand Down
2 changes: 1 addition & 1 deletion hello-extended/start_postgres_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -z "${PGPASSWORD}" ]]; then
fi

# Start Postgres in a local Docker container
docker run --rm --name=dbos-db --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data -p 5432:5432 -d postgres:15.4
docker run --rm --name=dbos-db --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data -p 5432:5432 -d postgres:16.1

# Wait for PostgreSQL to start
echo "Waiting for PostgreSQL to start..."
Expand Down
2 changes: 1 addition & 1 deletion yky-social/scripts/start_postgres_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ -z "${POSTGRES_PORT}" ]]; then
fi

# Start Postgres in a local Docker container
docker run --rm --name=ykydb --env=POSTGRES_PASSWORD=${POSTGRES_PASSWORD} --env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data -p ${POSTGRES_PORT}:5432 -d postgres:15.4
docker run --rm --name=ykydb --env=POSTGRES_PASSWORD=${POSTGRES_PASSWORD} --env=PGDATA=/var/lib/postgresql/data --volume=/var/lib/postgresql/data -p ${POSTGRES_PORT}:5432 -d postgres:16.1

# Wait for PostgreSQL to start
echo "Waiting for PostgreSQL to start on port ${POSTGRES_PORT}..."
Expand Down

0 comments on commit 7666b15

Please sign in to comment.