Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download and install minikube on linux
  2. minikube config set driver docker
  3. minikube start -- mount -- mount-string ="/git/docker:/mnt" (that's where docker repo was cloned)
  4. /git/docker/policy-db-migrator/src/main/docker folder should contain the following

...

  1. file:

...

  1. drools_policy_init

...

  1. .sh

...

  1. copy pom.xml to /git/docker/policy-db-migrator
  2. cd /git/docker/policy-db-migrator
  3. eval $(minikube -p minikube docker-env)
  4. mvn clean install (this will install the db-migrator image to minikube docker)
  5. ssh -i $(minikube ssh-key) docker@$(minikube ip)
  6. docker images – you should see the onap/policy-db-migrator image
  7. exit out of minikube
  8. kubectl create -f db.yaml
  9. kubectl get pods
  10. kubectl logs <db-migrator image name>
  11. kubectl delete -f db.yaml
  12. minikube stop

...