Skip to content

Commit

Permalink
Documentation for running with Docker Mac Native and fixed docker-com…
Browse files Browse the repository at this point in the history
…pose.yml for marcelbirkner#26
  • Loading branch information
jonashackt committed Sep 16, 2016
1 parent f4f4a0d commit bc9b3bd
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,43 @@ Blog article on the CI Docker Container, https://blog.codecentric.de/en/2015/10/

## Prerequisites (Mac)

### With Docker Toolbox (incl. VirtualBox)

You should have Docker Toolbox installed, see https://www.docker.com/toolbox

I am using docker-compose to start several docker container at once.
Since all containers run in a single VM (virtualbox), this VM needs enough memory.

### With Docker Mac Native

(see [Issue 26](https://github.com/marcelbirkner/docker-ci-tool-stack/issues/26))

If you use new Docker Mac Native implementation without VirtualBox and Docker Toolbox (install howto (https://docs.docker.com/docker-for-mac/)[https://docs.docker.com/docker-for-mac/] and if you had Toolbox before, make sure to follow these steps here https://docs.docker.com/docker-for-mac/docker-toolbox/ )

Create folders

* /opt/jenkins via __sudo mkdir /opt/jenkins__
* /opt/postgres via __sudo mkdir /opt/postgres__
* /opt/gitlab via __sudo mkdir /opt/gitlab__

& change the owning user to your account, e.g. via __sudo chown yourUserName gitlab/__

Then configure these folders in Docker / Preferences / File Sharing:

![docker_preferences_file_sharing.png](screenshots/docker_preferences_file_sharing.png)


Also alter Line 23 in docker-compose.yml under jenkins / volumes from

- /usr/local/bin/docker:/usr/bin/docker

to

- /usr/bin/docker:/usr/bin/docker

(this is because '/usr/bin/docker' is the docker binary, see [Issue 24](https://github.com/marcelbirkner/docker-ci-tool-stack/issues/24) )


### Step 0 - Check Docker Machine version

Ensure that you are using version 0.3.0 or greater of `docker-machine`
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- prodnetwork
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/bin/docker
- /usr/bin/docker:/usr/bin/docker
- /opt/jenkins/:/var/lib/jenkins/
depends_on:
- nexus
Expand Down
Binary file added screenshots/docker_preferences_file_sharing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bc9b3bd

Please sign in to comment.