Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
3b643bc8
Commit
3b643bc8
authored
Dec 02, 2014
by
Sytse Sijbrandij
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move build to first step and add interactive commands.
parent
6f9d9ea0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
docker/troubleshooting.md
docker/troubleshooting.md
+27
-1
No files found.
docker/troubleshooting.md
View file @
3b643bc8
...
@@ -8,10 +8,12 @@ postgresql['log_directory'] = '/var/log/gitlab/postgresql'
...
@@ -8,10 +8,12 @@ postgresql['log_directory'] = '/var/log/gitlab/postgresql'
# Commands
# Commands
```
bash
sudo
docker build
--tag
gitlab_image docker/
sudo
docker
rm
-f
gitlab
sudo
docker
rm
-f
gitlab
sudo
docker
rm
-f
gitlab_data
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
--name
gitlab_data gitlab_image /bin/true
sudo
docker run
-ti
--rm
--volumes-from
gitlab_data ubuntu apt-get update
&&
sudo
apt-get
install
-y
vim
&&
sudo
vim /etc/gitlab/gitlab.rb
sudo
docker run
-ti
--rm
--volumes-from
gitlab_data ubuntu apt-get update
&&
sudo
apt-get
install
-y
vim
&&
sudo
vim /etc/gitlab/gitlab.rb
...
@@ -23,3 +25,27 @@ sudo docker run -t --rm --volumes-from gitlab_data ubuntu tail -f /var/log/gitla
...
@@ -23,3 +25,27 @@ sudo docker run -t --rm --volumes-from gitlab_data ubuntu tail -f /var/log/gitla
sudo
docker run
-t
--rm
--volumes-from
gitlab_data ubuntu
tail
-f
/var/log/gitlab/postgresql/current
sudo
docker run
-t
--rm
--volumes-from
gitlab_data ubuntu
tail
-f
/var/log/gitlab/postgresql/current
sudo
docker run
-ti
--rm
--volumes-from
gitlab_data ubuntu /bin/sh
sudo
docker run
-ti
--rm
--volumes-from
gitlab_data ubuntu /bin/sh
```
# Interactively
```
bash
# First start a GitLab container without starting GitLab
# This is almost the same as starting the GitLab container except:
# - we run interactively (-t -i)
# - we define TERM=linux because it allows to use arrow keys in vi (!!!)
# - we choose another startup command (bash)
sudo
docker run
-ti
-e
TERM
=
linux
--name
gitlab
--publish
8080:80
--publish
2222:22
--volumes-from
gitlab_data gitlab_image bash
# Configure GitLab to redirect PostgreSQL logs
echo
"postgresql['log_directory'] = '/var/log/gitlab/postgresql'"
>>
/etc/gitlab/gitlab.rb
# You can now start GitLab manually from Bash (in the background)
gitlab-ctl reconfigure
>
/var/log/gitlab/reconfigure.log & /opt/gitlab/embedded/bin/runsvdir-start &
# And tail the logs (PostgreSQL log may not exist immediately)
tail
-f
/var/log/gitlab/reconfigure.log /var/log/gitlab/postgresql/current
# And get the memory
cat
/proc/meminfo
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment