This example includes:
- Dockerfile and docker-compose
- Minikube
- Buildkite to push an image to quay
- Add a vault server to secure the process
To build the nodejs app locally is needed to run the command
docker-compose up
in the path DITeambuildkite
The next steps must be followed:
- Start minikube
minikube start
- Create the deployments
kubectl apply [deployment.yml]
- Create the services
kubectl apply [service.yml]
- Run
minikube tunnel
to expose the service - Run
kubectl get all
to ensure that the services are running - Go to http://nodejsservice.default.svc.cluster.local:3000/
- To run an agent and vault server is needed go to the path
buildkite_agent
and run:
docker-compose up
that enables the agent and the vault server.
Then make changes in the code, commit and push the pipeline will be running
NOTE: Add a webhook in github, to let the pipeline catch the changes in the repo