Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Local development with devspace

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.

Pre-Requirements

Codeweek installation

  1. 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
  1. Add line into the /etc/hosts file
127.0.0.1     codeweek.local.europa.eu
  1. Copy .env.devspace file
cp /devpace/.env.devspace .env
  1. 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
  1. Import and create the database Create empty database
devspace run artisan artisan migrate:fresh --seed
  1. Go to https://codeweek.local.europa.eu