DevOps Tools/CI/Jenkins

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 12: Line 12:
 
</div>
 
</div>
 
</div>
 
</div>
:<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;"><code></code>
+
<div class="mw-collapsible mw-collapsed">
:<div class="mw-collapsible-content">Test</div>
+
:<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 class="toccolours mw-collapsible" style="overflow:auto;"><code>--rm \</code><br>
+
</div>
:<div class="toccolours mw-collapsible" style="overflow:auto;"><code>-d \</code><br>
+
<div class="mw-collapsible mw-collapsed">
   -p 8080:8080 \
+
:<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
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Open Source Products
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
MagicMirror
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox