{"action":"created","comment":{"url":"https://api.github.com/repos/fw-dev/fwdocker/pulls/comments/92163365","pull_request_review_id":12672329,"id":92163365,"diff_hunk":"@@ -21,22 +20,27 @@ RUN yum -y install unzip\n WORKDIR \"${INSTALL_DIR}\"\n RUN unzip -o \"${LINUX_ZIPFILE_NAME}\" && yum install -y --nogpgcheck \"$RPM_FW_SERVER.rpm\"\n \n+WORKDIR \"/\"\n+RUN rm -rf \"${INSTALL_DIR}\"\n+\n # extract pre/post install/uninstall scripts\n-RUN rpm -qp --scripts \"$RPM_FW_SERVER.rpm\" | awk '/[preinstall|postinstall|preuninstall|postuninstall] scriptlet.*:/{x=\"F\"++i;next;}{print > x;}' -\n-RUN mv F1 preinstall.sh && mv F2 postinstall.sh && mv F3 preuninstall.sh && mv F4 postuninstall.sh && chmod +x p*.sh\n-RUN cd / && rm -rf /install/*.rpm && rm -rf /install/*.zip\n+# TODO\n \n # stop the supervisord process ...\n RUN /etc/init.d/fw-server stop\n \n-RUN cp -r /fwxserver/DB/pg_data /usr/local/filewave/tmp/pg_data\n-RUN cp -r /usr/local/filewave/certs /usr/local/filewave/tmp/certs\n+RUN mkdir -p /tmp/filewave\n+\n+# Copy all the FW directories in the temporary space\n+RUN cp -r /fwxserver/DB \\\n+    /fwxserver/\"Data Folder\" \\\n+    /usr/local/filewave/certs \\\n+    /usr/local/filewave/apache/conf \\\n+    /tmp/filewave/\n \n-# NOTE: /fwxserver/DB/pg_data is NOT exposed as a volume as the current design calls for the data\n-# to be present within the container, only on export/import is it leaving the confines of its docker container.\n-#\n # NOTE: grouping directories reduces the number of layers in the final image (a good thing)\n-VOLUME [ \"/fwxserver\", \"/fwxserver/Data Folder\", \"/usr/local/filewave/apache/conf\", \"/usr/local/filewave/apache/logs\", \"/usr/local/filewave/apache/passwords\", \"/usr/local/filewave/certs\", \"/usr/local/filewave/fwcld\", \"/usr/local/filewave/django\" ]\n-VOLUME [ \"/usr/local/filewave/ipa\", \"/usr/local/filewave/log\", \"/usr/local/filewave/media\", \"/usr/local/filewave/postgresql/conf\", \"/usr/local/filewave/postgresql/log\", \"/usr/local/filewave/tmp\", \"/usr/local/filewave/scripts\" ]\n+VOLUME [ \"/fwxserver/DB\", \"/fwxserver/Data Folder\", \"/usr/local/filewave/apache/conf\", \"/usr/local/filewave/apache/logs\", \"/usr/local/filewave/apache/passwords\", \"/usr/local/filewave/certs\", \"/usr/local/filewave/fwcld\",  \"/usr/local/filewave/ipa\", \"/usr/local/filewave/log\", \"/usr/local/filewave/media\", \"/usr/local/filewave/tmp/\"]\n+","path":"ucs-server/Dockerfile","position":51,"original_position":51,"commit_id":"44e8a96a35541567fe9b1876c0bb11860d43c406","original_commit_id":"44e8a96a35541567fe9b1876c0bb11860d43c406","user":{"login":"thierryba","id":1382530,"avatar_url":"https://avatars.githubusercontent.com/u/1382530?v=3","gravatar_id":"","url":"https://api.github.com/users/thierryba","html_url":"https://github.com/thierryba","followers_url":"https://api.github.com/users/thierryba/followers","following_url":"https://api.github.com/users/thierryba/following{/other_user}","gists_url":"https://api.github.com/users/thierryba/gists{/gist_id}","starred_url":"https://api.github.com/users/thierryba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thierryba/subscriptions","organizations_url":"https://api.github.com/users/thierryba/orgs","repos_url":"https://api.github.com/users/thierryba/repos","events_url":"https://api.github.com/users/thierryba/events{/privacy}","received_events_url":"https://api.github.com/users/thierryba/received_events","type":"User","site_admin":false},"body":"/usr/local/filewave/postgresql/conf is needed for the user configuration","created_at":"2016-12-13T13:00:39Z","updated_at":"2016-12-13T13:00:39Z","html_url":"https://github.com/fw-dev/fwdocker/pull/1#discussion_r92163365","pull_request_url":"https://api.github.com/repos/fw-dev/fwdocker/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/fw-dev/fwdocker/pulls/comments/92163365"},"html":{"href":"https://github.com/fw-dev/fwdocker/pull/1#discussion_r92163365"},"pull_request":{"href":"https://api.github.com/repos/fw-dev/fwdocker/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/fw-dev/fwdocker/pulls/1","id":97515997,"html_url":"https://github.com/fw-dev/fwdocker/pull/1","diff_url":"https://github.com/fw-dev/fwdocker/pull/1.diff","patch_url":"https://github.com/fw-dev/fwdocker/pull/1.patch","issue_url":"https://api.github.com/repos/fw-dev/fwdocker/issues/1","number":1,"state":"open","locked":false,"title":"17615 install on ucs","user":{"login":"mcosta74","id":3706809,"avatar_url":"https://avatars.githubusercontent.com/u/3706809?v=3","gravatar_id":"","url":"https://api.github.com/users/mcosta74","html_url":"https://github.com/mcosta74","followers_url":"https://api.github.com/users/mcosta74/followers","following_url":"https://api.github.com/users/mcosta74/following{/other_user}","gists_url":"https://api.github.com/users/mcosta74/gists{/gist_id}","starred_url":"https://api.github.com/users/mcosta74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcosta74/subscriptions","organizations_url":"https://api.github.com/users/mcosta74/orgs","repos_url":"https://api.github.com/users/mcosta74/repos","events_url":"https://api.github.com/users/mcosta74/events{/privacy}","received_events_url":"https://api.github.com/users/mcosta74/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-12T09:07:44Z","updated_at":"2016-12-13T13:00:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a742697c47bfb6a5800d7e41116a1a1d80ea6375","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fw-dev/fwdocker/pulls/1/commits","review_comments_url":"https://api.github.com/repos/fw-dev/fwdocker/pulls/1/comments","review_comment_url":"https://api.github.com/repos/fw-dev/fwdocker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fw-dev/fwdocker/issues/1/comments","statuses_url":"https://api.github.com/repos/fw-dev/fwdocker/statuses/44e8a96a35541567fe9b1876c0bb11860d43c406","head":{"label":"fw-dev:17615_install_on_ucs","ref":"17615_install_on_ucs","sha":"44e8a96a35541567fe9b1876c0bb11860d43c406","user":{"login":"fw-dev","id":1348333,"avatar_url":"https://avatars.githubusercontent.com/u/1348333?v=3","gravatar_id":"","url":"https://api.github.com/users/fw-dev","html_url":"https://github.com/fw-dev","followers_url":"https://api.github.com/users/fw-dev/followers","following_url":"https://api.github.com/users/fw-dev/following{/other_user}","gists_url":"https://api.github.com/users/fw-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/fw-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw-dev/subscriptions","organizations_url":"https://api.github.com/users/fw-dev/orgs","repos_url":"https://api.github.com/users/fw-dev/repos","events_url":"https://api.github.com/users/fw-dev/events{/privacy}","received_events_url":"https://api.github.com/users/fw-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":60429431,"name":"fwdocker","full_name":"fw-dev/fwdocker","owner":{"login":"fw-dev","id":1348333,"avatar_url":"https://avatars.githubusercontent.com/u/1348333?v=3","gravatar_id":"","url":"https://api.github.com/users/fw-dev","html_url":"https://github.com/fw-dev","followers_url":"https://api.github.com/users/fw-dev/followers","following_url":"https://api.github.com/users/fw-dev/following{/other_user}","gists_url":"https://api.github.com/users/fw-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/fw-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw-dev/subscriptions","organizations_url":"https://api.github.com/users/fw-dev/orgs","repos_url":"https://api.github.com/users/fw-dev/repos","events_url":"https://api.github.com/users/fw-dev/events{/privacy}","received_events_url":"https://api.github.com/users/fw-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fw-dev/fwdocker","description":"A program to help install, run and configure the FileWave MDM product.","fork":false,"url":"https://api.github.com/repos/fw-dev/fwdocker","forks_url":"https://api.github.com/repos/fw-dev/fwdocker/forks","keys_url":"https://api.github.com/repos/fw-dev/fwdocker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fw-dev/fwdocker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fw-dev/fwdocker/teams","hooks_url":"https://api.github.com/repos/fw-dev/fwdocker/hooks","issue_events_url":"https://api.github.com/repos/fw-dev/fwdocker/issues/events{/number}","events_url":"https://api.github.com/repos/fw-dev/fwdocker/events","assignees_url":"https://api.github.com/repos/fw-dev/fwdocker/assignees{/user}","branches_url":"https://api.github.com/repos/fw-dev/fwdocker/branches{/branch}","tags_url":"https://api.github.com/repos/fw-dev/fwdocker/tags","blobs_url":"https://api.github.com/repos/fw-dev/fwdocker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fw-dev/fwdocker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fw-dev/fwdocker/git/refs{/sha}","trees_url":"https://api.github.com/repos/fw-dev/fwdocker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fw-dev/fwdocker/statuses/{sha}","languages_url":"https://api.github.com/repos/fw-dev/fwdocker/languages","stargazers_url":"https://api.github.com/repos/fw-dev/fwdocker/stargazers","contributors_url":"https://api.github.com/repos/fw-dev/fwdocker/contributors","subscribers_url":"https://api.github.com/repos/fw-dev/fwdocker/subscribers","subscription_url":"https://api.github.com/repos/fw-dev/fwdocker/subscription","commits_url":"https://api.github.com/repos/fw-dev/fwdocker/commits{/sha}","git_commits_url":"https://api.github.com/repos/fw-dev/fwdocker/git/commits{/sha}","comments_url":"https://api.github.com/repos/fw-dev/fwdocker/comments{/number}","issue_comment_url":"https://api.github.com/repos/fw-dev/fwdocker/issues/comments{/number}","contents_url":"https://api.github.com/repos/fw-dev/fwdocker/contents/{+path}","compare_url":"https://api.github.com/repos/fw-dev/fwdocker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fw-dev/fwdocker/merges","archive_url":"https://api.github.com/repos/fw-dev/fwdocker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fw-dev/fwdocker/downloads","issues_url":"https://api.github.com/repos/fw-dev/fwdocker/issues{/number}","pulls_url":"https://api.github.com/repos/fw-dev/fwdocker/pulls{/number}","milestones_url":"https://api.github.com/repos/fw-dev/fwdocker/milestones{/number}","notifications_url":"https://api.github.com/repos/fw-dev/fwdocker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fw-dev/fwdocker/labels{/name}","releases_url":"https://api.github.com/repos/fw-dev/fwdocker/releases{/id}","deployments_url":"https://api.github.com/repos/fw-dev/fwdocker/deployments","created_at":"2016-06-04T20:41:00Z","updated_at":"2016-11-07T21:49:46Z","pushed_at":"2016-12-13T12:34:54Z","git_url":"git://github.com/fw-dev/fwdocker.git","ssh_url":"git@github.com:fw-dev/fwdocker.git","clone_url":"https://github.com/fw-dev/fwdocker.git","svn_url":"https://github.com/fw-dev/fwdocker","homepage":null,"size":331,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"fw-dev:master","ref":"master","sha":"3a22fbe71981953b3fab3bd6fb3cbcd23cde69dd","user":{"login":"fw-dev","id":1348333,"avatar_url":"https://avatars.githubusercontent.com/u/1348333?v=3","gravatar_id":"","url":"https://api.github.com/users/fw-dev","html_url":"https://github.com/fw-dev","followers_url":"https://api.github.com/users/fw-dev/followers","following_url":"https://api.github.com/users/fw-dev/following{/other_user}","gists_url":"https://api.github.com/users/fw-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/fw-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw-dev/subscriptions","organizations_url":"https://api.github.com/users/fw-dev/orgs","repos_url":"https://api.github.com/users/fw-dev/repos","events_url":"https://api.github.com/users/fw-dev/events{/privacy}","received_events_url":"https://api.github.com/users/fw-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":60429431,"name":"fwdocker","full_name":"fw-dev/fwdocker","owner":{"login":"fw-dev","id":1348333,"avatar_url":"https://avatars.githubusercontent.com/u/1348333?v=3","gravatar_id":"","url":"https://api.github.com/users/fw-dev","html_url":"https://github.com/fw-dev","followers_url":"https://api.github.com/users/fw-dev/followers","following_url":"https://api.github.com/users/fw-dev/following{/other_user}","gists_url":"https://api.github.com/users/fw-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/fw-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw-dev/subscriptions","organizations_url":"https://api.github.com/users/fw-dev/orgs","repos_url":"https://api.github.com/users/fw-dev/repos","events_url":"https://api.github.com/users/fw-dev/events{/privacy}","received_events_url":"https://api.github.com/users/fw-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fw-dev/fwdocker","description":"A program to help install, run and configure the FileWave MDM product.","fork":false,"url":"https://api.github.com/repos/fw-dev/fwdocker","forks_url":"https://api.github.com/repos/fw-dev/fwdocker/forks","keys_url":"https://api.github.com/repos/fw-dev/fwdocker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fw-dev/fwdocker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fw-dev/fwdocker/teams","hooks_url":"https://api.github.com/repos/fw-dev/fwdocker/hooks","issue_events_url":"https://api.github.com/repos/fw-dev/fwdocker/issues/events{/number}","events_url":"https://api.github.com/repos/fw-dev/fwdocker/events","assignees_url":"https://api.github.com/repos/fw-dev/fwdocker/assignees{/user}","branches_url":"https://api.github.com/repos/fw-dev/fwdocker/branches{/branch}","tags_url":"https://api.github.com/repos/fw-dev/fwdocker/tags","blobs_url":"https://api.github.com/repos/fw-dev/fwdocker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fw-dev/fwdocker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fw-dev/fwdocker/git/refs{/sha}","trees_url":"https://api.github.com/repos/fw-dev/fwdocker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fw-dev/fwdocker/statuses/{sha}","languages_url":"https://api.github.com/repos/fw-dev/fwdocker/languages","stargazers_url":"https://api.github.com/repos/fw-dev/fwdocker/stargazers","contributors_url":"https://api.github.com/repos/fw-dev/fwdocker/contributors","subscribers_url":"https://api.github.com/repos/fw-dev/fwdocker/subscribers","subscription_url":"https://api.github.com/repos/fw-dev/fwdocker/subscription","commits_url":"https://api.github.com/repos/fw-dev/fwdocker/commits{/sha}","git_commits_url":"https://api.github.com/repos/fw-dev/fwdocker/git/commits{/sha}","comments_url":"https://api.github.com/repos/fw-dev/fwdocker/comments{/number}","issue_comment_url":"https://api.github.com/repos/fw-dev/fwdocker/issues/comments{/number}","contents_url":"https://api.github.com/repos/fw-dev/fwdocker/contents/{+path}","compare_url":"https://api.github.com/repos/fw-dev/fwdocker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fw-dev/fwdocker/merges","archive_url":"https://api.github.com/repos/fw-dev/fwdocker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fw-dev/fwdocker/downloads","issues_url":"https://api.github.com/repos/fw-dev/fwdocker/issues{/number}","pulls_url":"https://api.github.com/repos/fw-dev/fwdocker/pulls{/number}","milestones_url":"https://api.github.com/repos/fw-dev/fwdocker/milestones{/number}","notifications_url":"https://api.github.com/repos/fw-dev/fwdocker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fw-dev/fwdocker/labels{/name}","releases_url":"https://api.github.com/repos/fw-dev/fwdocker/releases{/id}","deployments_url":"https://api.github.com/repos/fw-dev/fwdocker/deployments","created_at":"2016-06-04T20:41:00Z","updated_at":"2016-11-07T21:49:46Z","pushed_at":"2016-12-13T12:34:54Z","git_url":"git://github.com/fw-dev/fwdocker.git","ssh_url":"git@github.com:fw-dev/fwdocker.git","clone_url":"https://github.com/fw-dev/fwdocker.git","svn_url":"https://github.com/fw-dev/fwdocker","homepage":null,"size":331,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fw-dev/fwdocker/pulls/1"},"html":{"href":"https://github.com/fw-dev/fwdocker/pull/1"},"issue":{"href":"https://api.github.com/repos/fw-dev/fwdocker/issues/1"},"comments":{"href":"https://api.github.com/repos/fw-dev/fwdocker/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/fw-dev/fwdocker/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/fw-dev/fwdocker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fw-dev/fwdocker/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/fw-dev/fwdocker/statuses/44e8a96a35541567fe9b1876c0bb11860d43c406"}}}}
{"actor":{"display_login":"thierryba"}}