diff options
author | Taseer Ahmed <taseer94@gmail.com> | 2017-08-04 10:45:35 +0500 |
---|---|---|
committer | Mark Beierl <mark.beierl@dell.com> | 2017-08-17 15:09:47 +0000 |
commit | de09799887339c5af02d96e20bb417fa65dbc8d1 (patch) | |
tree | 7a6bf31b96ec3f65f2d28ef440a8b7c1a8ce2366 /docker/storperf-master/Dockerfile | |
parent | 1d3a2a843e03b8e36d6ac2069fdb1e143b08c91c (diff) |
Support for Docker images on ARM processors.
- Usage: docker build --build-arg ARCH=<arch_type> .
Change-Id: I9018c627cef05e69492dbdefbe750d72cf98064d
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'docker/storperf-master/Dockerfile')
-rw-r--r-- | docker/storperf-master/Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/storperf-master/Dockerfile b/docker/storperf-master/Dockerfile index b19c12d..25eb956 100644 --- a/docker/storperf-master/Dockerfile +++ b/docker/storperf-master/Dockerfile @@ -15,7 +15,9 @@ # $ docker build -t opnfv/storperf-master:tag . # -FROM alpine:3.5 as storperf-builder +ARG ARCH=x86_64 +ARG ALPINE_VERSION=v3.6 +FROM multiarch/alpine:$ARCH-$ALPINE_VERSION as storperf-builder LABEL version="5.0" description="OPNFV Storperf Docker container" @@ -57,7 +59,7 @@ RUN pip install -r /storperf/requirements.pip # Build stripped down StorPerf image -FROM alpine:3.5 as storperf-master +FROM multiarch/alpine:$ARCH-$ALPINE_VERSION as storperf-master RUN apk --no-cache add --update \ python \ |