{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/mysql/issues/69","labels_url":"https://api.github.com/repos/openshift/mysql/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/openshift/mysql/issues/69/comments","events_url":"https://api.github.com/repos/openshift/mysql/issues/69/events","html_url":"https://github.com/openshift/mysql/pull/69","id":96607683,"number":69,"title":"Refactoring scripts and making the image easily extensible","user":{"login":"hhorak","id":1405588,"avatar_url":"https://avatars.githubusercontent.com/u/1405588?v=3","gravatar_id":"","url":"https://api.github.com/users/hhorak","html_url":"https://github.com/hhorak","followers_url":"https://api.github.com/users/hhorak/followers","following_url":"https://api.github.com/users/hhorak/following{/other_user}","gists_url":"https://api.github.com/users/hhorak/gists{/gist_id}","starred_url":"https://api.github.com/users/hhorak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhorak/subscriptions","organizations_url":"https://api.github.com/users/hhorak/orgs","repos_url":"https://api.github.com/users/hhorak/repos","events_url":"https://api.github.com/users/hhorak/events{/privacy}","received_events_url":"https://api.github.com/users/hhorak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mnagy","id":72469,"avatar_url":"https://avatars.githubusercontent.com/u/72469?v=3","gravatar_id":"","url":"https://api.github.com/users/mnagy","html_url":"https://github.com/mnagy","followers_url":"https://api.github.com/users/mnagy/followers","following_url":"https://api.github.com/users/mnagy/following{/other_user}","gists_url":"https://api.github.com/users/mnagy/gists{/gist_id}","starred_url":"https://api.github.com/users/mnagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnagy/subscriptions","organizations_url":"https://api.github.com/users/mnagy/orgs","repos_url":"https://api.github.com/users/mnagy/repos","events_url":"https://api.github.com/users/mnagy/events{/privacy}","received_events_url":"https://api.github.com/users/mnagy/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-07-22T16:19:14Z","updated_at":"2015-07-29T15:24:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/mysql/pulls/69","html_url":"https://github.com/openshift/mysql/pull/69","diff_url":"https://github.com/openshift/mysql/pull/69.diff","patch_url":"https://github.com/openshift/mysql/pull/69.patch"},"body":"This is mostly a redesign of the scripts, while most changes were already consulted before, but never made it to these docker images so far.\r\n\r\nMost of the changes are transparent for the image users, while they are just re-organizing the scripts. The reason for the changes is to allow to extend images easier for user and also to make future maintenance simpler, since one complex bash script would be hard to change in another layer.\r\n\r\nThese are the changes made:\r\n* available commands (that are expected to be used as docker run argument) are now called `run-mysqld`, `run-mysqld-master`, `run-mysqld-slave` and those binaries are available under `/usr/bin`, so users may start them on demand, e.g. when debugging the image (if `run-mysqld-master.sh` or `mysqld-master` are already considered to be API, we can add those symlinks to not break depended stuff)\r\n* entrypoint script is now called `container-entrypoint`\r\n* the entrypoint now serves just for changing environment, nothing more\r\n* configuration files are located in the path that binaries expect (e.g. `/opt/rh/mysql55/root/etc/my.cnf`) and `/etc/my.cnf`, `/etc/my.cnf.d` are symlinks to those files, so users may work with `/etc/my.cnf` and `/etc/my.cnf.d` directly. As a result, `--defaults-file` doesn't have to be used when working with binaries\r\n* preparation of directories during build (fixing access) is now done by script `/usr/libexec/cont-setup`, so dockerfile is more clean\r\n* in configuration file, the `mysql` user is not specified, we want to let running daemon under actual user every-time\r\n* images are now more easily extensible, by dropping scripts with further initialization into expected directories (e.g. `/usr/share/cont-layer/mysql/post-init`)\r\n* scripts don't include collection name hard-coded, but the collection is specified in the Dockerfile and thus most of the scripts may be common for more versions of mysql (which makes maintenance easier)\r\n* `container-usage` returns help for the container"},"comment":{"url":"https://api.github.com/repos/openshift/mysql/issues/comments/125987856","html_url":"https://github.com/openshift/mysql/pull/69#issuecomment-125987856","issue_url":"https://api.github.com/repos/openshift/mysql/issues/69","id":125987856,"user":{"login":"hhorak","id":1405588,"avatar_url":"https://avatars.githubusercontent.com/u/1405588?v=3","gravatar_id":"","url":"https://api.github.com/users/hhorak","html_url":"https://github.com/hhorak","followers_url":"https://api.github.com/users/hhorak/followers","following_url":"https://api.github.com/users/hhorak/following{/other_user}","gists_url":"https://api.github.com/users/hhorak/gists{/gist_id}","starred_url":"https://api.github.com/users/hhorak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhorak/subscriptions","organizations_url":"https://api.github.com/users/hhorak/orgs","repos_url":"https://api.github.com/users/hhorak/repos","events_url":"https://api.github.com/users/hhorak/events{/privacy}","received_events_url":"https://api.github.com/users/hhorak/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T15:24:07Z","updated_at":"2015-07-29T15:24:07Z","body":"test"}}