This is an automated email from the ASF dual-hosted git repository.
yuqi4733 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 45bb443fb [MINOR] fix: remove chmod in Dockerfile to decrease image
size (#4082)
45bb443fb is described below
commit 45bb443fb75945a71db7d2766402403de1dad9d3
Author: Kang <[email protected]>
AuthorDate: Fri Jul 5 11:11:24 2024 +0800
[MINOR] fix: remove chmod in Dockerfile to decrease image size (#4082)
### What changes were proposed in this pull request?
Decrease the size of the Docker image in ARM arch.
### Why are the changes needed?
chmod makes Docker image increase to 8.89GB, but it's not necessary for
user root.
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
Mannual/CI
---
catalogs/catalog-jdbc-doris/build.gradle.kts | 2 +-
dev/docker/doris/Dockerfile | 3 +--
docs/docker-image-details.md | 2 ++
integration-test/build.gradle.kts | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/catalogs/catalog-jdbc-doris/build.gradle.kts
b/catalogs/catalog-jdbc-doris/build.gradle.kts
index 65d6e0d58..0d01a5cc0 100644
--- a/catalogs/catalog-jdbc-doris/build.gradle.kts
+++ b/catalogs/catalog-jdbc-doris/build.gradle.kts
@@ -84,7 +84,7 @@ tasks {
tasks.test {
val skipUTs = project.hasProperty("skipTests")
doFirst {
- environment("GRAVITINO_CI_DORIS_DOCKER_IMAGE",
"datastrato/gravitino-ci-doris:0.1.4")
+ environment("GRAVITINO_CI_DORIS_DOCKER_IMAGE",
"datastrato/gravitino-ci-doris:0.1.5")
}
if (skipUTs) {
diff --git a/dev/docker/doris/Dockerfile b/dev/docker/doris/Dockerfile
index 2831bfae1..bcdc343b2 100644
--- a/dev/docker/doris/Dockerfile
+++ b/dev/docker/doris/Dockerfile
@@ -56,8 +56,7 @@ RUN ARCH=$(uname -m) && \
#################################################################################
## add files
ADD packages/doris-${TARGETARCH}.tar.xz /opt/
-RUN ln -s /opt/apache-doris-${DORIS_VERSION}-bin-* ${DORIS_HOME} && \
- chmod 755 "${DORIS_BE_HOME}/lib/doris_be"
+RUN ln -s /opt/apache-doris-${DORIS_VERSION}-bin-* ${DORIS_HOME}
COPY start.sh ${DORIS_HOME}
diff --git a/docs/docker-image-details.md b/docs/docker-image-details.md
index cfa0a8116..f7b30a2d6 100644
--- a/docs/docker-image-details.md
+++ b/docs/docker-image-details.md
@@ -215,6 +215,8 @@ Changelog
You can use this image to test Apache Doris.
Changelog
+- gravitino-ci-doris:0.1.5
+ - Remove the chmod command in the Dockerfile to decrease the size of the
Docker image.
- gravitino-ci-doris:0.1.4
- remove chmod in start.sh to accelerate the startup speed
diff --git a/integration-test/build.gradle.kts
b/integration-test/build.gradle.kts
index af26f0bc1..016142e0b 100644
--- a/integration-test/build.gradle.kts
+++ b/integration-test/build.gradle.kts
@@ -160,7 +160,7 @@ tasks.test {
environment("GRAVITINO_CI_HIVE_DOCKER_IMAGE",
"datastrato/gravitino-ci-hive:0.1.12")
environment("GRAVITINO_CI_TRINO_DOCKER_IMAGE",
"datastrato/gravitino-ci-trino:0.1.5")
environment("GRAVITINO_CI_KAFKA_DOCKER_IMAGE", "apache/kafka:3.7.0")
- environment("GRAVITINO_CI_DORIS_DOCKER_IMAGE",
"datastrato/gravitino-ci-doris:0.1.4")
+ environment("GRAVITINO_CI_DORIS_DOCKER_IMAGE",
"datastrato/gravitino-ci-doris:0.1.5")
environment("GRAVITINO_CI_RANGER_DOCKER_IMAGE",
"datastrato/gravitino-ci-ranger:0.1.0")
copy {