Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background and Suggested Fix
Somehow the caching as described in the README.md file didn't work for me. It might be, because I need additional gems for my Jekyll builds, but I don't exactly know. The changes in this commit seem to fix the problem.
GEM_PATH
. This is done to keep/usr/gem
in the list of directories that ruby looks for gems. So far ruby only looks in/usr/gem
for gems, becauseGEM_HOME
points to that directory. But because I want to overwriteGEM_HOME
with/opt/gem
the/usr/gem
directory has to be explicitly saved inGEM_PATH
.GEM_HOME
environment variable. This way ruby looks for gems in/opt/gem
./opt/gem
directory in the container. This way, additionally installed gems are stored persistently on the host and can be used in subsequent containers that are started from the container image.Missing Tests Build
Unfortunately, I couldn't build the new image locally on my machine. It must have to do with the opts.yml files. But I have had this problem a long time (already with the images built by envygeeks). To fix this, I used the suggested changes in the pull request to build my one image on top of the images from envygeeks. And that worked.