In this lab we will set up a local environment to run the workshop.
Follow the instructions for your operating system:
Follow the instructions for your operating system:
Follow the instructions for your operating system:
Follow the instructions for your operating system:
Follow the instructions for your operating system:
Start Minikube:
minikube start
Verify that the cluster is running:
kubectl get nodes
Fork the workshop repository to your own GitHub account by clicking the "Fork" button in the top right corner of the repository page.
Note Docker image names cannot contain uppercase letters. If your GitHub username contains uppercase letters this may cause problems in subsequent labs. If this is the case you must manually replace occurrences of
${{ github.repository }}
with an all-lowercase hardcoded version in your workflows. Ask for help if you get stuck!
Go to your forked repository and enable GitHub Actions:
https://github.com/nais/<user>/actions
Clone the repository to your local machine:
git clone [email protected]:<user>/nais-workshop.git
Note
Throughout these labs we will push our images to the anonymous and ephemeral Docker registry ttl.sh. This registry offers a lifetime of at most 24 hours. If you want the images to remain available you must perform step 8 to set up access to GitHub Packages. You will also need to replace all occurrences of ttl.sh/myimage
with ghcr.io/<mygithubuser>/myimage
. If you will be using ttl.sh
step 8 can be skipped.
Create a new GitHub personal access token with the following permissions:
write:packages
Log in to GitHub Packages (ghcr.io) with your docker client:
echo "<token>" | docker login ghcr.io --username <user> --password-stdin
You have now set up a local environment to run the workshop.
Proceed to Lab 1 >