Open bschonec opened 3 months ago
I'll take a look at this.
sry, we have no openshift knwoledge atm. but as far as i understand you try to build the container yourself from this repository?
we kindly recommend using the pre-builded images we provide on ghcr and docker hub.
we have version tags like 8.3.0-v1.3.0 or up2date builds on push with 8.3.0-main. same goes for the 7 release of puppetdb.
@rwaffen, thank you for your attention to this. The pre-built image doesn't work, either probably because of OpenShift's requirement that pods run as a non-root, random-ish UID. I'm working on a fix for that as well, but my OS knowledge is lacking.
I got past these errors by adding puma and rack to the Gemfile but I don't know how that affects builds on non-OpenShift platforms. Is there a way in the Gemfile to do something like:
if $BUILDENVIRONMENT = 'OPENSHIFT' then
include gem rack
include gem puma
end
??
sry for late reply:
you could try
# add a gem when env var test is set to true
gem 'rspec', '~> 3.0' if ENV['test'] == 'true'
In Red Hat Openshift 4.1, the puppetdb pod crashes after a successful build.
Steps I used to produce:
After Build completes successfully, but the Pod continuously crashes with the following error:
I'm a novice at Openshift so I don't have much else to provide. I know next to nothing about Ruby but perhaps the Gemfile or Rakefile need to be updated to include the Rack gem?