diff --git a/presto-native-execution/entrypoint.sh b/presto-native-execution/entrypoint.sh new file mode 100755 index 0000000000000..57f9b68df7a3b --- /dev/null +++ b/presto-native-execution/entrypoint.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +GLOG_logtostderr=1 presto_server --etc-dir=/opt/presto-server/etc diff --git a/presto-native-execution/scripts/dockerfiles/prestissimo-runtime.dockerfile b/presto-native-execution/scripts/dockerfiles/prestissimo-runtime.dockerfile index a8ea6c5a40c19..963ddee7ac480 100644 --- a/presto-native-execution/scripts/dockerfiles/prestissimo-runtime.dockerfile +++ b/presto-native-execution/scripts/dockerfiles/prestissimo-runtime.dockerfile @@ -41,4 +41,7 @@ ENV BUILD_DIR="" COPY --chmod=0775 --from=prestissimo-image /prestissimo/${BUILD_BASE_DIR}/${BUILD_DIR}/presto_cpp/main/presto_server /usr/bin/ COPY --chmod=0775 --from=prestissimo-image /runtime-libraries/* /usr/lib64/prestissimo-libs/ +COPY --chmod=0775 ./entrypoint.sh /opt/entrypoint.sh RUN echo "/usr/lib64/prestissimo-libs" > /etc/ld.so.conf.d/prestissimo.conf && ldconfig + +ENTRYPOINT ["/opt/entrypoint.sh"]