forked from apache/gravitino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apache#2326] feat(docker): support build with arg platform=all on Do…
…ris docker image (apache#2327) ### What changes were proposed in this pull request? support `platform=all` for doris images ### Why are the changes needed? Fix: apache#2326 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? local ``` ./build-docker.sh --type doris --image doris_ci --tag test ./build-docker.sh --platform linux/arm64 --type doris --image doris_ci --tag test ./build-docker.sh --platform linux/amd64 --type doris --image doris_ci --tag test ```
- Loading branch information
1 parent
2ea1eef
commit 6ba1a88
Showing
3 changed files
with
79 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,8 @@ | |
FROM ubuntu:22.04 | ||
LABEL maintainer="[email protected]" | ||
|
||
ARG DORIS_PACKAGE_NAME | ||
ARG DORIS_FILE_NAME | ||
ARG TARGET_ARCH | ||
ARG DORIS_VERSION | ||
ARG TARGETARCH | ||
|
||
WORKDIR / | ||
|
||
|
@@ -42,9 +41,8 @@ RUN ARCH=$(uname -m) && \ | |
|
||
################################################################################# | ||
## add files | ||
|
||
ADD packages/${DORIS_FILE_NAME} /opt | ||
RUN ln -s /opt/${DORIS_PACKAGE_NAME} ${DORIS_HOME} | ||
ADD packages/doris-${TARGETARCH}.tar.xz /opt/ | ||
RUN ln -s /opt/apache-doris-${DORIS_VERSION}-bin-* ${DORIS_HOME} | ||
|
||
COPY start.sh ${DORIS_HOME} | ||
|
||
|
@@ -56,4 +54,4 @@ WORKDIR ${DORIS_HOME} | |
EXPOSE 8030 | ||
EXPOSE 9030 | ||
|
||
CMD ["bash", "start.sh"] | ||
CMD ["bash", "start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters