Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Merge requests
!347
added initial docker setup for running NGAS locally
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
added initial docker setup for running NGAS locally
WS-533-local-ngas-setup
into
main
Overview
6
Commits
3
Pipelines
5
Changes
2
3 unresolved threads
Hide all comments
Merged
Andrew Kapuscinski
requested to merge
WS-533-local-ngas-setup
into
main
3 years ago
Overview
6
Commits
3
Pipelines
5
Changes
2
Expand
0
0
Merge request reports
Viewing commit
a5f9503d
Show latest version
2 files
+
4
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
a5f9503d
simplified psql commands based on comments from Daniel
· a5f9503d
Andrew Kapuscinski
authored
3 years ago
ci/psql/init_ngas_db.sh
+
4
−
7
Options
@@ -7,12 +7,9 @@ DB=ngas
PATH_TO_SQL_FILE
=
/repos/ngas/src/ngamsCore/ngamsSql/ngamsCreateTables-PostgreSQL.sql
echo
"Creating database '
$DB
' "
createdb
-U
$POSTGRES_USER
-O
$POSTGRES_USER
$DB
psql
-v
ON_ERROR_STOP
=
1
--username
"
$POSTGRES_USER
"
--dbname
"
$POSTGRES_DB
"
<<-
EOSQL
CREATE DATABASE
$DB
;
GRANT ALL PRIVILEGES ON DATABASE
$DB
TO archive;
EOSQL
echo
"Populating database '
$DB
' "
psql
-U
$POSTGRES_USER
-1
-d
$DB
-f
$PATH_TO_SQL_FILE
psql
-v
ON_ERROR_STOP
=
1
--username
"
$POSTGRES_USER
"
--dbname
$DB
<
$PATH_TO_SQL_FILE
echo
"'
$DB
' was created successfully"
echo
"'
$DB
' was created and populated successfully"
Loading