Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSytse Sijbrandij <sytses@gmail.com>2014-12-02 17:19:43 +0300
committerSytse Sijbrandij <sytses@gmail.com>2014-12-02 17:19:43 +0300
commit0afa07f7f07c68c74de20f5a353fba60c1752826 (patch)
treebf9d0d0e26525202a590de861de7630a9ed4b38f /docker/troubleshooting.md
parentba955fe17403e005e9f551e3b31e3d539681f4d1 (diff)
Add troubleshooting section to the docker documentation.
Diffstat (limited to 'docker/troubleshooting.md')
-rw-r--r--docker/troubleshooting.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/docker/troubleshooting.md b/docker/troubleshooting.md
new file mode 100644
index 00000000000..4916d742736
--- /dev/null
+++ b/docker/troubleshooting.md
@@ -0,0 +1,23 @@
+# Troubleshooting
+
+This is to troubleshoot https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/245
+But it might contain useful commands for other cases as well.
+
+The configuration to add the postgres log in vim is:
+postgresql['log_directory'] = '/var/log/gitlab/postgresql.log'
+
+# Commands
+
+sudo docker rm -f gitlab
+sudo docker rm -f gitlab_data
+
+sudo docker build --tag gitlab_image docker/
+sudo docker run --name gitlab_data gitlab_image /bin/true
+
+sudo docker run -ti --rm --volumes-from gitlab_data ubuntu apt-get install -y vim; sudo vi /etc/gitlab/gitlab.rb
+
+sudo docker run --detach --name gitlab --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data gitlab_image
+
+sudo docker run -t --rm --volumes-from gitlab_data ubuntu tail -f /var/log/gitlab/reconfigure.log
+
+sudo docker run -t --rm --volumes-from gitlab_data ubuntu cat /var/log/gitlab/postgresql.log