Skip to content

Commit 9c40d85

Browse files
committed
Fix ubuntu dependency docker file
1 parent fceedf4 commit 9c40d85

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

presto-native-execution/scripts/dockerfiles/ubuntu-22.04-dependency.dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,19 @@ COPY velox/scripts /velox/scripts
3636
# from https://github.com/facebookincubator/velox/pull/14016
3737
COPY velox/CMake/resolve_dependency_modules/arrow/cmake-compatibility.patch /velox
3838
ENV VELOX_ARROW_CMAKE_PATCH=/velox/cmake-compatibility.patch
39+
40+
RUN if [ "$(dpkg --print-architecture)" = "arm64" ]; then \
41+
apt update && \
42+
apt install -y software-properties-common && \
43+
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
44+
apt update && \
45+
apt install -y gcc-12 g++-12; \
46+
fi
47+
3948
# install rpm needed for minio install.
4049
RUN mkdir build && \
41-
(cd build && ../scripts/setup-ubuntu.sh && \
42-
apt install -y rpm && \
50+
(cd build && apt update && apt install -y rpm sudo && \
51+
../scripts/setup-ubuntu.sh && \
4352
../velox/scripts/setup-ubuntu.sh install_adapters && \
4453
../scripts/setup-adapters.sh ) && \
4554
rm -rf build

0 commit comments

Comments
 (0)