Skip to content
Snippets Groups Projects

added initial docker setup for running NGAS locally

Merged Andrew Kapuscinski requested to merge WS-533-local-ngas-setup into main
3 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
22 22 POSTGRES_PASSWORD: docker
23 23 command: postgres -c listen_addresses=*
24 24
25 db-ngas:
  • Janet Goldstein approved this merge request

    approved this merge request

  • Nathan Hertz approved this merge request

    approved this merge request

  • added 1 commit

    • 1d40d389 - added script to initialize ngas db in the existing postgres container

    Compare with previous version

  • this has been updated to use the existing postgres container for our ngas db. Please take another look :)

  • 1 #!/bin/bash
    2
    3 set -e
    4 set -o pipefail
    5
    6 DB=ngas
    7 PATH_TO_SQL_FILE=/repos/ngas/src/ngamsCore/ngamsSql/ngamsCreateTables-PostgreSQL.sql
    8
    9 echo "Creating database '$DB' "
    10
    11 psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
  • 1 #!/bin/bash
    2
    3 set -e
    4 set -o pipefail
    5
    6 DB=ngas
    7 PATH_TO_SQL_FILE=/repos/ngas/src/ngamsCore/ngamsSql/ngamsCreateTables-PostgreSQL.sql
    8
    9 echo "Creating database '$DB' "
    10
    11 psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
    12 CREATE DATABASE $DB;
    13 GRANT ALL PRIVILEGES ON DATABASE $DB TO archive;
    14 EOSQL
    15
    16 psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname $DB < $PATH_TO_SQL_FILE
  • added 1 commit

    • 0d7d23d0 - simplified psql commands based on comments from Daniel

    Compare with previous version

  • Nathan Hertz unapproved this merge request

    unapproved this merge request

  • Nathan Hertz approved this merge request

    approved this merge request

  • added 9 commits

    • 0d7d23d0...490f86ab - 6 commits from branch main
    • 0e23fbdd - added initial docker setup for running NGAS locally
    • 0b989d1f - added script to initialize ngas db in the existing postgres container
    • a5f9503d - simplified psql commands based on comments from Daniel

    Compare with previous version

  • added 7 commits

    • a5f9503d...260a8321 - 4 commits from branch main
    • 29f55534 - added initial docker setup for running NGAS locally
    • 107c4f39 - added script to initialize ngas db in the existing postgres container
    • a9a9f04d - simplified psql commands based on comments from Daniel

    Compare with previous version

  • Please register or sign in to reply
    Loading