@@ -41,8 +41,10 @@ RUN cp `ls -t distribution/target/*.tar.gz | head -1` /opengrok.tar.gz
4141# Store the version in a file so that the tools can report it.
4242RUN /mvn/mvnw help:evaluate -Dexpression=project.version -q -DforceStdout > /mvn/VERSION
4343
44- FROM tomcat:10.1.19 -jdk17
44+ FROM tomcat:10.1.30 -jdk17
4545LABEL maintainer="https://github.com/oracle/opengrok"
46+ LABEL org.opencontainers.image.source="https://github.com/oracle/opengrok"
47+ LABEL org.opencontainers.image.description="OpenGrok code search"
4648
4749# Add Perforce apt source.
4850# hadolint ignore=DL3008,DL3009
@@ -64,11 +66,11 @@ RUN apt-get update && \
6466# hadolint ignore=DL3008,DL3059
6567RUN architecture=$(uname -m) && if [[ "$architecture" == "aarch64" ]]; then \
6668 echo "aarch64: do not install helix-p4d." ; else \
67- apt-get install --no-install-recommends -y helix-p4d; fi
69+ apt-get install --no-install-recommends -y helix-p4d || echo "Failed to install Perforce" ; fi
6870
6971# compile and install universal-ctags
7072# hadolint ignore=DL3003,DL3008
71- RUN apt-get install --no-install-recommends -y pkg-config automake build-essential && \
73+ RUN apt-get install --no-install-recommends -y pkg-config automake build-essential libxml2-dev && \
7274 git clone https://github.com/universal-ctags/ctags /root/ctags && \
7375 cd /root/ctags && ./autogen.sh && ./configure && make && make install && \
7476 apt-get remove -y automake build-essential && \
@@ -77,19 +79,17 @@ RUN apt-get install --no-install-recommends -y pkg-config automake build-essenti
7779 apt-get clean && \
7880 rm -rf /var/lib/apt/lists/*
7981
80- # Update the Python tooling in order to successfully install the opengrok-tools package.
81- # hadolint ignore=DL3013
82- RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools
83-
8482# prepare OpenGrok binaries and directories
8583# hadolint ignore=DL3010
8684COPY --from=build opengrok.tar.gz /opengrok.tar.gz
8785# hadolint ignore=DL3013
8886RUN mkdir -p /opengrok /opengrok/etc /opengrok/data /opengrok/src && \
8987 tar -zxvf /opengrok.tar.gz -C /opengrok --strip-components 1 && \
9088 rm -f /opengrok.tar.gz && \
91- python3 -m pip install --no-cache-dir /opengrok/tools/opengrok-tools.tar.gz && \
92- python3 -m pip install --no-cache-dir Flask Flask-HTTPAuth waitress # for /reindex REST endpoint handled by start.py
89+ python3 -m venv /venv
90+ ENV PATH=/venv/bin:$PATH
91+ RUN /venv/bin/python3 -m pip install --no-cache-dir /opengrok/tools/opengrok-tools.tar.gz && \
92+ /venv/bin/python3 -m pip install --no-cache-dir Flask Flask-HTTPAuth waitress # for /reindex REST endpoint handled by start.py
9393
9494COPY --from=build /mvn/VERSION /opengrok/VERSION
9595
0 commit comments