Using Skaffold with your application
In this section, we demonstrate Skaffold’s capabilities by using it on an example application.
Let’s start by initializing our repository.
Initializing your repository using skaffold init
For this exercise, we use an example application written in Go, but Skaffold is language agnostic and supports any containerized application.
The sample application is an adaptation derived from the microservices example from the Skaffold GitHub repository and is contained in the ch2
folder in the book repository, available at https://github.com/PacktPublishing/Secure-Continuous-Delivery-on-Google-Cloud.
To initialize your repository, do the following:
- Get the source code and change directory to see your local copy:
git clone https://github.com/PacktPublishing/Secure-Continuous-Delivery-on-Google-Cloud \ && cd ch2/single
- Explore the content of the repository using the following command:
ls -l
The output will look like...