Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2372 from ZhiHanZ/retry
[Docker/Release]fix docker build and release issues
- Loading branch information
Showing
8 changed files
with
61 additions
and
32 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
FROM debian as installer | ||
ARG version | ||
COPY ./scripts/installer/install-databend.sh /install.sh | ||
ARG VERSION | ||
ENV VERSION ${VERSION} | ||
COPY ./scripts/installer/install-bendctl.sh /install.sh | ||
RUN apt update \ | ||
&& apt install curl tar -y | ||
# hack ssl issue in curl | ||
RUN update-ca-certificates -f | ||
RUN chmod +x /install.sh | ||
RUN /install.sh $version | ||
RUN /install.sh -v ${VERSION} | ||
# double check whether binaries could run on host architecture | ||
RUN timeout 3 /root/.databend/bin/databend-query || true | ||
RUN timeout 3 /root/.databend/bin/databend-meta || true | ||
RUN /root/.databend/bin/bendctl package fetch --databend_dir /root/.databend/ ${VERSION} | ||
RUN timeout 3 /root/.databend/test/bin/${VERSION}/databend-query || true | ||
RUN timeout 3 /root/.databend/test/bin/${VERSION}/databend-query || true | ||
# CI environment build image under GLIBC 2.29 and debian:buster only run GLIBC 2.28 | ||
FROM debian:bullseye | ||
COPY --from=installer /root/.databend/bin/databend-query /databend-query | ||
COPY --from=installer /root/.databend/bin/databend-meta /databend-meta | ||
ARG VERSION | ||
ENV VERSION ${VERSION} | ||
COPY --from=installer /root/.databend/test/bin/${VERSION}/databend-query /databend-query | ||
COPY --from=installer /root/.databend/test/bin/${VERSION}/databend-meta /databend-meta | ||
COPY ./docker/bootstrap.sh /bootstrap.sh | ||
COPY ./docker/databend-query-docker.toml /databend-query.toml | ||
ENTRYPOINT ["/bootstrap.sh"] |