Skip to content

Commit

Permalink
jar not available with jre.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Sep 18, 2024
1 parent 97fd748 commit ccc016f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ WORKDIR $CATALINA_BASE
# - netcat: just for debugging. 'nc'.
# - apache2-utils: we use rotatelogs to rotate catalina.out
# - file: used by mediatools, generally useful
# - unzip: to unzip the ware in on build

COPY eu-central-1-bundle.pem /tmp
COPY importcerts.sh /tmp
Expand All @@ -66,7 +67,7 @@ RUN keytool -list -cacerts > /tmp/cacerts.before && \
# conf/Catalina/localhost Otherwise 'Unable to create directory for deployment: [/usr/local/catalina-base/conf/Catalina/localhost]'
RUN set -eux && \
apt-get update && apt-get -y upgrade && \
apt-get -y install less ncal procps curl rsync dnsutils netcat apache2-utils vim-tiny psmisc inotify-tools gawk file && \
apt-get -y install less ncal procps curl rsync dnsutils netcat apache2-utils vim-tiny psmisc inotify-tools gawk file unzip && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /conf && \
chmod 775 /conf
Expand Down Expand Up @@ -171,7 +172,7 @@ ONBUILD RUN (\
mkdir -p ${CONTEXT} && \
chmod 775 ${CONTEXT} && \
cd ${CONTEXT} && \
jar xf /tmp/app.war && \
unzip /tmp/app.war && \
rm /tmp/app.war &&\
if [ "$CLUSTERING" == "true" ] ; then \
(cd ${CATALINA_BASE} && rm -r work && mkdir /data/work && chmod 2775 /data/work && ln -s /data/work work) && \
Expand Down

0 comments on commit ccc016f

Please sign in to comment.