{"action":"created","issue":{"url":"https://api.github.com/repos/adicu/adi-website/issues/194","labels_url":"https://api.github.com/repos/adicu/adi-website/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/adicu/adi-website/issues/194/comments","events_url":"https://api.github.com/repos/adicu/adi-website/issues/194/events","html_url":"https://github.com/adicu/adi-website/issues/194","id":69731339,"number":194,"title":"Docker deletes uploaded images","user":{"login":"danrschlosser","id":2433509,"avatar_url":"https://avatars.githubusercontent.com/u/2433509?v=3","gravatar_id":"","url":"https://api.github.com/users/danrschlosser","html_url":"https://github.com/danrschlosser","followers_url":"https://api.github.com/users/danrschlosser/followers","following_url":"https://api.github.com/users/danrschlosser/following{/other_user}","gists_url":"https://api.github.com/users/danrschlosser/gists{/gist_id}","starred_url":"https://api.github.com/users/danrschlosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrschlosser/subscriptions","organizations_url":"https://api.github.com/users/danrschlosser/orgs","repos_url":"https://api.github.com/users/danrschlosser/repos","events_url":"https://api.github.com/users/danrschlosser/events{/privacy}","received_events_url":"https://api.github.com/users/danrschlosser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adicu/adi-website/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/adicu/adi-website/labels/high","name":"high","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-21T03:13:41Z","updated_at":"2015-04-21T03:45:11Z","closed_at":null,"body":":red_circle: **Until this is resolved, we can not deploy** :red_circle: \r\n\r\n@natebrennand @thebrianzeng \r\n\r\nI found out that when we upload images to Eventum and docker is running, the images are saved in docker, but not anywhere under `/srv/adi-website/www`:\r\n\r\n```bash\r\nroot@adi-website:/# find -name \"functional-cover.png\"\r\n./var/lib/docker/aufs/diff/aff6cc62ed2bafcc00d861c1fce27098ee79e3e6c573c9537d457da17747052b/app/static/img/uploaded/functional-cover.png\r\n./var/lib/docker/aufs/mnt/aff6cc62ed2bafcc00d861c1fce27098ee79e3e6c573c9537d457da17747052b/app/static/img/uploaded/functional-cover.png\r\n```\r\n\r\nThe result of this is that **every time we deploy, all images that we uploaded since the last deployment are lost**.  We need to either:\r\n1. Configure Docker to sync folders to `/srv/adi-website/www` somehow\r\n2. Configure Eventum to save images to somewhere else on the machine, and serve them statically. (We could save them on some sort of `static.adicu.com`.)\r\n3. Some other option that I don't know involving Docker configurations"},"comment":{"url":"https://api.github.com/repos/adicu/adi-website/issues/comments/94629906","html_url":"https://github.com/adicu/adi-website/issues/194#issuecomment-94629906","issue_url":"https://api.github.com/repos/adicu/adi-website/issues/194","id":94629906,"user":{"login":"natebrennand","id":2801090,"avatar_url":"https://avatars.githubusercontent.com/u/2801090?v=3","gravatar_id":"","url":"https://api.github.com/users/natebrennand","html_url":"https://github.com/natebrennand","followers_url":"https://api.github.com/users/natebrennand/followers","following_url":"https://api.github.com/users/natebrennand/following{/other_user}","gists_url":"https://api.github.com/users/natebrennand/gists{/gist_id}","starred_url":"https://api.github.com/users/natebrennand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natebrennand/subscriptions","organizations_url":"https://api.github.com/users/natebrennand/orgs","repos_url":"https://api.github.com/users/natebrennand/repos","events_url":"https://api.github.com/users/natebrennand/events{/privacy}","received_events_url":"https://api.github.com/users/natebrennand/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T03:45:11Z","updated_at":"2015-04-21T03:45:11Z","body":"Looks correct to me, though I think we should separate the lines for readability.\r\n```\r\ndocker run \\\r\n    --net=host \\\r\n    -v $ADI_WWW/../logs:/opt/logs \\\r\n    -v $ADI_WWW/app/static/img/uploaded:/app/static/img/uploaded \\\r\n    --name=\"adi-website\" adi-website \\\r\n    -d\r\n````"}}