-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile.runtime
More file actions
37 lines (31 loc) · 1.32 KB
/
Dockerfile.runtime
File metadata and controls
37 lines (31 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# syntax=docker/dockerfile:1.6
ARG NES_BASE_TAG=local
FROM nebulastream/nes-development:${NES_BASE_TAG}
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root
ENV NES_HOME=/opt/mobilitynebula \
NES_BUILD_DIR=/opt/mobilitynebula/build
WORKDIR ${NES_HOME}
COPY . ${NES_HOME}
ENV PATH=${NES_HOME}/bin:${PATH}
RUN set -euxo pipefail; \
install -d ${NES_HOME}/bin ${NES_HOME}/Input ${NES_HOME}/Output; \
ln -sfn ${NES_HOME} /workspace; \
find "${NES_BUILD_DIR}" -type f -perm /111 -not -path '*/tests/*' \
\( -name 'nes-*' -o -name 'queries' \) -print0 | \
while IFS= read -r -d '' bin; do \
name=$(basename "${bin}"); \
install -Dm755 "${bin}" "${NES_HOME}/bin/${name}"; \
ln -sf "${NES_HOME}/bin/${name}" "/usr/local/bin/${name}"; \
done; \
if [ -f "${NES_BUILD_DIR}/nes-systests/systest/systest" ]; then \
install -Dm755 "${NES_BUILD_DIR}/nes-systests/systest/systest" "${NES_HOME}/bin/nes-systest"; \
ln -sf "${NES_HOME}/bin/nes-systest" "/usr/local/bin/nes-systest"; \
fi; \
if [ -x "${NES_HOME}/bin/nes-single-node-worker" ]; then \
ln -sf /usr/local/bin/nes-single-node-worker /usr/local/bin/nes-single-worker || true; \
fi; \
ldconfig
ENV LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
ENTRYPOINT []
CMD ["nes-single-node-worker"]