Commit 60887cf9 authored by Sytse Sijbrandij's avatar Sytse Sijbrandij

Remove the volumes from the single image to keep it simple.

parent b18dfc8d
...@@ -40,6 +40,3 @@ rails_best_practices_output.html ...@@ -40,6 +40,3 @@ rails_best_practices_output.html
/tags /tags
tmp/ tmp/
vendor/bundle/* vendor/bundle/*
var-log-gitlab/
var-opt-gitlab/
etc-gitlab/
...@@ -11,7 +11,7 @@ After starting a container you can go to [http://localhost:8080/](http://localho ...@@ -11,7 +11,7 @@ After starting a container you can go to [http://localhost:8080/](http://localho
It might take a while before the docker container is responding to queries. It might take a while before the docker container is responding to queries.
You can check the status with `sudo docker logs -f gitlab-ce`. You can check the status with something like `sudo docker logs -f 7c10172d7705`.
You can login to the web interface with username `root` and password `5iveL!fe`. You can login to the web interface with username `root` and password `5iveL!fe`.
...@@ -43,10 +43,10 @@ sudo docker pull sytse/gitlab-ce:7.10.1 ...@@ -43,10 +43,10 @@ sudo docker pull sytse/gitlab-ce:7.10.1
Run the image: Run the image:
```bash ```bash
sudo docker run --detach --name gitlab-ce --publish 8080:80 --publish 2222:22 gitlab-ce sudo docker run --detach --publish 8080:80 --publish 2222:22 sytse/gitlab-ce:7.10.1
``` ```
After this you can login to the web interface as explained in 'After starting a container' After this you can login to the web interface as explained above in 'After starting a container'.
Build the image: Build the image:
...@@ -63,7 +63,7 @@ sudo docker push sytse/gitlab-ce ...@@ -63,7 +63,7 @@ sudo docker push sytse/gitlab-ce
Diagnosing commands: Diagnosing commands:
```bash ```bash
docker run -i -t -v `pwd`/var-opt-gitlab:/var/opt/gitlab -v `pwd`/var-log-gitlab:/var/log/gitlab -v `pwd`/etc-gitlab:/etc/gitlab sytse/gitlab-ce:7.10.1 sudo docker run -i -t sytse/gitlab-ce:7.10.1
sudo docker run -ti -e TERM=linux --name gitlab-ce-troubleshoot --publish 8080:80 --publish 2222:22 sytse/gitlab-ce:7.10.1 bash /usr/local/bin/wrapper sudo docker run -ti -e TERM=linux --name gitlab-ce-troubleshoot --publish 8080:80 --publish 2222:22 sytse/gitlab-ce:7.10.1 bash /usr/local/bin/wrapper
``` ```
...@@ -83,7 +83,7 @@ sudo docker run --name gitlab-data sytse/gitlab-data /bin/true ...@@ -83,7 +83,7 @@ sudo docker run --name gitlab-data sytse/gitlab-data /bin/true
sudo docker run --detach --name gitlab_app --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data sytse/gitlab-app:7.10.1 sudo docker run --detach --name gitlab_app --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data sytse/gitlab-app:7.10.1
``` ```
Now please refer to the section above 'After starting a container'. After this you can login to the web interface as explained above in 'After starting a container'.
### Build images ### Build images
......
...@@ -9,23 +9,6 @@ ...@@ -9,23 +9,6 @@
"docker": { "docker": {
"network": "HOST", "network": "HOST",
"image": "sytse/gitlab-ce:7.10.1" "image": "sytse/gitlab-ce:7.10.1"
},
"volumes": [
{
"containerPath": "/var/opt/gitlab",
"hostPath": "/var/opt/gitlab",
"mode": "RW"
},
{
"containerPath": "/var/log/gitlab",
"hostPath": "/var/log/gitlab",
"mode": "RW"
},
{
"containerPath": "/etc/gitlab",
"hostPath": "/etc/gitlab",
"mode": "RW"
} }
]
} }
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment