{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls/3","id":235438136,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NDM4MTM2","html_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices/pull/3","diff_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices/pull/3.diff","patch_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices/pull/3.patch","issue_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues/3","number":3,"state":"open","locked":false,"title":"Docker 3","user":{"login":"mkosterin","id":3032230,"node_id":"MDQ6VXNlcjMwMzIyMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/3032230?v=4","gravatar_id":"","url":"https://api.github.com/users/mkosterin","html_url":"https://github.com/mkosterin","followers_url":"https://api.github.com/users/mkosterin/followers","following_url":"https://api.github.com/users/mkosterin/following{/other_user}","gists_url":"https://api.github.com/users/mkosterin/gists{/gist_id}","starred_url":"https://api.github.com/users/mkosterin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkosterin/subscriptions","organizations_url":"https://api.github.com/users/mkosterin/orgs","repos_url":"https://api.github.com/users/mkosterin/repos","events_url":"https://api.github.com/users/mkosterin/events{/privacy}","received_events_url":"https://api.github.com/users/mkosterin/received_events","type":"User","site_admin":false},"body":"# Выполнено ДЗ docker-3\r\n - [+] Основное ДЗ\r\n - [+] Дополнительные задания\r\n## В процессе сделано:\r\n- установлен linter\r\n- используем docker-machine и gce для экспериментов\r\n- написаны Dockerfile для трех компонентов приложения\r\n- собраны образы, сборка некоторых идет не с первого шага, так как в кеше уже находятсидентичные слои файловой системы\r\n- для работы приложения создали свой бридж\r\n- оптимизированы размеры образов ui, comment за счет использования alpine и оптимизации порядка команд в Dockerfile\r\n- создан и подключен Docker volume для хранения файлов базы данных\r\n- запустил контейнеры с дургими сетевыми алиасами без модификации Dockerfile, через установку переменных окружения в командной строке\r\n- оптимизирован образ comment\r\n## Как запустить проект:\r\n- docker-machine create --driver google --google-machine-image https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts --google-machine-type n1-standard-1 --google-zone europe-west1-b docker-host\r\n- eval $(docker-machine env docker-host)\r\n- docker network create reddit\r\n- docker run -d --network=reddit --network-alias=post_db --network-alias=comment_db mongo:latest\r\n- docker build -t mkosterin/post:1.0 ./post-py\r\n- docker build -t mkosterin/comment:2.0 ./comment\r\n- docker build -t mkosterin/ui:3.0 ./ui\r\n- ./run.sh\r\n## Как проверить работоспособность:\r\n- http://ext_ip:9292/\r\n## PR checklist\r\n - выставил label \"docker\", \"docker-3\"\r\n","created_at":"2018-12-03T12:58:13Z","updated_at":"2018-12-03T12:58:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1084632398,"node_id":"MDU6TGFiZWwxMDg0NjMyMzk4","url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/labels/Docker","name":"Docker","color":"c7e559","default":false},{"id":1084676190,"node_id":"MDU6TGFiZWwxMDg0Njc2MTkw","url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/labels/docker-3","name":"docker-3","color":"8a94f2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues/3/comments","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/statuses/78a11ae727138f7f4bf1d2d8c68ec0bc677fae66","head":{"label":"Otus-DevOps-2018-09:docker-3","ref":"docker-3","sha":"78a11ae727138f7f4bf1d2d8c68ec0bc677fae66","user":{"login":"Otus-DevOps-2018-09","id":43857994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzODU3OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/43857994?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-09","html_url":"https://github.com/Otus-DevOps-2018-09","followers_url":"https://api.github.com/users/Otus-DevOps-2018-09/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-09/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-09/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-09/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-09/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-09/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-09/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-09/received_events","type":"Organization","site_admin":false},"repo":{"id":152235895,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMzU4OTU=","name":"mkosterin_microservices","full_name":"Otus-DevOps-2018-09/mkosterin_microservices","private":false,"owner":{"login":"Otus-DevOps-2018-09","id":43857994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzODU3OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/43857994?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-09","html_url":"https://github.com/Otus-DevOps-2018-09","followers_url":"https://api.github.com/users/Otus-DevOps-2018-09/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-09/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-09/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-09/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-09/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-09/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-09/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-09/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices","description":"mkosterin microservices repository","fork":false,"url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices","forks_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/forks","keys_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/teams","hooks_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/hooks","issue_events_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues/events{/number}","events_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/events","assignees_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/assignees{/user}","branches_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/branches{/branch}","tags_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/tags","blobs_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/refs{/sha}","trees_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/statuses/{sha}","languages_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/languages","stargazers_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/stargazers","contributors_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/contributors","subscribers_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/subscribers","subscription_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/subscription","commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/commits{/sha}","git_commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/commits{/sha}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/comments{/number}","issue_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues/comments{/number}","contents_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/contents/{+path}","compare_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/merges","archive_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/downloads","issues_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues{/number}","pulls_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls{/number}","milestones_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/milestones{/number}","notifications_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/labels{/name}","releases_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/releases{/id}","deployments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/deployments","created_at":"2018-10-09T10:58:57Z","updated_at":"2018-10-09T10:59:00Z","pushed_at":"2018-12-03T12:49:21Z","git_url":"git://github.com/Otus-DevOps-2018-09/mkosterin_microservices.git","ssh_url":"git@github.com:Otus-DevOps-2018-09/mkosterin_microservices.git","clone_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices.git","svn_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices","homepage":"","size":13,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Otus-DevOps-2018-09:master","ref":"master","sha":"fef400cadf75923ea3b9980c796b43f57f155cd3","user":{"login":"Otus-DevOps-2018-09","id":43857994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzODU3OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/43857994?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-09","html_url":"https://github.com/Otus-DevOps-2018-09","followers_url":"https://api.github.com/users/Otus-DevOps-2018-09/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-09/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-09/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-09/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-09/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-09/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-09/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-09/received_events","type":"Organization","site_admin":false},"repo":{"id":152235895,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMzU4OTU=","name":"mkosterin_microservices","full_name":"Otus-DevOps-2018-09/mkosterin_microservices","private":false,"owner":{"login":"Otus-DevOps-2018-09","id":43857994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzODU3OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/43857994?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-09","html_url":"https://github.com/Otus-DevOps-2018-09","followers_url":"https://api.github.com/users/Otus-DevOps-2018-09/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-09/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-09/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-09/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-09/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-09/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-09/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-09/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices","description":"mkosterin microservices repository","fork":false,"url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices","forks_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/forks","keys_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/teams","hooks_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/hooks","issue_events_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues/events{/number}","events_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/events","assignees_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/assignees{/user}","branches_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/branches{/branch}","tags_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/tags","blobs_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/refs{/sha}","trees_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/statuses/{sha}","languages_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/languages","stargazers_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/stargazers","contributors_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/contributors","subscribers_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/subscribers","subscription_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/subscription","commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/commits{/sha}","git_commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/git/commits{/sha}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/comments{/number}","issue_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues/comments{/number}","contents_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/contents/{+path}","compare_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/merges","archive_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/downloads","issues_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues{/number}","pulls_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls{/number}","milestones_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/milestones{/number}","notifications_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/labels{/name}","releases_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/releases{/id}","deployments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/deployments","created_at":"2018-10-09T10:58:57Z","updated_at":"2018-10-09T10:59:00Z","pushed_at":"2018-12-03T12:49:21Z","git_url":"git://github.com/Otus-DevOps-2018-09/mkosterin_microservices.git","ssh_url":"git@github.com:Otus-DevOps-2018-09/mkosterin_microservices.git","clone_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices.git","svn_url":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices","homepage":"","size":13,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls/3"},"html":{"href":"https://github.com/Otus-DevOps-2018-09/mkosterin_microservices/pull/3"},"issue":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues/3"},"comments":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/mkosterin_microservices/statuses/78a11ae727138f7f4bf1d2d8c68ec0bc677fae66"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":1302,"deletions":0,"changed_files":65}}
{"actor":{"display_login":"mkosterin"}}