This is provided as a starter/example setup. You can run kubernetes locally with an orchestration tool such as minikube and kubectl.
Starting minikube:
minikube start
Apply configs:
kubectl apply -f .kube/namespace.yaml
kubectl apply -f .kube/mysql-secret.yaml
kubectl apply -f .kube/php-secret.yaml
kubectl apply -f .kube/.
Minikube dashboard:
minikube dashboard --url
Create services:
minikube service nginx -n mixerapi-docker
minikube service mysql -n mixerapi-docker
Browse to the given nginx url:
minikube service list
MySQL:
mysql -u cakephp -h 192.168.49.2 -p --port 32089
Password is
cakephp
You'll want to exec into the php-nginx pod and run migrations/seeds:
bin/cake migrations migrate
bin/cake migrations seed
You may need to recreate the pod by deleting it at this point since no schema/data was present during initial creation.
Docker build / push commands:
docker build . -t mixerapidev/demo:latest
docker push mixerapidev/demo:latest