-
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.
-
Create a new cluster using
jx
andminikube
:
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
- 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.
- Follow pipelines running for the newly created project:
jx get activity -f react-quickstart-jenkinsx -w
- Software to use to create a tunnel and expose local hook endpoint externally: ngrok.io
- Create tunnel using ngrok:
ngrok http -host-header=rewrite <hook_host>:80
Replace <hook_host>
with your hook endpoint.
- See all the pods running in the staging namespace in the local cluster:
kubectl get pods -n jx-staging
- View all applications running with Jenkins X and the environments:
jx get applications
- Promote version
0.0.2
of the applicationreact-quickstart-jenkinsx
to production (run inside of application repo folder):
jx promote react-quickstart-jenkinsx --version 0.0.2 --env production
- 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.