openshift-evangelists / workshopper

Workshop content rendering tool
63 stars 42 forks source link

Create workshopper image in OpenShift #65

Open olaf-meyer opened 5 years ago

olaf-meyer commented 5 years ago

Hello,

I'd like to use the workshopper in my company with the limitation, that I can only use OpenShift for building the workshopper docker image and to use the default RedHat rpm repositories. I'm modified the Dockerfile in that manner that it is using the RHEL 7 image as a base image and enabled the rhscl repository to install ruby 2.5. Furthermore
Dockerfile.txt

the option "ADD --chown=workshopper:root ..." was not working with OpenShift 3.9. Also I added to commands with "RUN gem ..." or "RUN bundle ..." the prefix "source scl_source enable rh-ruby25" to test the execution.

The OpenShift build breaks at after updating the system gems with the error message "ERROR: While executing gem ... (Errno::ENOENT) No such file or directory @ dir_chdir - /opt/rh/rh-ruby25/root/usr/share/gems/gems/rubygems-update-2.7.7". Do you know were the error is in my Dockerfile?

This is my current setup: oc v3.10.0+dd10d17 kubernetes v1.10.0+b81c8f8 features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://master.xxx:443 openshift v3.9.30 kubernetes v1.9.1+a0ce1bc657

Also I attached my modified Dockerfile.

Thanks very much in advance,

Olaf