Dynamically determine image architecture 37/43137/2
authorMohammed Naser <mnaser@vexxhost.com>
Mon, 16 Apr 2018 19:23:31 +0000 (12:23 -0700)
committerJames Forsyth <jf2512@att.com>
Wed, 23 May 2018 20:41:45 +0000 (20:41 +0000)
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 <mnaser@vexxhost.com>
src/main/docker/Dockerfile

index ad402b2..8578ef6 100644 (file)
@@ -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