{"action":"created","comment":{"url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/comments/110085537","pull_request_review_id":31230703,"id":110085537,"diff_hunk":"@@ -0,0 +1,62 @@\n+#!/usr/bin/env bash\n+\n+set -eux;\n+\n+# Initialize variables\n+HTTPD_CONF=\"/etc/httpd/conf/httpd.conf\"\n+HTTPD_WELCOME=\"/etc/httpd/conf.d/welcome.conf\"\n+INSTALL_PKGS2=\"httpd nss_wrapper gettext\";\n+PHP_REQUIRED=\"php php-mysql php-pgsql php-xml php-xmlrpc php-gd\"\n+PHP_GOOD_TO_HAVE=\"php-xcache php-intl php-soap php-xmlrpc php-mbstring\"\n+PHP_PACKAGES=\"${PHP_REQUIRED} ${PHP_GOOD_TO_HAVE}\"\n+INSTALL_PKGS1=\"wget\";\n+INSTALL_PKGS=\"${INSTALL_PKGS1} ${INSTALL_PKGS2} ${PHP_PACKAGES}\"\n+MOODLE=\"moodle\"\n+MOODLE_DOWNLOAD_BASE=\"https://download.moodle.org\"\n+MOODLE_VERSION=${MOODLE_VERSION-\"latest\"}\n+MOODLE_NODOT_VERSION=${MOODLE_NODOT_VERSION:-\"moodle\"}\n+MOODLE_TAR=\"${MOODLE}-${MOODLE_VERSION}.tgz\"\n+MOODLE_DOWNLOAD_URL=\"${MOODLE_DOWNLOAD_BASE}/${MOODLE_NODOT_VERSION}/${MOODLE_TAR}\"\n+PHP_INI_LOC=\"/etc/php.ini\"\n+\n+export MOODLE_DATA=\"/var/moodledata\"\n+\n+# Setup necessary packages\n+yum -y install epel-release && yum -y install --skip-broken ${INSTALL_PKGS};\n+\n+# Install moodle\n+pushd /var/www;\n+wget ${MOODLE_DOWNLOAD_URL} && tar zxvf ${MOODLE_TAR} && mv /var/www/${MOODLE}/* /var/www/html;\n+mkdir -p /var/moodledata","path":"moodle/centos7/install.sh","position":43,"original_position":30,"commit_id":"fbec36bd09b26a67240f89656b5d7de4b249084c","original_commit_id":"22f3951e6f6343fae1cbb85ed2b97179c28239ce","user":{"login":"mohammedzee1000","id":8547729,"avatar_url":"https://avatars0.githubusercontent.com/u/8547729?v=3","gravatar_id":"","url":"https://api.github.com/users/mohammedzee1000","html_url":"https://github.com/mohammedzee1000","followers_url":"https://api.github.com/users/mohammedzee1000/followers","following_url":"https://api.github.com/users/mohammedzee1000/following{/other_user}","gists_url":"https://api.github.com/users/mohammedzee1000/gists{/gist_id}","starred_url":"https://api.github.com/users/mohammedzee1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohammedzee1000/subscriptions","organizations_url":"https://api.github.com/users/mohammedzee1000/orgs","repos_url":"https://api.github.com/users/mohammedzee1000/repos","events_url":"https://api.github.com/users/mohammedzee1000/events{/privacy}","received_events_url":"https://api.github.com/users/mohammedzee1000/received_events","type":"User","site_admin":false},"body":"Yea thats always a problem. I had this issue with other containers as well. As soon as i added VOLUME /somepath, anywhere in dockerfile. Then any fix-permissions that i ran on /somepath broke on openshift. But as soon as i removed that the fix-permissions took affect properly and it worked fine on openshift.\r\n\r\nI will attempt what you said with run.sh howver, lets see if it works.","created_at":"2017-04-06T06:20:08Z","updated_at":"2017-04-06T06:20:08Z","html_url":"https://github.com/CentOS/CentOS-Dockerfiles/pull/130#discussion_r110085537","pull_request_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/comments/110085537"},"html":{"href":"https://github.com/CentOS/CentOS-Dockerfiles/pull/130#discussion_r110085537"},"pull_request":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/130","id":114136602,"html_url":"https://github.com/CentOS/CentOS-Dockerfiles/pull/130","diff_url":"https://github.com/CentOS/CentOS-Dockerfiles/pull/130.diff","patch_url":"https://github.com/CentOS/CentOS-Dockerfiles/pull/130.patch","issue_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/issues/130","number":130,"state":"open","locked":false,"title":"[WIP] Added dockerfiles to create container for moodle.","user":{"login":"mohammedzee1000","id":8547729,"avatar_url":"https://avatars0.githubusercontent.com/u/8547729?v=3","gravatar_id":"","url":"https://api.github.com/users/mohammedzee1000","html_url":"https://github.com/mohammedzee1000","followers_url":"https://api.github.com/users/mohammedzee1000/followers","following_url":"https://api.github.com/users/mohammedzee1000/following{/other_user}","gists_url":"https://api.github.com/users/mohammedzee1000/gists{/gist_id}","starred_url":"https://api.github.com/users/mohammedzee1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohammedzee1000/subscriptions","organizations_url":"https://api.github.com/users/mohammedzee1000/orgs","repos_url":"https://api.github.com/users/mohammedzee1000/repos","events_url":"https://api.github.com/users/mohammedzee1000/events{/privacy}","received_events_url":"https://api.github.com/users/mohammedzee1000/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-04T12:31:01Z","updated_at":"2017-04-06T06:20:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"daf003ad172b82a61a754587e51a81df4a1f4521","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/130/commits","review_comments_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/130/comments","review_comment_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/issues/130/comments","statuses_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/statuses/fbec36bd09b26a67240f89656b5d7de4b249084c","head":{"label":"mohammedzee1000:2017-04-03_16-56-49-moodle_container","ref":"2017-04-03_16-56-49-moodle_container","sha":"fbec36bd09b26a67240f89656b5d7de4b249084c","user":{"login":"mohammedzee1000","id":8547729,"avatar_url":"https://avatars0.githubusercontent.com/u/8547729?v=3","gravatar_id":"","url":"https://api.github.com/users/mohammedzee1000","html_url":"https://github.com/mohammedzee1000","followers_url":"https://api.github.com/users/mohammedzee1000/followers","following_url":"https://api.github.com/users/mohammedzee1000/following{/other_user}","gists_url":"https://api.github.com/users/mohammedzee1000/gists{/gist_id}","starred_url":"https://api.github.com/users/mohammedzee1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohammedzee1000/subscriptions","organizations_url":"https://api.github.com/users/mohammedzee1000/orgs","repos_url":"https://api.github.com/users/mohammedzee1000/repos","events_url":"https://api.github.com/users/mohammedzee1000/events{/privacy}","received_events_url":"https://api.github.com/users/mohammedzee1000/received_events","type":"User","site_admin":false},"repo":{"id":54933180,"name":"CentOS-Dockerfiles","full_name":"mohammedzee1000/CentOS-Dockerfiles","owner":{"login":"mohammedzee1000","id":8547729,"avatar_url":"https://avatars0.githubusercontent.com/u/8547729?v=3","gravatar_id":"","url":"https://api.github.com/users/mohammedzee1000","html_url":"https://github.com/mohammedzee1000","followers_url":"https://api.github.com/users/mohammedzee1000/followers","following_url":"https://api.github.com/users/mohammedzee1000/following{/other_user}","gists_url":"https://api.github.com/users/mohammedzee1000/gists{/gist_id}","starred_url":"https://api.github.com/users/mohammedzee1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohammedzee1000/subscriptions","organizations_url":"https://api.github.com/users/mohammedzee1000/orgs","repos_url":"https://api.github.com/users/mohammedzee1000/repos","events_url":"https://api.github.com/users/mohammedzee1000/events{/privacy}","received_events_url":"https://api.github.com/users/mohammedzee1000/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mohammedzee1000/CentOS-Dockerfiles","description":"Dockerfiles for various common implementations","fork":true,"url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles","forks_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/forks","keys_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/teams","hooks_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/hooks","issue_events_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/issues/events{/number}","events_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/events","assignees_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/assignees{/user}","branches_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/branches{/branch}","tags_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/tags","blobs_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/statuses/{sha}","languages_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/languages","stargazers_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/stargazers","contributors_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/contributors","subscribers_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/subscribers","subscription_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/subscription","commits_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/contents/{+path}","compare_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/merges","archive_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/downloads","issues_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/issues{/number}","pulls_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/pulls{/number}","milestones_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/milestones{/number}","notifications_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/labels{/name}","releases_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/releases{/id}","deployments_url":"https://api.github.com/repos/mohammedzee1000/CentOS-Dockerfiles/deployments","created_at":"2016-03-29T00:28:24Z","updated_at":"2016-10-23T12:53:12Z","pushed_at":"2017-04-05T11:44:19Z","git_url":"git://github.com/mohammedzee1000/CentOS-Dockerfiles.git","ssh_url":"git@github.com:mohammedzee1000/CentOS-Dockerfiles.git","clone_url":"https://github.com/mohammedzee1000/CentOS-Dockerfiles.git","svn_url":"https://github.com/mohammedzee1000/CentOS-Dockerfiles","homepage":null,"size":457,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"CentOS:master","ref":"master","sha":"8872668d979d2c8930ee48f7797ceb1fbe2769af","user":{"login":"CentOS","id":79192,"avatar_url":"https://avatars3.githubusercontent.com/u/79192?v=3","gravatar_id":"","url":"https://api.github.com/users/CentOS","html_url":"https://github.com/CentOS","followers_url":"https://api.github.com/users/CentOS/followers","following_url":"https://api.github.com/users/CentOS/following{/other_user}","gists_url":"https://api.github.com/users/CentOS/gists{/gist_id}","starred_url":"https://api.github.com/users/CentOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CentOS/subscriptions","organizations_url":"https://api.github.com/users/CentOS/orgs","repos_url":"https://api.github.com/users/CentOS/repos","events_url":"https://api.github.com/users/CentOS/events{/privacy}","received_events_url":"https://api.github.com/users/CentOS/received_events","type":"Organization","site_admin":false},"repo":{"id":22352334,"name":"CentOS-Dockerfiles","full_name":"CentOS/CentOS-Dockerfiles","owner":{"login":"CentOS","id":79192,"avatar_url":"https://avatars3.githubusercontent.com/u/79192?v=3","gravatar_id":"","url":"https://api.github.com/users/CentOS","html_url":"https://github.com/CentOS","followers_url":"https://api.github.com/users/CentOS/followers","following_url":"https://api.github.com/users/CentOS/following{/other_user}","gists_url":"https://api.github.com/users/CentOS/gists{/gist_id}","starred_url":"https://api.github.com/users/CentOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CentOS/subscriptions","organizations_url":"https://api.github.com/users/CentOS/orgs","repos_url":"https://api.github.com/users/CentOS/repos","events_url":"https://api.github.com/users/CentOS/events{/privacy}","received_events_url":"https://api.github.com/users/CentOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CentOS/CentOS-Dockerfiles","description":"Dockerfiles for various common implementations","fork":false,"url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles","forks_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/forks","keys_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/teams","hooks_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/hooks","issue_events_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/issues/events{/number}","events_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/events","assignees_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/assignees{/user}","branches_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/branches{/branch}","tags_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/tags","blobs_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/statuses/{sha}","languages_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/languages","stargazers_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/stargazers","contributors_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/contributors","subscribers_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/subscribers","subscription_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/subscription","commits_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/contents/{+path}","compare_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/merges","archive_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/downloads","issues_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/issues{/number}","pulls_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls{/number}","milestones_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/milestones{/number}","notifications_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/labels{/name}","releases_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/releases{/id}","deployments_url":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/deployments","created_at":"2014-07-28T18:00:49Z","updated_at":"2017-04-06T00:41:12Z","pushed_at":"2017-04-05T11:44:22Z","git_url":"git://github.com/CentOS/CentOS-Dockerfiles.git","ssh_url":"git@github.com:CentOS/CentOS-Dockerfiles.git","clone_url":"https://github.com/CentOS/CentOS-Dockerfiles.git","svn_url":"https://github.com/CentOS/CentOS-Dockerfiles","homepage":null,"size":280,"stargazers_count":840,"watchers_count":840,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":547,"mirror_url":null,"open_issues_count":44,"forks":547,"open_issues":44,"watchers":840,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/130"},"html":{"href":"https://github.com/CentOS/CentOS-Dockerfiles/pull/130"},"issue":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/issues/130"},"comments":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/CentOS/CentOS-Dockerfiles/statuses/fbec36bd09b26a67240f89656b5d7de4b249084c"}}}}
{"actor":{"display_login":"mohammedzee1000"}}