From: Mohammed Naser Date: Mon, 16 Apr 2018 19:23:31 +0000 (-0700) Subject: Dynamically determine image architecture X-Git-Tag: 1.3.1~24 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fsearch-data-service.git;a=commitdiff_plain;h=9fcd2fde2324077ba019cbf845caec4378599613 Dynamically determine image architecture The image architecture is currently hardcoded, this patch removes that hardcoded value to allow for ARM64 builds to go through. Change-Id: I282e75b089147cab5006db869acca95954f3c528 Issue-ID: CIMAN-154 Signed-off-by: Mohammed Naser --- diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index ad402b2..8578ef6 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y software-properties-common ## sudo -E is required to preserve the environment. If you remove that line, it will most like freeze at this step RUN sudo -E add-apt-repository ppa:openjdk-r/ppa && apt-get update && apt-get install -y openjdk-8-jdk ## Setup JAVA_HOME, this is useful for docker commandline -ENV JAVA_HOME usr/lib/jvm/java-8-openjdk-amd64 +ENV JAVA_HOME usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture) RUN export JAVA_HOME # Build up the deployment folder structure