I have a private ruby gem in github that I'm using in another repository so when I build the docker container and it tries to perform the bundle install I get the following error:
Host key verification failed. fatal: Could not read from remote repository.
I've checked that my user has the rights to read this gem. The command that I'm using is this:
docker build \
-t quay.io/org/${APP}:${VERSION} \
.
And my Dockerfile is this simple file:
FROM ruby:2.4.2-onbuild
ENTRYPOINT ["./entrypoint.sh"]
Where the entrypoint.sh file it just perform this:
bundle exec ruby runner.rb
I guess that somehow I need to pass the user and the ssh-key into the container but I was not able to figure out how.