Closed paulcalabro closed 5 years ago
@paulcalabro - we did some necessary refactoring a number of months ago to facilitate long-term maintenance of this Dockerfile
. In the process, it looks like we dropped something: ln -s /lib /lib64
What I like about the ln
"fix" is that it addresses this class of problems, without needing to hardcode paths in the configs.
Would you mind giving this a shot and seeing it that fixes it?
We removed it in this commit by accident https://github.com/cloudposse/bastion/commit/e85859e513b67efc02fde9a67b20505c9f9b6177#diff-3254677a7917c6c01f55212f86c57fbfL10
@osterman I actually came across the ln
fix when I was reviewing the git blame history. The reason why I hard coded it was because it's already set explicitly to lib64 here:
It looks like in a later stage, it's copied to lib64 as well.
I reviewed the change log, but I'm a little unsure as to why the symlink is preferred if the module will always be located in this folder. Could you please clarify?
I'll test out the symlink fix later today.
I reviewed the change log, but I'm a little unsure as to why the symlink is preferred if the module will always be located in this folder. Could you please clarify?
I don't have a strong opinion on this.
My experience has been that I spend more time fixing these kinds of problems than I need to, so the general fix of symlinking /lib64
to /lib
eliminates this whole class of problems. On the other hand, editing the file itself with the explicit path, fixes it only for this one occurance. I find when installing precompiled binaries built on other distros, that I need to add this symlink anyways, which is why my bias exists towards the symlink.
Thanks for the explanation as well as merging the PR! Cheers!
@paulcalabro thanks for taking the time to contribute the PR! =)
Thanks for sharing this image. It's pretty awesome!
Fixes #38