Skip to content

Commit

Permalink
Merge pull request #574 from mkoura/dbsync_infra_tweaks
Browse files Browse the repository at this point in the history
db-sync infra tweaks
  • Loading branch information
mkoura committed Jun 18, 2021
2 parents 41b9c48 + 69db03c commit 41ccdc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .buildkite/nightly_dbsync.yml
Expand Up @@ -6,7 +6,7 @@ steps:
env:
CARDANO_NODE_SOCKET_PATH_CI: '/scratch/cardano-node-tests/state-cluster0/bft1.socket'
# TODO: not using master until alonzo changes stabilizes
NODE_REV: 'alonzo-blue1.0'
NODE_REV: 'alonzo-blue2.0'
timeout_in_minutes: 500
agents:
system: x86_64-linux
Expand Down
3 changes: 2 additions & 1 deletion cardano_node_tests/cluster_scripts/alonzo/postgres-setup.sh
Expand Up @@ -14,8 +14,9 @@ PGHOST="${PGHOST:-localhost}"
PGPORT="${PGPORT:-5432}"
PGUSER="${PGUSER:-postgres}"

echo "Setting up db $DATABASE_NAME"
echo "Deleting db $DATABASE_NAME"
dropdb --if-exists "$DATABASE_NAME" > /dev/null
echo "Setting up db $DATABASE_NAME"
createdb -T template0 --owner="$PGUSER" --encoding=UTF8 "$DATABASE_NAME"

echo "${PGHOST}:${PGPORT}:${DATABASE_NAME}:${PGUSER}:secret" > "$PGPASSFILE"
Expand Down
3 changes: 2 additions & 1 deletion cardano_node_tests/cluster_scripts/mary/postgres-setup.sh
Expand Up @@ -14,8 +14,9 @@ PGHOST="${PGHOST:-localhost}"
PGPORT="${PGPORT:-5432}"
PGUSER="${PGUSER:-postgres}"

echo "Setting up db $DATABASE_NAME"
echo "Deleting db $DATABASE_NAME"
dropdb --if-exists "$DATABASE_NAME" > /dev/null
echo "Setting up db $DATABASE_NAME"
createdb -T template0 --owner="$PGUSER" --encoding=UTF8 "$DATABASE_NAME"

echo "${PGHOST}:${PGPORT}:${DATABASE_NAME}:${PGUSER}:secret" > "$PGPASSFILE"
Expand Down

0 comments on commit 41ccdc7

Please sign in to comment.