{"action":"closed","issue":{"url":"https://api.github.com/repos/hi-ogawa/docker-flyway/issues/4","repository_url":"https://api.github.com/repos/hi-ogawa/docker-flyway","labels_url":"https://api.github.com/repos/hi-ogawa/docker-flyway/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hi-ogawa/docker-flyway/issues/4/comments","events_url":"https://api.github.com/repos/hi-ogawa/docker-flyway/issues/4/events","html_url":"https://github.com/hi-ogawa/docker-flyway/issues/4","id":171044645,"number":4,"title":"Flyway config doesn't take effect","user":{"login":"sxmichaels","id":13933679,"avatar_url":"https://avatars.githubusercontent.com/u/13933679?v=3","gravatar_id":"","url":"https://api.github.com/users/sxmichaels","html_url":"https://github.com/sxmichaels","followers_url":"https://api.github.com/users/sxmichaels/followers","following_url":"https://api.github.com/users/sxmichaels/following{/other_user}","gists_url":"https://api.github.com/users/sxmichaels/gists{/gist_id}","starred_url":"https://api.github.com/users/sxmichaels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sxmichaels/subscriptions","organizations_url":"https://api.github.com/users/sxmichaels/orgs","repos_url":"https://api.github.com/users/sxmichaels/repos","events_url":"https://api.github.com/users/sxmichaels/events{/privacy}","received_events_url":"https://api.github.com/users/sxmichaels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-14T06:16:54Z","updated_at":"2016-08-25T04:15:06Z","closed_at":"2016-08-25T04:15:06Z","body":"I'm running docker 1.12.0 with the current version of `docker-flyway`. As far as I know, everything is set up correctly, with the `flyway.conf` setting `flyway.url`, `flyway.user`, and `flyway.password`. However, the debug output for flyway, as given by `docker-compose run --rm flyway info -X`, shows:\r\n\r\n```\r\nFlyway 4.0.1 by Boxfuse\r\n\r\nDEBUG: Java 1.7.0_101 (Oracle Corporation)\r\nDEBUG: Linux 4.4.15-moby amd64\r\n\r\nDEBUG: Loading config file: /flyway/conf/flyway.conf\r\nDEBUG: Unable to load config file: /root/flyway.conf\r\nDEBUG: Unable to load config file: /flyway/flyway.conf\r\nDEBUG: Using configuration:\r\nDEBUG: flyway.jarDirs -> /flyway/jars\r\nDEBUG: flyway.password ->\r\nDEBUG: flyway.url ->\r\nDEBUG: flyway.user ->\r\nDEBUG: flyway.locations -> filesystem:/flyway/sql\r\nDEBUG: Adding location to classpath: /flyway/drivers/h2-1.4.191.jar\r\nDEBUG: Adding location to classpath: /flyway/drivers/mariadb-java-client-1.3.6.jar\r\nDEBUG: Adding location to classpath: /flyway/drivers/hsqldb-2.3.3.jar\r\nDEBUG: Adding location to classpath: /flyway/drivers/postgresql-9.4.1208.jre6.jar\r\nDEBUG: Adding location to classpath: /flyway/drivers/derbyclient-10.12.1.1.jar\r\nDEBUG: Adding location to classpath: /flyway/drivers/derby-10.12.1.1.jar\r\nDEBUG: Adding location to classpath: /flyway/drivers/sqlite-jdbc-3.7.15-M1.jar\r\nDEBUG: Adding location to classpath: /flyway/drivers/jtds-1.3.1.jar\r\nERROR: Unexpected error\r\norg.flywaydb.core.api.FlywayException: Unable to connect to the database. Configure the url, user and password!\r\n       \tat org.flywaydb.core.Flyway.execute(Flyway.java:1315)\r\n       \tat org.flywaydb.core.Flyway.info(Flyway.java:1032)\r\n       \tat org.flywaydb.commandline.Main.executeOperation(Main.java:143)\r\n       \tat org.flywaydb.commandline.Main.main(Main.java:102)\r\n```\r\n\r\nIt seem that even though the config file is being read, but for whatever reason its contents don't take effect. Other Docker images of Flyway *do* read the config, so I'm quite sure I didn't write it incorrectly — I think this is an issue with this image."}}
{"actor":{"display_login":"hi-ogawa"}}