{"action":"created","issue":{"url":"https://api.github.com/repos/spujadas/elkx-docker/issues/7","repository_url":"https://api.github.com/repos/spujadas/elkx-docker","labels_url":"https://api.github.com/repos/spujadas/elkx-docker/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/spujadas/elkx-docker/issues/7/comments","events_url":"https://api.github.com/repos/spujadas/elkx-docker/issues/7/events","html_url":"https://github.com/spujadas/elkx-docker/issues/7","id":261426354,"number":7,"title":"Adding credentials...","user":{"login":"shawnmmatthews","id":7310064,"avatar_url":"https://avatars1.githubusercontent.com/u/7310064?v=4","gravatar_id":"","url":"https://api.github.com/users/shawnmmatthews","html_url":"https://github.com/shawnmmatthews","followers_url":"https://api.github.com/users/shawnmmatthews/followers","following_url":"https://api.github.com/users/shawnmmatthews/following{/other_user}","gists_url":"https://api.github.com/users/shawnmmatthews/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnmmatthews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnmmatthews/subscriptions","organizations_url":"https://api.github.com/users/shawnmmatthews/orgs","repos_url":"https://api.github.com/users/shawnmmatthews/repos","events_url":"https://api.github.com/users/shawnmmatthews/events{/privacy}","received_events_url":"https://api.github.com/users/shawnmmatthews/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-09-28T19:01:52Z","updated_at":"2017-09-29T18:31:42Z","closed_at":null,"author_association":"NONE","body":"With regards to changing the passwords for the primary elastic user.\r\n\r\nCould we simply add something like this to the dockerfile? In the correct format?\r\n\r\nRUN curl -XPUT -u elastic 'localhost:9200/_xpack/security/user/elastic/_password' -H \"Content-Type: application/json\" -d '{\r\n  \"password\" : \"elasticpassword\"\r\n}'\r\n\r\nI know you mentioned env variables as an option.\r\n\r\nIdeally i'm trying to change the password and create a read only user during the build process.\r\n\r\nAny thoughts on how to get started would be VERY appreciated. Thanks for the wonderful image.\r\n\r\nBest,\r\nShawn\r\n"},"comment":{"url":"https://api.github.com/repos/spujadas/elkx-docker/issues/comments/333203718","html_url":"https://github.com/spujadas/elkx-docker/issues/7#issuecomment-333203718","issue_url":"https://api.github.com/repos/spujadas/elkx-docker/issues/7","id":333203718,"user":{"login":"spujadas","id":930566,"avatar_url":"https://avatars2.githubusercontent.com/u/930566?v=4","gravatar_id":"","url":"https://api.github.com/users/spujadas","html_url":"https://github.com/spujadas","followers_url":"https://api.github.com/users/spujadas/followers","following_url":"https://api.github.com/users/spujadas/following{/other_user}","gists_url":"https://api.github.com/users/spujadas/gists{/gist_id}","starred_url":"https://api.github.com/users/spujadas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spujadas/subscriptions","organizations_url":"https://api.github.com/users/spujadas/orgs","repos_url":"https://api.github.com/users/spujadas/repos","events_url":"https://api.github.com/users/spujadas/events{/privacy}","received_events_url":"https://api.github.com/users/spujadas/received_events","type":"User","site_admin":false},"created_at":"2017-09-29T18:31:42Z","updated_at":"2017-09-29T18:31:42Z","author_association":"OWNER","body":"> However as soon as I add elk-post-hook.sh and make it executable Kibana fails to start even if all that is in the file is echo \"Post Testing\" Any thoughts? I attached the log, but having read it nothing to me looks out of order.\r\n\r\nVery strange indeed, the logs show Kibana starting up normally, so perhaps it needs the `curl` loop in `start.sh` to wait longer so that Kibana finishes initialising. Could you bump up the `KIBANA_CONNECT_RETRY` env var to a high value (1000 or something)?\r\n\r\n> ... does it make sense to just try running the following...\r\n\r\nFor the purposes of just testing `echo` you could, but if you attempt to run the `curl` command that changes the primary user it will definitely fail because Kibana won't be up (hence the loop in `start.sh` that waits long enough for Kibana to be up and running). Hope that makes sense."}}
{"actor":{"display_login":"spujadas"}}