diff options
author | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-08-15 13:45:56 +0200 |
---|---|---|
committer | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-08-15 13:45:56 +0200 |
commit | 649585b88b758d5c3e702446385ffe733ceea824 (patch) | |
tree | 70c4de510446414ee72e8c6a2e59f9f5b6f0bc7c /aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine | |
parent | fff2d1af7b401d6334c4b09868597dcc6c054e2b (diff) |
Created maven modules for aai-common docker images.
aai-common and aai-haproxy docker images can be build with maven.
Change-Id: Iffbc2f4984316e3acc35558bdde0dbea76388ada
Issue-ID: INT-1023
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine')
-rw-r--r-- | aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine b/aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine new file mode 100644 index 00000000..915c511e --- /dev/null +++ b/aai-common-docker/aai-common-images/src/main/docker/Dockerfile.alpine @@ -0,0 +1,39 @@ +FROM openjdk:8-jre-alpine3.9 + +# Set the version of the gosu command and if needs to be, it can be modified at runtime +ENV GOSU_VERSION 1.10 + +# For building the image in a proxy environment if necessary +ARG HTTP_PROXY +ARG HTTPS_PROXY +ARG no_proxy + +ENV HTTP_PROXY ${HTTP_PROXY} +ENV HTTPS_PROXY ${HTTPS_PROXY} +ENV http_proxy ${HTTP_PROXY} +ENV https_proxy ${HTTPS_PROXY} +ENV no_proxy 127.0.0.1,localhost,${no_proxy} + +RUN \ + # Put all the dependencies into this variable to easily install everything + DEPS="ca-certificates \ + curl \ + dpkg \ + fastjar \ + jq \ + loksh \ + bash \ + netcat-openbsd \ + openssl \ + shadow \ + 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 + && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \ + # Use GPG to install the gosu application locally + && chmod +x /usr/local/bin/gosu |