Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
training-cicd-config
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kevin Lai
training-cicd-config
Commits
dc73b20f
Commit
dc73b20f
authored
Mar 23, 2021
by
cgal136
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TNG-01 [claudio] reference configuraiton updated
parent
757fcf81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
6.png
images/6.png
+0
-0
7.png
images/7.png
+0
-0
readme.md
readme.md
+18
-3
No files found.
images/6.png
View replaced file @
757fcf81
View file @
dc73b20f
75.7 KB
|
W:
|
H:
21.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
images/7.png
0 → 100644
View file @
dc73b20f
64.2 KB
readme.md
View file @
dc73b20f
...
@@ -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


...
@@ -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


## 5. Create a multibranch pipeline for the project
## 5. Create a multibranch pipeline for the project

#### 5.1 Configure the job
#### 5.1 Configure the job


#### 5.2 point to git repo https://git
hub.com/D3adlock/cicd-pipeline-handson-code
#### 5.2 point to git repo https://git
lab.mynisum.com/cgallardo/training-cicd-refapp


Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment