Closed cyberkov closed 2 years ago
Hello again :) I created a Dockerfile to reproduce the issue and hope that this will help: https://github.com/cyberkov/control-repo/tree/octodiff
Thanks again!
Running into the exact same issue. Will do some more troubleshooting on my side, but I'm curious if you (@cyberkov) ever managed to fix/work around this? Thanks!
Ok, so I found the issue. Only a limited set of environment variables are passed to the octocatalog-diff
bootstrap script mechanism[1]. The ruby container we are using has GEM_HOME
set to /usr/local/bundle
[2] which is not known to the bootstrap script.
Passing the extra --bootstrap-environment
argument with the GEM_HOME
variable to the octocatalog-diff
command_args
list (see lib/onceover/octocatalog/diff/cli.rb
) fixed this issue for me.
[1] https://github.com/github/octocatalog-diff/blob/master/doc/advanced-bootstrap.md [2] https://github.com/docker-library/ruby/blob/8e49e25b591d4cfa6324b6dada4f16629a1e51ce/2.5/buster/Dockerfile#L85
Also fixed by #12
@dylanratcliffe we can close this ticket, too.
Awesome thanks @tuxmea
Hello!
I am very sorry if this is the wrong place to report, but I tried literally everything to make it work and I failed. I am trying to set up onceover-octocatalog-diff as a test within my gitlab-ci pipeline and therefore need to run it within a docker container.
My Gemfile:
This is my .gitlab-ci.yml:
I commented out the Fileutils.rm part and ran octocataog-diff manually within the docker container:
If I try to require manually it'll work (within the container):
Sorry for this wall of text but I really hope you can help me with this issue. I'll be on the puppetcommunity slack as well if you need any further information to debug it.
Thanks in advance and thanks a lot for this really great project! Cheers Hannes
P.S.: On my Ubuntu 18.04 it works fine, but I don't want to put that one into the datacenter ;-)