Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
training-cicd-refapp
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
Darrick Yong
training-cicd-refapp
Commits
58fbd4f4
Commit
58fbd4f4
authored
Mar 23, 2021
by
dyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readme from claudio
parent
109b7be9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
README.md
README.md
+60
-0
No files found.
README.md
View file @
58fbd4f4
# training-cicd
## 1. Install Docker Host
https://docs.docker.com/docker-for-mac/install/
## 2. Start and Configure the Jenkins Server
```
# creates the internal docker network
docker network create jenkins
# pull and start the jenkins docker image
docker pull 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
```
docker build -t 'devenv' .
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.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.2 go to manage nodes

#### 4.3 go to New Node
#### 4.4 configure the node

#### 4.5 add credentials for jenkins to use the slave node

## 5. Create a multibranch pipeline for the project

#### 5.1 Configure the job

#### 5.2 point to git repo https://gitlab.mynisum.com/cgallardo/training-cicd-refapp

\ No newline at end of file
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