You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Verify Java set up
java -version
# Verify maven set up
mvn
# Github access
Login to https://github.com
# docker install
docker -v
# check if minikube up and running
minikube ip
#If minikube is not running, run the below command to start minikube
minukube start --vm-driver=hyperkit
minikube addons enable ingress
# jenkins install
brew start service jenkins
Launch jenkins https://localhost:8080
1. Fork the Code to your respective GHE organization
Click on Fork Option at top right of the application
Choose your home organization and Fork
2. Let's get the source code from Git
# Fork the repo to your organization# Rename your repo name to StoreService-<GitOrg># Create a workspace under home directory
mkdir gitrepo
# Change to gitrepo directorycd gitrepo
# Clone the git repo
git clone https://github.com:<YourGitOrg>/StoreService.git
# Navigate to StoreService foldercd StoreService
3. Let's build our application and create a binary/artifact
# Make sure you are in StoreService folder# Change artifactID in pom.xml from storeservice to storeservice-<gitorg># Execute maven commands to clean, test and package application to a jar file
mvn clean package
# Start the application
java -jar target/storeservice-1.0.jar
#Check if applicaiton is running
Open browser and enter url "http://localhost:8081/MN/1"
5. Let's set up a CI/CD pipeline using Vela/Drone and Kubernetes (minikube)
# Lets talk about vela configuration (.vela.yml)# Login to vela and add git-repo to dashboard
login to localhost:8080/jenkins
# Verify if build is triggered and succeeded