aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfiles
diff options
context:
space:
mode:
authorDmitry Puzikov <dmitry.puzikov@tieto.com>2019-07-23 11:01:04 +0200
committerDmitry Puzikov <dmitry.puzikov@tieto.com>2019-07-23 11:01:04 +0200
commit633f50e7d81bbea7f2eca584c9ebb3e3244ecd5c (patch)
tree87b026912f956a0ce05c5f2d5af2daa23e2f7f9f /Dockerfiles
parentf0f1561ebc988c8db6d7b9d63e4713597ead14fa (diff)
Added required packages
Some scripts requires jar for updatinfg aap's jar on container restart. As aai-common image is based on jre, not sdk it doesn't have jar. Added fastjar as a replacement. Change-Id: Id3bda6430097f79ed2850b5c7fa6e0b64a77c903 Issue-ID: INT-1024 Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'Dockerfiles')
-rw-r--r--Dockerfiles/aai-common/Dockerfile.alpine3
-rw-r--r--Dockerfiles/aai-common/Dockerfile.ubuntu2
2 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfiles/aai-common/Dockerfile.alpine b/Dockerfiles/aai-common/Dockerfile.alpine
index 0ca3a6f2..915c511e 100644
--- a/Dockerfiles/aai-common/Dockerfile.alpine
+++ b/Dockerfiles/aai-common/Dockerfile.alpine
@@ -19,6 +19,7 @@ RUN \
DEPS="ca-certificates \
curl \
dpkg \
+ fastjar \
jq \
loksh \
bash \
@@ -28,6 +29,8 @@ RUN \
util-linux \
wget" \
&& apk add --no-cache ${DEPS} \
+ # need fastjar for some projects to update app's jar on container restart
+ && ln -snf /usr/bin/fastjar $JAVA_HOME/bin/jar \
# Get the dpkg to properly download and install that version compatible to install GOSU on the image
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
# Downloads the gosu command based on the dpkg version and gosu version supplied
diff --git a/Dockerfiles/aai-common/Dockerfile.ubuntu b/Dockerfiles/aai-common/Dockerfile.ubuntu
index df9c2470..d81579d4 100644
--- a/Dockerfiles/aai-common/Dockerfile.ubuntu
+++ b/Dockerfiles/aai-common/Dockerfile.ubuntu
@@ -18,7 +18,7 @@ RUN \
# Creates the group and user with the name aaiadmin for aai
#groupadd -r aaiadmin && useradd -r -g aaiadmin aaiadmin && \
# Put all the dependencies into this variable to easily install everything
- DEPS="ca-certificates curl git jq ksh libcurl3 netcat openjdk-8-jre-headless vim uuid-runtime wget" && \
+ DEPS="ca-certificates curl git fastjar jq ksh libcurl3 netcat openjdk-8-jre-headless vim uuid-runtime wget" && \
# Run the update before for the package manager to properly fetch install packages
apt-get update && \
# Install the recommended dependencies