{"action":"created","issue":{"url":"https://api.github.com/repos/ianbytchek/docker-riak-cs/issues/6","labels_url":"https://api.github.com/repos/ianbytchek/docker-riak-cs/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ianbytchek/docker-riak-cs/issues/6/comments","events_url":"https://api.github.com/repos/ianbytchek/docker-riak-cs/issues/6/events","html_url":"https://github.com/ianbytchek/docker-riak-cs/issues/6","id":120831222,"number":6,"title":"Volumes for s3 data","user":{"login":"lksv","id":1152494,"avatar_url":"https://avatars.githubusercontent.com/u/1152494?v=3","gravatar_id":"","url":"https://api.github.com/users/lksv","html_url":"https://github.com/lksv","followers_url":"https://api.github.com/users/lksv/followers","following_url":"https://api.github.com/users/lksv/following{/other_user}","gists_url":"https://api.github.com/users/lksv/gists{/gist_id}","starred_url":"https://api.github.com/users/lksv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lksv/subscriptions","organizations_url":"https://api.github.com/users/lksv/orgs","repos_url":"https://api.github.com/users/lksv/repos","events_url":"https://api.github.com/users/lksv/events{/privacy}","received_events_url":"https://api.github.com/users/lksv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-07T17:55:09Z","updated_at":"2015-12-10T08:23:47Z","closed_at":null,"body":"Firstly, thank you for perfect docker image.\r\n\r\nI would like to store bigger data and make them persistent (docker service restart / server restart).\r\nI guess that I can set custom `--volume` param, but unfortunately I do not know which directory I have to mount.\r\n\r\n**UPDATE**\r\nI can change storage by `-v /my/storage:/var/lib/riak` but unfortunately (and obviously) it doesn't work - this corrupt/clear the riak DB internal storage. Is it possible to fix it somehow?\r\n"},"comment":{"url":"https://api.github.com/repos/ianbytchek/docker-riak-cs/issues/comments/163531664","html_url":"https://github.com/ianbytchek/docker-riak-cs/issues/6#issuecomment-163531664","issue_url":"https://api.github.com/repos/ianbytchek/docker-riak-cs/issues/6","id":163531664,"user":{"login":"lksv","id":1152494,"avatar_url":"https://avatars.githubusercontent.com/u/1152494?v=3","gravatar_id":"","url":"https://api.github.com/users/lksv","html_url":"https://github.com/lksv","followers_url":"https://api.github.com/users/lksv/followers","following_url":"https://api.github.com/users/lksv/following{/other_user}","gists_url":"https://api.github.com/users/lksv/gists{/gist_id}","starred_url":"https://api.github.com/users/lksv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lksv/subscriptions","organizations_url":"https://api.github.com/users/lksv/orgs","repos_url":"https://api.github.com/users/lksv/repos","events_url":"https://api.github.com/users/lksv/events{/privacy}","received_events_url":"https://api.github.com/users/lksv/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T08:23:47Z","updated_at":"2015-12-10T08:23:47Z","body":"Thanks, that is great progress. Unfortunately there is still one issue when I stop and start docker again:\r\n```bash\r\nlukas@luksrock:~/tmp$ sudo docker logs riak-cs\r\nUpdate data permissions in case they are mounted as volumes… OK!\r\nStarting Riak… OK!\r\nStarting Stanchion… OK!\r\nStarting Riak CS… OK!\r\nCould not create admin user and retrieve credentials. Curl got response:\r\n{}\r\n```\r\n\r\nThat is because of [riak_cs_create_admin](https://github.com/ianbytchek/docker-riak-cs/blob/master/src/script/configure_application.sh#L116) function. When I manually set `key` and `secret` in `/etc/riak-cs/advanced.config` everything works perfectly. Should be nice to extended this function set directly `key` and `secret` from environment variables."}}