{"action":"created","issue":{"url":"https://api.github.com/repos/namtx/til/issues/52","repository_url":"https://api.github.com/repos/namtx/til","labels_url":"https://api.github.com/repos/namtx/til/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/namtx/til/issues/52/comments","events_url":"https://api.github.com/repos/namtx/til/issues/52/events","html_url":"https://github.com/namtx/til/issues/52","id":269610958,"number":52,"title":"Dockerize PostgeSQL","user":{"login":"namtx","id":25602820,"avatar_url":"https://avatars3.githubusercontent.com/u/25602820?v=4","gravatar_id":"","url":"https://api.github.com/users/namtx","html_url":"https://github.com/namtx","followers_url":"https://api.github.com/users/namtx/followers","following_url":"https://api.github.com/users/namtx/following{/other_user}","gists_url":"https://api.github.com/users/namtx/gists{/gist_id}","starred_url":"https://api.github.com/users/namtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namtx/subscriptions","organizations_url":"https://api.github.com/users/namtx/orgs","repos_url":"https://api.github.com/users/namtx/repos","events_url":"https://api.github.com/users/namtx/events{/privacy}","received_events_url":"https://api.github.com/users/namtx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-30T14:02:58Z","updated_at":"2017-10-31T05:55:59Z","closed_at":null,"author_association":"OWNER","body":"```bash\r\nFROM ubuntu                                                                                                                                                                                   \r\n                                                                                                                                                                                              \r\nRUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8                                                                         \r\n                                                                                                                                                                                              \r\nRUN echo \"deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main\" > /etc/apt/sources.list.d/pgdg.list                                                                                 \r\n                                                                                                                                                                                              \r\nRUN apt-get update && apt-get install -y python-software-properties software-properties-common postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3                                    \r\n                                                                                                                                                                                              \r\nUSER postgres                                                                                                                                                                                 \r\n                                                                                                                                                                                              \r\nRUN    /etc/init.d/postgresql start &&\\                                                                                                                                                       \r\n    psql --command \"CREATE USER docker WITH SUPERUSER PASSWORD 'docker';\" &&\\                                                                                                                 \r\n    createdb -O docker docker                                                                                                                                                                 \r\n                                                                                                                                                                                              \r\nRUN echo \"host all  all    0.0.0.0/0  md5\" >> /etc/postgresql/9.3/main/pg_hba.conf                                                                                                            \r\n                                                                                                                                                                                              \r\nRUN echo \"listen_addresses='*'\" >> /etc/postgresql/9.3/main/postgresql.conf                                                                                                                   \r\n                                                                                                                                                                                              \r\nEXPOSE 5432                                                                                                                                                                                   \r\n                                                                                                                                                                                              \r\nVOLUME  [\"/etc/postgresql\", \"/var/log/postgresql\", \"/var/lib/postgresql\"]                                                                                                                     \r\n                                                                                                                                                                                              \r\nCMD [\"/usr/lib/postgresql/9.3/bin/postgres\", \"-D\", \"/var/lib/postgresql/9.3/main\", \"-c\", \"config_file=/etc/postgresql/9.3/main/postgresql.conf\"] \r\n```"},"comment":{"url":"https://api.github.com/repos/namtx/til/issues/comments/340667799","html_url":"https://github.com/namtx/til/issues/52#issuecomment-340667799","issue_url":"https://api.github.com/repos/namtx/til/issues/52","id":340667799,"user":{"login":"namtx","id":25602820,"avatar_url":"https://avatars3.githubusercontent.com/u/25602820?v=4","gravatar_id":"","url":"https://api.github.com/users/namtx","html_url":"https://github.com/namtx","followers_url":"https://api.github.com/users/namtx/followers","following_url":"https://api.github.com/users/namtx/following{/other_user}","gists_url":"https://api.github.com/users/namtx/gists{/gist_id}","starred_url":"https://api.github.com/users/namtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namtx/subscriptions","organizations_url":"https://api.github.com/users/namtx/orgs","repos_url":"https://api.github.com/users/namtx/repos","events_url":"https://api.github.com/users/namtx/events{/privacy}","received_events_url":"https://api.github.com/users/namtx/received_events","type":"User","site_admin":false},"created_at":"2017-10-31T05:55:59Z","updated_at":"2017-10-31T05:55:59Z","author_association":"OWNER","body":"```dockerfile\r\nsudo docker run --rm -P --name pg_test -v /tmp/pgdata:/var/lib/postgresql/data eg_postresql\r\n```"}}
{"actor":{"display_login":"namtx"}}