This is a sample Rails application which is run by both docker-compose and Kubernetes.
Use https://hub.docker.com/_/registry/ like following command:
docker run -d -p 5000:5000 \
-v ~/.dockerregistry:/var/lib/registry \
--restart always \
--name registry \
registry:2
docker-compose up
docker-compose exec rails rake db:migrate
kubectl apply -f k8s-config.yaml
kubectl apply -f k8s-apps.yaml
kubectl get pods
kubectl exec -it app-XXXXXXXXX-XXXXX rake db:migrate # Specify your pod's name
kompose up
kubectl get pods
kubectl exec -it rails-XXXXXXXXX-XXXXX rake db:migrate # Specify your pod's name
The MIT License (MIT)