Skip to content

SOLR-15956: Docs for building a Docker image from the TGZ#572

Merged
HoustonPutman merged 3 commits intoapache:mainfrom
HoustonPutman:docker-binary-docs
Jan 31, 2022
Merged

SOLR-15956: Docs for building a Docker image from the TGZ#572
HoustonPutman merged 3 commits intoapache:mainfrom
HoustonPutman:docker-binary-docs

Conversation

@HoustonPutman
Copy link
Contributor

https://issues.apache.org/jira/browse/SOLR-15956

Note I have also renamed solr-<version>/docker/Dockerfile.local to solr-<version>/docker/Dockerfile in the distribution, as I don't think there would be any confusion there and it is just cleaner. It's completely compatible with the official Docker image, just uses the binary distribution instead of downloading official releases.

As a last non-doc change, I added back in the logic to remove the Dockerfile from the Docker image. This is because without this logic, the official docker image would contain the local Dockerfile, which doesn't particularly make sense. Easier to just remove it as it doesn't provide value.

Will mention both above changes in the JIRA.

Copy link
Contributor

@janhoy janhoy left a comment

Choose a reason for hiding this comment

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

Great work. I understand and like the improvements to the build.

Feel free to accept or reject nit-picks about casing etc. I feel the README may be confusing since it is the same in git, src-release and binary-release, but it can be fixed with some wording.

RUN set -ex; \
(cd /opt; ln -s solr-*/ solr); \
rm -Rf /opt/solr/docs;
rm -Rf /opt/solr/docs /opt/solr/docker/Dockerfile;
Copy link
Contributor

Choose a reason for hiding this comment

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

This will leave behind a docker/ folder with a README.md. Could just as well remove the folder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't because it also contains docker/scripts which is obviously very important 🙂 . We don't remove the other README.md files, so no real reason to do it explicitly here.

Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
@HoustonPutman
Copy link
Contributor Author

Thanks for the suggestions!

@HoustonPutman HoustonPutman merged commit f19b9e8 into apache:main Jan 31, 2022
@HoustonPutman HoustonPutman deleted the docker-binary-docs branch January 31, 2022 16:26
HoustonPutman added a commit that referenced this pull request Jan 31, 2022
* Rename "Dockerfile.local" to "Dockerfile" in the TGZ
* Remove the Dockerfile from the Docker image, as it is not needed there.

Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
(cherry picked from commit f19b9e8)
HoustonPutman added a commit that referenced this pull request Jan 31, 2022
* Rename "Dockerfile.local" to "Dockerfile" in the TGZ
* Remove the Dockerfile from the Docker image, as it is not needed there.

Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
(cherry picked from commit f19b9e8)
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.

2 participants