DevSpace is an open-source developer tool for Kubernetes that lets you develop and deploy cloud-native software faster in your own local.
The great advantage of use DevSpace is that you don't need all the tools on your local machine, DevSpace will deploy all the containers inside kubernetes keeping the local code development.
- Rancher Desktop(recommended) or Docker desktop + K3d Cluster
- Kubectl
- DevSpace CLI
- In order to run codeweek properly, on your local, you need to have a ssl certificate and simulate a ".europa.eu" domain. For that we need to generate self-signed certificate for your local.
- Follow this tutorial to generate self-signed certificates for your localhost
- Create codeweek namespace
kubectl create ns codeweek- Create the certificate secret on kubernetes
kubectl create secret generic certificates-secret --from-file=tls.crt=./localhost.crt --from-file=tls.key=./localhost.key- Add line into the /etc/hosts file
127.0.0.1 codeweek.local.europa.eu- Copy .env.devspace file
cp /devpace/.env.devspace .env- After this you can go to the codeweek root directory and type:
devspace dev- Devspace will ask you a token for github and nova credentials
- Wait for devspace starts and setup everything for you
- Import and create the database Create empty database
devspace run artisan artisan migrate:fresh --seed