Skip to content

packetcode/jenkins-crash-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Jenkins Crash Course

# Angular Project deployed in this course

Docker Crash Course - Github Repo

# Install Docker

Install Docker on Windows - Official Documentation

# Install Jenkins in Docker

Build Jenkins Image

docker build -t jenkins-jdk17:1.0 .

Connect local daemon to docker image and start the container

docker run -p 8080:8080 -p 50000:50000 -d --name jenkins-docker -v /var/run/docker.sock:/var/run/docker.sock -v jenkins_home:/var/jenkins_home jenkins-jdk17:1.0

# Install Node Js

Install nvm

curl -o- https://github.com/raw/nvm-sh/nvm/v0.39.7/install.sh | bash

Load nvm

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

Install and use node 16 (Linked angular project needs node 16 specifically)

nvm install 16
nvm use 16

Add Node Js to Tools

Node Js version - 16.20.0

# Building Freestyle Project

Shell command

docker image build -t angular-app-docker:1.0 .

# Building Pipeline Project

Complete Jenkins Pipeline Script

Jenkins File - Pipeline Script

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published