Skip to content

exanpe/universal-breakfast

Repository files navigation

universal-breakfast

SETUP OPENSHIFT V3 PROD (once and for all)

Setup local tooling

Setup openshift env vars

  • ```$ oc env dc universal-breakfast MYSQL_USER="xxxx"``̀
  • ```$ oc env dc universal-breakfast MYSQL_PASSWORD="xxxx"``̀
  • ```$ oc env dc universal-breakfast MAIL_PASSWORD="xxxx"``̀
  • ```$ oc env dc universal-breakfast UB_SALT="xxxx"``̀
  • ```$ oc env dc universal-breakfast JAVA_OPTIONS="-Xms512m -Xmx512m"``̀

Setup database

  • $ mv <ub.sql> tmp/
  • $ oc get pods
  • $ oc rsync tmp/ <mysql_pod_name>:/var/lib/mysql/data
  • $ oc rsh <mysql_pod>
  • $ cd /var/lib/mysql/data/tmp/;mysql -u root;use ub;source ub.sql

BUILD