{"action":"created","comment":{"url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/comments/82120604","pull_request_review_id":3049067,"id":82120604,"diff_hunk":"@@ -0,0 +1,62 @@\n+# Pull base image\n+FROM dev-docker-registry.kapa.ware.fi/e-identification-tomcat-apache2-shibd-sp-base-image\n+COPY License.info /License.info\n+COPY target/site /site\n+\n+COPY conf /tmp/conf\n+COPY target/kapa-service-provider.war /opt/service-provider/\n+WORKDIR /opt/service-provider\n+\n+RUN mkdir -p /etc/shibboleth/idp-metadata /data00/templates/store /usr/share/tomcat/conf/Catalina/localhost/\n+RUN jar -xvf kapa-service-provider.war\n+RUN cp /tmp/conf/shibboleth/attribute-map.xml /etc/shibboleth/attribute-map.xml  && \\\n+    cp /tmp/conf/tomcat/sp.xml /usr/share/tomcat/conf/Catalina/localhost/ && \\\n+    cp /tmp/conf/tomcat/server.xml /usr/share/tomcat/conf/  && \\\n+    cp /tmp/conf/tomcat/logging.properties /usr/share/tomcat/conf/logging.properties && \\\n+    cp /tmp/conf/apache/envvars /etc/apache2/envvars && \\\n+    cp /tmp/conf/shibboleth/shibd.logger /etc/shibboleth/shibd.logger && \\\n+:                             && \\\n+: Templates                   && \\\n+:                             && \\\n+    cp /tmp/conf/shibboleth/shibboleth2.xml.template.local /data00/templates/store/   && \\\n+    cp /tmp/conf/shibboleth/shibboleth2.xml.template.dev /data00/templates/store/   && \\\n+    cp /tmp/conf/shibboleth/shibboleth2.xml.template.kete /data00/templates/store/   && \\\n+    cp /tmp/conf/shibboleth/shibboleth2.xml.template.test /data00/templates/store/  && \\\n+    cp /tmp/conf/shibboleth/shibboleth2.xml.template.prod /data00/templates/store/  && \\\n+    cp /tmp/conf/apache/default-ssl.conf.template /data00/templates/store/  && \\\n+    cp /tmp/conf/tomcat/service-provider.properties.template /data00/templates/store/  && \\\n+    cp /tmp/conf/shibboleth/sp-setenv.sh.template /data00/templates/store/  && \\\n+    cp /tmp/conf/logging/log4j.properties.template /data00/templates/store/  && \\\n+:                             && \\\n+:                             && \\\n+:                             && \\\n+    cp -r /tmp/conf/ansible /data00/templates/store/ansible   && \\\n+    chown -R tomcat:tomcat /opt/service-provider && \\\n+    chown -R tomcat:tomcat /usr/share/tomcat && \\\n+    chown -R _shibd:_shibd /etc/shibboleth/idp-metadata/ && \\\n+    rm -fr /usr/share/tomcat/webapps/* && \\\n+    rm -fr /usr/share/tomcat/server/webapps/* && \\\n+    rm -fr /usr/share/tomcat/conf/Catalina/localhost/host-manager.xml && \\\n+    rm -fr /usr/share/tomcat/conf/Catalina/localhost/manager.xml && \\\n+    ln -sf /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-enabled/default-ssl.conf && \\\n+    ln -sf /data00/deploy/default-ssl.conf /etc/apache2/sites-available/default-ssl.conf && \\\n+    mkdir -p /opt/service-provider-properties/ && \\\n+    mkdir -p /usr/share/tomcat/properties && \\\n+    ln -sf /data00/deploy/service-provider.properties /opt/service-provider-properties/service-provider.properties && \\\n+    ln -sf /data00/deploy/shibboleth2.xml /etc/shibboleth/shibboleth2.xml && \\\n+    ln -sf /data00/deploy/sp-setenv.sh /usr/share/tomcat/bin/setenv.sh && \\\n+    ln -sf /data00/deploy/kapa-ca /opt/kapa-ca && \\\n+    ln -sf /data00/deploy/tomcat_keystore /usr/share/tomcat/properties/tomcat_keystore && \\\n+    ln -sf /data00/deploy/jmxremote.password /usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password\n+\n+CMD \\\n+    mkdir -p /data00/logs && \\\n+    chown -R tomcat:tomcat /data00/deploy && \\\n+    chown tomcat:tomcat /data00/deploy/jmxremote.password && \\\n+    chmod 600 /data00/deploy/jmxremote.password && \\\n+    chmod -R 777 /data00/logs && \\\n+    ln -sf /data00/deploy/certs/* /etc/ssl/certs/ && \\\n+    ln -sf /data00/deploy/private/* /etc/ssl/private/ && \\\n+    ln -sf /data00/deploy/sp_metadata/* /etc/shibboleth/ && \\\n+    service apache2 restart && service shibd restart && \\\n+    service tomcat restart && sudo -u tomcat sh -c '/usr/share/tomcat/bin/catalina.sh run'","path":"Dockerfile","position":null,"original_position":62,"commit_id":"af867f13185a0d6801b1ea4fb5298ef4fa7e7952","original_commit_id":"095ebbacca4fc6ff0d69ddb0651d17f8625ffdef","user":{"login":"hihhu","id":2638949,"avatar_url":"https://avatars.githubusercontent.com/u/2638949?v=3","gravatar_id":"","url":"https://api.github.com/users/hihhu","html_url":"https://github.com/hihhu","followers_url":"https://api.github.com/users/hihhu/followers","following_url":"https://api.github.com/users/hihhu/following{/other_user}","gists_url":"https://api.github.com/users/hihhu/gists{/gist_id}","starred_url":"https://api.github.com/users/hihhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hihhu/subscriptions","organizations_url":"https://api.github.com/users/hihhu/orgs","repos_url":"https://api.github.com/users/hihhu/repos","events_url":"https://api.github.com/users/hihhu/events{/privacy}","received_events_url":"https://api.github.com/users/hihhu/received_events","type":"User","site_admin":false},"body":"Aikaisemmon kontti jäi odottamaan tail -f /etc/hostia debugtarkoituksessa, nyt se jää odottamaan tomcattia. Tuohon riviin oli jäänyt aivopieruna tuo tomcatin restartti, sen poistin.","created_at":"2016-10-06T05:47:42Z","updated_at":"2016-10-06T05:47:42Z","html_url":"https://github.com/vrk-kpa/e-identification-sp-service/pull/14#discussion_r82120604","pull_request_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/comments/82120604"},"html":{"href":"https://github.com/vrk-kpa/e-identification-sp-service/pull/14#discussion_r82120604"},"pull_request":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/14","id":88020320,"html_url":"https://github.com/vrk-kpa/e-identification-sp-service/pull/14","diff_url":"https://github.com/vrk-kpa/e-identification-sp-service/pull/14.diff","patch_url":"https://github.com/vrk-kpa/e-identification-sp-service/pull/14.patch","issue_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues/14","number":14,"state":"open","locked":false,"title":"KAPA-1608 Dockerfile uses only one base-image. Also directory cleanup.","user":{"login":"hihhu","id":2638949,"avatar_url":"https://avatars.githubusercontent.com/u/2638949?v=3","gravatar_id":"","url":"https://api.github.com/users/hihhu","html_url":"https://github.com/hihhu","followers_url":"https://api.github.com/users/hihhu/followers","following_url":"https://api.github.com/users/hihhu/following{/other_user}","gists_url":"https://api.github.com/users/hihhu/gists{/gist_id}","starred_url":"https://api.github.com/users/hihhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hihhu/subscriptions","organizations_url":"https://api.github.com/users/hihhu/orgs","repos_url":"https://api.github.com/users/hihhu/repos","events_url":"https://api.github.com/users/hihhu/events{/privacy}","received_events_url":"https://api.github.com/users/hihhu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-05T05:57:48Z","updated_at":"2016-10-06T05:47:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3cc2fc39af685d0fa8f2ead59b2046d3be67792a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/14/commits","review_comments_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/14/comments","review_comment_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues/14/comments","statuses_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/statuses/af867f13185a0d6801b1ea4fb5298ef4fa7e7952","head":{"label":"vrk-kpa:KAPA-1608","ref":"KAPA-1608","sha":"af867f13185a0d6801b1ea4fb5298ef4fa7e7952","user":{"login":"vrk-kpa","id":11345641,"avatar_url":"https://avatars.githubusercontent.com/u/11345641?v=3","gravatar_id":"","url":"https://api.github.com/users/vrk-kpa","html_url":"https://github.com/vrk-kpa","followers_url":"https://api.github.com/users/vrk-kpa/followers","following_url":"https://api.github.com/users/vrk-kpa/following{/other_user}","gists_url":"https://api.github.com/users/vrk-kpa/gists{/gist_id}","starred_url":"https://api.github.com/users/vrk-kpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrk-kpa/subscriptions","organizations_url":"https://api.github.com/users/vrk-kpa/orgs","repos_url":"https://api.github.com/users/vrk-kpa/repos","events_url":"https://api.github.com/users/vrk-kpa/events{/privacy}","received_events_url":"https://api.github.com/users/vrk-kpa/received_events","type":"Organization","site_admin":false},"repo":{"id":31949828,"name":"e-identification-sp-service","full_name":"vrk-kpa/e-identification-sp-service","owner":{"login":"vrk-kpa","id":11345641,"avatar_url":"https://avatars.githubusercontent.com/u/11345641?v=3","gravatar_id":"","url":"https://api.github.com/users/vrk-kpa","html_url":"https://github.com/vrk-kpa","followers_url":"https://api.github.com/users/vrk-kpa/followers","following_url":"https://api.github.com/users/vrk-kpa/following{/other_user}","gists_url":"https://api.github.com/users/vrk-kpa/gists{/gist_id}","starred_url":"https://api.github.com/users/vrk-kpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrk-kpa/subscriptions","organizations_url":"https://api.github.com/users/vrk-kpa/orgs","repos_url":"https://api.github.com/users/vrk-kpa/repos","events_url":"https://api.github.com/users/vrk-kpa/events{/privacy}","received_events_url":"https://api.github.com/users/vrk-kpa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vrk-kpa/e-identification-sp-service","description":"E-Identification service provider for true IdPs","fork":false,"url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service","forks_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/forks","keys_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/teams","hooks_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/hooks","issue_events_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues/events{/number}","events_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/events","assignees_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/assignees{/user}","branches_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/branches{/branch}","tags_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/tags","blobs_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/statuses/{sha}","languages_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/languages","stargazers_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/stargazers","contributors_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/contributors","subscribers_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/subscribers","subscription_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/subscription","commits_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/contents/{+path}","compare_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/merges","archive_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/downloads","issues_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues{/number}","pulls_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls{/number}","milestones_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/milestones{/number}","notifications_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/labels{/name}","releases_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/releases{/id}","deployments_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/deployments","created_at":"2015-03-10T09:50:48Z","updated_at":"2016-01-26T07:16:15Z","pushed_at":"2016-10-06T05:45:47Z","git_url":"git://github.com/vrk-kpa/e-identification-sp-service.git","ssh_url":"git@github.com:vrk-kpa/e-identification-sp-service.git","clone_url":"https://github.com/vrk-kpa/e-identification-sp-service.git","svn_url":"https://github.com/vrk-kpa/e-identification-sp-service","homepage":null,"size":613,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"develop"}},"base":{"label":"vrk-kpa:develop","ref":"develop","sha":"4d8b66598646074f7e6818a8d329858d18d952fc","user":{"login":"vrk-kpa","id":11345641,"avatar_url":"https://avatars.githubusercontent.com/u/11345641?v=3","gravatar_id":"","url":"https://api.github.com/users/vrk-kpa","html_url":"https://github.com/vrk-kpa","followers_url":"https://api.github.com/users/vrk-kpa/followers","following_url":"https://api.github.com/users/vrk-kpa/following{/other_user}","gists_url":"https://api.github.com/users/vrk-kpa/gists{/gist_id}","starred_url":"https://api.github.com/users/vrk-kpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrk-kpa/subscriptions","organizations_url":"https://api.github.com/users/vrk-kpa/orgs","repos_url":"https://api.github.com/users/vrk-kpa/repos","events_url":"https://api.github.com/users/vrk-kpa/events{/privacy}","received_events_url":"https://api.github.com/users/vrk-kpa/received_events","type":"Organization","site_admin":false},"repo":{"id":31949828,"name":"e-identification-sp-service","full_name":"vrk-kpa/e-identification-sp-service","owner":{"login":"vrk-kpa","id":11345641,"avatar_url":"https://avatars.githubusercontent.com/u/11345641?v=3","gravatar_id":"","url":"https://api.github.com/users/vrk-kpa","html_url":"https://github.com/vrk-kpa","followers_url":"https://api.github.com/users/vrk-kpa/followers","following_url":"https://api.github.com/users/vrk-kpa/following{/other_user}","gists_url":"https://api.github.com/users/vrk-kpa/gists{/gist_id}","starred_url":"https://api.github.com/users/vrk-kpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrk-kpa/subscriptions","organizations_url":"https://api.github.com/users/vrk-kpa/orgs","repos_url":"https://api.github.com/users/vrk-kpa/repos","events_url":"https://api.github.com/users/vrk-kpa/events{/privacy}","received_events_url":"https://api.github.com/users/vrk-kpa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vrk-kpa/e-identification-sp-service","description":"E-Identification service provider for true IdPs","fork":false,"url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service","forks_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/forks","keys_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/teams","hooks_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/hooks","issue_events_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues/events{/number}","events_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/events","assignees_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/assignees{/user}","branches_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/branches{/branch}","tags_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/tags","blobs_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/statuses/{sha}","languages_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/languages","stargazers_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/stargazers","contributors_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/contributors","subscribers_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/subscribers","subscription_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/subscription","commits_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/contents/{+path}","compare_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/merges","archive_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/downloads","issues_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues{/number}","pulls_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls{/number}","milestones_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/milestones{/number}","notifications_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/labels{/name}","releases_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/releases{/id}","deployments_url":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/deployments","created_at":"2015-03-10T09:50:48Z","updated_at":"2016-01-26T07:16:15Z","pushed_at":"2016-10-06T05:45:47Z","git_url":"git://github.com/vrk-kpa/e-identification-sp-service.git","ssh_url":"git@github.com:vrk-kpa/e-identification-sp-service.git","clone_url":"https://github.com/vrk-kpa/e-identification-sp-service.git","svn_url":"https://github.com/vrk-kpa/e-identification-sp-service","homepage":null,"size":613,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/14"},"html":{"href":"https://github.com/vrk-kpa/e-identification-sp-service/pull/14"},"issue":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues/14"},"comments":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/vrk-kpa/e-identification-sp-service/statuses/af867f13185a0d6801b1ea4fb5298ef4fa7e7952"}}}}
{"actor":{"display_login":"hihhu"}}