[#2726] Add Dockerfile for Compile Gravitino using Docker
What changes were proposed in this pull request?
Add Dockerfile for Compile Gravitino using Docker
Why are the changes needed?
Gravitino community need to provide Docker images of the development environment, allowing developers to easily launch a Gravitino container and compile Gravitino within it
Fix: #2726
Does this PR introduce any user-facing change?
no
How was this patch tested?
a dockerfile
hi @TEOTEO520 Thank you interesting Gravitino. I have a question, How is this PR different from https://github.com/datastrato/gravitino/blob/main/dev/docker/gravitino/Dockerfile
We already have been able to create Gravitino Docker image with https://github.com/datastrato/gravitino/blob/main/dev/docker/build-docker.sh.
I haven't seen a Java project providing a Docker to compile. Is it a good practice?
hi @TEOTEO520 Thank you interesting Gravitino. I have a question, How is this PR different from https://github.com/datastrato/gravitino/blob/main/dev/docker/gravitino/Dockerfile
We already have been able to create Gravitino Docker image with https://github.com/datastrato/gravitino/blob/main/dev/docker/build-docker.sh.
hi @TEOTEO520 Thank you interesting Gravitino. I have a question, How is this PR different from https://github.com/datastrato/gravitino/blob/main/dev/docker/gravitino/Dockerfile
We already have been able to create Gravitino Docker image with https://github.com/datastrato/gravitino/blob/main/dev/docker/build-docker.sh.
The two are different. From your mention, my understanding is that in this image, Gravitino is already packaged and installed, and you can start the Gravitino project by simply running the relevant scripts. However, my intention was to provide an image that includes all the environments and third-party dependencies needed to package with the ./gradlew build command. A Docker created from this image can pull the Gravitino code using git clone, and then run ./gradlew assembleDistribution -x test in the corresponding directory to successfully generate the corresponding tar package. You can refer to the implementation of StarRocks for specifics. https://github.com/StarRocks/starrocks/blob/79d0bea0f8c792fa100589c66c6c3a5439dc3fdd/docker/dockerfiles/dev-env/dev-env.Dockerfile https://docs.starrocks.io/docs/developers/build-starrocks/Build_in_docker/#overview
I haven't seen a Java project providing a Docker to compile. Is it a good practice?
Currently, StarRocks provides an image that contains all the dependencies needed for packaging and running Gravitino, which you can use for reference.
Close this PR as it won't be needed; Please re-open one day we want to resume this.