Skip to content

Instantly share code, notes, and snippets.

@jrnt30
Last active September 29, 2015 16:05
Show Gist options
  • Save jrnt30/de9a0cb1f1595d5fb0b4 to your computer and use it in GitHub Desktop.
Save jrnt30/de9a0cb1f1595d5fb0b4 to your computer and use it in GitHub Desktop.
MySql with Otto Depdency
  • Created subfolder “mysql” for app dep mkdir mysql
  • Created “mysql/Appfile” w/ mysql-Appfile contents
  • cd mysql && otto compile
  • created "root" Appfile w/ root-Appfile content
  • otto compile && otto dev build in “root” folder
application {
name = "mysql"
type = "docker-external"
}
customization "docker" {
image = "mysql:5.6"
run_args = "-p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw"
}
application {
type = "php"
name = "wordpress-demo"
dependency {
source = "./mysql"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment