php - Custom s2i in OpenShift as an Image Stream - permissions error -


i have using custom source-to-image project build drupal images, run on openshift.

the s2i project works when run locally, cli.

i tried set in openshift using instructions https://docs.openshift.com/container-platform/3.4/dev_guide/managing_images.html#writing-image-streams-for-s2i-builders.

s2i project

the drupal s2i project located @ https://github.com/hughestech/s2i-shepherd-drupal

imagestream

my yam file looks like:

apiversion: v1 kind: imagestream metadata:   name: drupal   annotations:     openshift.io/display-name: drupal  spec:   tags:     - name: '2.0'        annotations:         openshift.io/display-name: drupal builder          description: >-            build , run drupal applications on centos 7.          iconclass: icon-php          samplerepo: 'https://github.com/hughestech/open_social.git'          tags: 'builder,php, drupal'          version: '1.0'        from:         kind: dockerimage         name: '172.30.1.121:5000/test/s2i-shepherd-drupal:latest' 

however, when run (via openshift web console > catalog > php, following errors:

cp: cannot create regular file '././phpunit.xml.dist': permission denied cp: cannot create regular file '././social.info.yml': permission denied cp: cannot create regular file '././social.install': permission denied cp: cannot create regular file '././social.profile': permission denied cp: cannot create regular file '././.gitignore': permission denied cp: cannot create regular file '././.travis.yml': permission denied cp: cannot create regular file '././readme.md': permission denied cp: cannot create regular file '././build-social.make': permission denied cp: cannot create regular file '././composer.json': permission denied cp: cannot create regular file '././drupal-org-core.make': permission denied cp: cannot create regular file '././drupal-org.make': permission denied cp: cannot create directory '././.git': permission denied cp: cannot create directory '././config': permission denied cp: cannot create directory '././libraries': permission denied cp: cannot create directory '././modules': permission denied cp: cannot create directory '././themes': permission denied cp: cannot create directory '././src': permission denied cp: cannot create directory '././tests': permission denied 

clearly need give permissions - how , where? need in openshift? directory source being pulled exist in s2i project, or created when s2i process runs in openshift?

build pod error

/apache2-foreground: 11: [: /var/www/html: unexpected operator ah00558: apache2: not reliably determine server's qualified domain name, using 10.128.1.64. set 'servername' directive globally suppress message [tue sep 12 13:07:05.474838 2017] [core:emerg] [pid 1] (13)permission denied: ah00023: couldn't create rewrite-map mutex (file /var/lock/apache2/rewrite-map.1) ah00016: configuration failed 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -