Created
March 25, 2016 01:30
-
-
Save anon5r/e62635bb26e38dd77238 to your computer and use it in GitHub Desktop.
To control PostgreSQL with SQL queries in GitLab omnibus docker image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#sudo docker exec -it gitlab /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -U gitlab -d gitlabhq_production | |
sudo docker exec -it gitlab sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d gitlabhq_production | |
psql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see also: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/738