Open durandom opened 7 years ago
switching to the ruby onbuild image from docker https://hub.docker.com/_/ruby/ got me running
https://github.com/durandom/manageiq-kafka-client/commit/f5d5dee17497cc7f138309863b83277ed3b8f9c0
For one it looks like you typoed the RUBY_GEMS_ROOT
path: RUBY_GEMS_ROOT=/opt/rubies/raby-2.3.1/lib/ruby/gems/2.3.0
But that's not likely to be causing: /usr/bin/id: cannot find name for user ID 1001
/usr/bin/id: cannot find name for user ID 1001
is negleable here, thats from running the container with an unknown UID. Maybe I left id -a
in the entrypoint.sh
The failure is, that /home/app/.gem/...
is not in the GEM_PATH
and thats where my build installed all gems.
I think I want something as easy as https://github.com/durandom/manageiq-kafka-client/blob/master/persister/Dockerfile to build a container with my ruby script / app.
Not sure if thats a use case for our base ruby container. I'm fine with the docker ruby onbuild container for now...
I was trying to build upon this image to run a bundled ruby script and was running into various problems:
The entrypoint just
execs
Openshift assigns a random user to run the image:
This is my last error: