DevOps Tools/CI/Jenkins
From r00tedvw.com wiki
(Difference between revisions)
Line 12: | Line 12: | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | <div class="mw-collapsible mw-collapsed"> | |
− | + | :<code>-d \</code> | |
+ | <div class="mw-collapsible-content" style="overflow:auto;"> | ||
+ | :( Optional ) Runs the jenkinsci/blueocean container in the background (i.e. "detached" mode) and outputs the container ID. If you do not specify this option, then the running Docker log for this container is output in the terminal window. | ||
</div> | </div> | ||
− | + | </div> | |
− | + | <div class="mw-collapsible mw-collapsed"> | |
− | + | :<code>-p 8080:8080 \</code> | |
+ | <div class="mw-collapsible-content" style="overflow:auto;"> | ||
+ | :Maps (i.e. "publishes") port 8080 of the jenkinsci/blueocean container to port 8080 on the host machine. The first number represents the port on the host while the last represents the container’s port. Therefore, if you specified -p 49000:8080 for this option, you would be accessing Jenkins on your host machine through port 49000. | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
-p 50000:50000 \ | -p 50000:50000 \ | ||
-v jenkins-data:/var/jenkins_home \ | -v jenkins-data:/var/jenkins_home \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | -v /var/run/docker.sock:/var/run/docker.sock \ | ||
jenkinsci/blueocean | jenkinsci/blueocean |
Revision as of 17:21, 18 December 2018
Overview | Continuous Integration (CI) | Source Control Management (SCM) | Containerization | Configuration
Jenkins
Installation (Docker - OSX)
Download, Install, and Start Docker CE edition (.dmg)
Install Jenkins image from repo using blueocean image.
~$ sudo docker run \
-u root
--rm \
- ( Optional ) Automatically removes the Docker container (which is the instantiation of the jenkinsci/blueocean image below) when it is shut down. This keeps things tidy if you need to quit Jenkins.
-d \
- ( Optional ) Runs the jenkinsci/blueocean container in the background (i.e. "detached" mode) and outputs the container ID. If you do not specify this option, then the running Docker log for this container is output in the terminal window.
-p 8080:8080 \
- Maps (i.e. "publishes") port 8080 of the jenkinsci/blueocean container to port 8080 on the host machine. The first number represents the port on the host while the last represents the container’s port. Therefore, if you specified -p 49000:8080 for this option, you would be accessing Jenkins on your host machine through port 49000.
-p 50000:50000 \ -v jenkins-data:/var/jenkins_home \ -v /var/run/docker.sock:/var/run/docker.sock \ jenkinsci/blueocean