Skip to content

Instantly share code, notes, and snippets.

@alexchiri
Last active October 18, 2019 09:08
Show Gist options
  • Save alexchiri/8a3129dd6221f1e040955ab881eceb12 to your computer and use it in GitHub Desktop.
Save alexchiri/8a3129dd6221f1e040955ab881eceb12 to your computer and use it in GitHub Desktop.
All the commands and links of the Jenkins X walkthrough
  1. Official website of the Jenkins X project: Jenkins X. You can find here more information about the Jenkins X components. And I found this article about Prow to be quite good to get a better understanding about the different native Kubernetes CI/CD projects.

  2. Create a new cluster using jx and minikube:

jx create cluster minikube --kubernetes-version=v1.15.4

Specify kubernetes version until this issue is fixed. Specify more resources to make sure the initial pipelines can succeed:

? memory (MB) 8192
? cpu (cores) 6
? disk-size (MB) 150GB
? Select driver: hyperkit

Select Serverless Jenkins X Pipelines with Tekton when asked to select Jenkins installation type

  1. Create simple react project in Jenkins X:
jx create quickstart -f react-quickstart

All the quickstarts that you can use are in this repo. Also, all the build packs used for the serverless Jenkins X are in this repo.

  1. Follow pipelines running for the newly created project:
jx get activity -f react-quickstart-jenkinsx -w
  1. Software to use to create a tunnel and expose local hook endpoint externally: ngrok.io
  2. Create tunnel using ngrok:
ngrok http -host-header=rewrite <hook_host>:80

Replace <hook_host> with your hook endpoint.

  1. See all the pods running in the staging namespace in the local cluster:
kubectl get pods -n jx-staging                                                                                             
  1. View all applications running with Jenkins X and the environments:
jx get applications
  1. Promote version 0.0.2 of the application react-quickstart-jenkinsx to production (run inside of application repo folder):
jx promote react-quickstart-jenkinsx --version 0.0.2 --env production
  1. Create a DevPod (run inside of the application repo folder):
jx create devpod

Don't forget to start the app in the DevPod to be able to preview any changes you make.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment