Commit dc73b20f authored by cgal136's avatar cgal136

TNG-01 [claudio] reference configuraiton updated

parent 757fcf81
images/6.png

75.7 KB | W: | H:

images/6.png

21.1 KB | W: | H:

images/6.png
images/6.png
images/6.png
images/6.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -13,6 +13,8 @@ docker pull jenkins/jenkins:lts ...@@ -13,6 +13,8 @@ docker pull jenkins/jenkins:lts
docker run -p 8080:8080 -p 50000:50000 --network jenkins --hostname jenkins jenkins/jenkins:lts docker run -p 8080:8080 -p 50000:50000 --network jenkins --hostname jenkins jenkins/jenkins:lts
``` ```
Check the console output of the docker container while running it will display the initial password to start the Jenkins setup wizzard. Do not close the console tab after the contaner started running.
## 3. Create the devenv Docker Container ## 3. Create the devenv Docker Container
``` ```
...@@ -20,8 +22,20 @@ docker build -t 'devenv' . ...@@ -20,8 +22,20 @@ docker build -t 'devenv' .
docker run -d -p 8090:8080 -p 3001:22 --name devenv --network jenkins --hostname devenv devenv:latest docker run -d -p 8090:8080 -p 3001:22 --name devenv --network jenkins --hostname devenv devenv:latest
``` ```
# 3.1 ssh into the devenv container, and start nginx
```
docker exec -it devenv /bin/bash
```
Then from within the container run:
```
/etc/init.d/nginx start
```
## 4. Configure devenv container as docker-slave ## 4. Configure devenv container as docker-slave
#### 4.0 set up Jenkins using the wizzard
Use the initial password from the console and then create the admin user and password, and select the recommended/default plugins to start Jenkins.
#### 4.1 go to manage jenkins #### 4.1 go to manage jenkins
![Manage Jenkins](/images/1.png) ![Manage Jenkins](/images/1.png)
...@@ -37,9 +51,10 @@ docker run -d -p 8090:8080 -p 3001:22 --name devenv --network jenkins --hostname ...@@ -37,9 +51,10 @@ docker run -d -p 8090:8080 -p 3001:22 --name devenv --network jenkins --hostname
![Creds](/images/4.png) ![Creds](/images/4.png)
## 5. Create a multibranch pipeline for the project ## 5. Create a multibranch pipeline for the project
![new item](/images/5.png)
#### 5.1 Configure the job #### 5.1 Configure the job
![pipeline config](/images/5.png) ![job config](/images/6.png)
#### 5.2 point to git repo https://github.com/D3adlock/cicd-pipeline-handson-code #### 5.2 point to git repo https://gitlab.mynisum.com/cgallardo/training-cicd-refapp
![pipeline config](/images/6.png) ![job config](/images/7.png)
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