oc new-app mysql -e MYSQL_ROOT_PASSWORD=password
export MYSQL=$(oc get pods -l app=mysql -o jsonpath={.items[0].metadata.name})
oc cp ./script.sql $MYSQL:/tmp/script.sql
oc rsh $MYSQL
mysql -h 127.0.0.1 -u root -p < /tmp/script.sql #inside container.
oc new-app https://github.com/i63/store-inventory --name=inventory
oc env dc inventory sql_db=store sql_host=mysql sql_user=root sql_password=password
forked from debianmaster/go-welcome
-
Notifications
You must be signed in to change notification settings - Fork 0
i63/store-inventory
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sample Go application
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Go 100.0%