Skip to content

Commit fa05a58

Browse files
authored
Update Dockerfile for binary packager (ClickHouse#7456)
1 parent 04a6c6a commit fa05a58

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docker/packager/binary/Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,26 @@ RUN apt-get update -y \
5757
rename \
5858
wget
5959

60-
# Build and install tools for cross-linking to Darwin
61-
6260
ENV CC=clang-8
6361
ENV CXX=clang++-8
6462

6563
# libtapi is required to support .tbh format from recent MacOS SDKs
6664
RUN git clone https://github.com/tpoechtrager/apple-libtapi.git
6765
RUN cd apple-libtapi && INSTALLPREFIX=/cctools ./build.sh && ./install.sh
6866

67+
# Build and install tools for cross-linking to Darwin
6968
RUN git clone https://github.com/tpoechtrager/cctools-port.git
7069
RUN cd cctools-port/cctools && ./configure --prefix=/cctools --with-libtapi=/cctools --target=x86_64-apple-darwin && make install
7170

71+
# Download toolchain for Darwin
72+
RUN mkdir -p /build/cmake/toolchain/darwin-x86_64
7273
RUN wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.14-beta4/MacOSX10.14.sdk.tar.xz
73-
RUN tar xJf MacOSX10.14.sdk.tar.xz -C /cctools
74+
RUN tar --strip-components=1 xJf MacOSX10.14.sdk.tar.xz -C /build/cmake/toolchain/darwin-x86_64
75+
76+
# Download toolchain for ARM
77+
RUN mkdir -p /build/cmake/toolchain/linux-aarch64
78+
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz?revision=2e88a73f-d233-4f96-b1f4-d8b36e9bb0b9&la=en -O gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
79+
RUN tar --strip-components=1 xJf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz -C /build/cmake/toolchain/linux-aarch64
7480

7581
COPY build.sh /
7682
CMD ["/bin/bash", "/build.sh"]

0 commit comments

Comments
 (0)