Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer Docker image, fix Teiid typos #17

Closed
wants to merge 3 commits into from

Conversation

emmanuelbernard
Copy link
Member

No description provided.

@@ -0,0 +1,136 @@
= Running infinispan.github.io within Docker

The following instructions allow you to run hibernate.org within
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hibernate.org?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've fixed the incorrect reference and forced push.


# install the required dependencies to compile native extensions
RUN dnf -y install gcc-c++ make ruby-devel libxml2-devel libxslt-devel findutils git ruby
RUN dnf -y install wget # needed by the website to fetch resources

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those two RUN could be collapsed in a single line to minimize number of layers

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an interesting debate. I understand the demise of Docker caching but for that specific image maintained by non docker experts and used on the desktop (not in prod or anything), is it a good trade off to collapse these layers? I'm open to collapse but it has a bit of a readability cost.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second line just installs wget, so it actually does not help the readability

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do it but the wget for example is not required by the hibernate version of this.

@gustavocoding
Copy link

@emmanuelbernard looks good!
Question: would that strategy work with a pre-build docker image (ideally as an automated build on https://hub.docker.com/) to avoid having to build it everytime? TBH It's a bit tedious to wait for it 😄
This could be a later enhancement though, not for this PR.

@emmanuelbernard
Copy link
Member Author

I have squasked a few Docker layers as per @gustavonalle 's comments.

@gustavonalle we could push it to Docker Hub. Caveat I am not familiar with that yet. The only thing that really chagrins me is that rake setup produces different outputs depending on Gemfile.lock, so I suspect that the same image being rebuild with a different Gemfil.lock (downloaded as part of git clone) would not be rebuilt if layer caching is enabled. But I guess that does not affect the Docker Hub vs manual build logic.

@tristantarrant
Copy link
Member

Pushed, sir

@emmanuelbernard
Copy link
Member Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants