Skip to content

Commit fda422b

Browse files
committed
Enable more feature on published images
1 parent b553f71 commit fda422b

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/presto-release-publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,17 @@ jobs:
398398
working-directory: presto-native-execution
399399
run: |
400400
df -h
401-
docker compose build centos-native-runtime
401+
docker compose build --build-arg EXTRA_CMAKE_FLAGS="
402+
-DPRESTO_ENABLE_PARQUET=ON \
403+
-DPRESTO_ENABLE_REMOTE_FUNCTIONS=ON \
404+
-DPRESTO_ENABLE_JWT=ON \
405+
-DPRESTO_STATS_REPORTER_TYPE=PROMETHEUS \
406+
-DPRESTO_MEMORY_CHECKER_TYPE=LINUX_MEMORY_CHECKER \
407+
-DPRESTO_ENABLE_SPATIAL=ON \
408+
-DPRESTO_ENABLE_TESTING=OFF \
409+
-DPRESTO_ENABLE_S3=ON" \
410+
--build-arg NUM_THREADS=2 \
411+
centos-native-runtime
402412
403413
- name: Add release tag
404414
working-directory: presto-native-execution

presto-native-execution/scripts/dockerfiles/prestissimo-runtime.dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ ENV BUILD_DIR=""
2626

2727
RUN mkdir -p /prestissimo /runtime-libraries
2828
COPY . /prestissimo/
29-
RUN EXTRA_CMAKE_FLAGS=${EXTRA_CMAKE_FLAGS} \
30-
NUM_THREADS=${NUM_THREADS} make --directory="/prestissimo/" cmake-and-build BUILD_TYPE=${BUILD_TYPE} BUILD_DIR=${BUILD_DIR} BUILD_BASE_DIR=${BUILD_BASE_DIR}
29+
RUN --mount=type=cache,target=/root/.ccache,sharing=locked \
30+
EXTRA_CMAKE_FLAGS=${EXTRA_CMAKE_FLAGS} \
31+
NUM_THREADS=${NUM_THREADS} make --directory="/prestissimo/" cmake-and-build BUILD_TYPE=${BUILD_TYPE} BUILD_DIR=${BUILD_DIR} BUILD_BASE_DIR=${BUILD_BASE_DIR} && \
32+
ccache -sz -v
3133
RUN !(LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib:/usr/local/lib64 ldd /prestissimo/${BUILD_BASE_DIR}/${BUILD_DIR}/presto_cpp/main/presto_server | grep "not found") && \
3234
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib:/usr/local/lib64 ldd /prestissimo/${BUILD_BASE_DIR}/${BUILD_DIR}/presto_cpp/main/presto_server | awk 'NF == 4 { system("cp " $3 " /runtime-libraries") }'
3335

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ENV SUDO=" "
2222
# are required to avoid tzdata installation
2323
# to prompt for region selection.
2424
ENV TZ=${tz}
25+
ENV LDFLAGS="-no-pie"
2526

2627
RUN mkdir -p /scripts /velox/scripts
2728
COPY scripts /scripts

0 commit comments

Comments
 (0)