Add Dockerfile and docs for building Cloudberry Docker Images#1607
Add Dockerfile and docs for building Cloudberry Docker Images#1607tuhaihe wants to merge 2 commits intoapache:mainfrom
Conversation
|
Try: |
4d2da58 to
0726d7d
Compare
|
Hi @leborchuk Could you take a look at this when you have time? For the 2.1 release, I'm thinking it might be helpful if we provide a single-node Docker image for quick testing and evaluation other than DEB/RPM. In this PR, I added a Dockerfile to build a Cloudberry image based on Rocky Linux 9. Would love to hear your thoughts on whether this approach makes sense, and if you have any suggestions for improvement. |
leborchuk
left a comment
There was a problem hiding this comment.
Checked, looks great, I built container on my dev environment and could execute simple queries. That's enough for the simple test )
The only issue I see that my container build ~30 minutes, because of long repository copying and package installations. But the overall approach is good for unexperienced user - just execute commands 1 - by - 1.
I even think we could publish containers like these together with release binaries (in docker registry), so users could just use image with name like apache/incubator-cloudberry:cbdb-simple-rocky9-2.1 and skip a long build stage. But it's just an idea ))
|
|
||
| ## Build | ||
|
|
||
| Build from the current source tree (multi-stage build using a pre-built builder image): |
There was a problem hiding this comment.
cd root directory of cloned main repo, my first launch was from devops/build/packaging/docker/ directory and it of course does not work
Agree. There is no need for Users to build the image from scratch. |
Fixes #ISSUE_Number
What does this PR do?
Type of Change
Breaking Changes
Test Plan
make installcheckmake -C src/test installcheck-cbdb-parallelImpact
Performance:
User-facing changes:
Dependencies:
Checklist
Additional Context
CI Skip Instructions