diff options
author | mbeierl <mark.beierl@dell.com> | 2017-08-31 19:57:31 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-09-01 10:29:42 -0400 |
commit | 7ef0242a48088ba9038873f8d92992957d1b2b77 (patch) | |
tree | 115269f956b4fe4828f371bd869bd2e20718965c | |
parent | 21644ee3689be254791809c791a18fcce7495aa1 (diff) |
Re-instating docker build verify
Change-Id: I720ba0c8e413d5c61e8d6f9a13eae0441df53ccb
Signed-off-by: mbeierl <mark.beierl@dell.com>
-rwxr-xr-x | ci/remove_docker_container.sh | 2 | ||||
-rwxr-xr-x | ci/verify-build.sh | 12 | ||||
-rw-r--r-- | docker/local-docker-compose.yaml | 5 | ||||
-rw-r--r-- | docker/storperf-graphite/Dockerfile | 2 | ||||
-rw-r--r-- | docker/storperf-httpfrontend/Dockerfile | 4 | ||||
-rw-r--r-- | docker/storperf-master/Dockerfile | 2 | ||||
-rw-r--r-- | docker/storperf-reporting/Dockerfile | 2 | ||||
-rw-r--r-- | docker/storperf-swaggerui/Dockerfile | 4 |
8 files changed, 19 insertions, 14 deletions
diff --git a/ci/remove_docker_container.sh b/ci/remove_docker_container.sh index 1764034..297b14f 100755 --- a/ci/remove_docker_container.sh +++ b/ci/remove_docker_container.sh @@ -19,7 +19,7 @@ export CARBON_DIR=${ci}/job/carbon/ docker-compose -f local-docker-compose.yaml down -for container_name in storperf storperf-master storperf-swaggerui storperf-httpfrontend storperf-reporting +for container_name in storperf storperf-master storperf-swaggerui storperf-httpfrontend storperf-reporting storperf-graphite do container=`docker ps -a -q -f name=$container_name` if [ ! -z $container ] diff --git a/ci/verify-build.sh b/ci/verify-build.sh index 0139845..9911566 100755 --- a/ci/verify-build.sh +++ b/ci/verify-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -xe ############################################################################## # Copyright (c) 2017 Dell EMC and others. # @@ -11,22 +11,24 @@ cd `dirname $0` ci=`pwd` -exit 0 - cd ${ci}/../docker export ENV_FILE=${ci}/job/admin.rc export CARBON_DIR=${ci}/job/carbon/ +${ci}/remove_docker_container.sh + mkdir -p ${CARBON_DIR} touch ${ENV_FILE} if [ -z $ARCH ] then - ARCH=x86_64 + ARCH=$(uname -m) fi -export ARCH +export ARCH=${ARCH} + +echo Using $ARCH architecture docker-compose -f local-docker-compose.yaml down docker-compose -f local-docker-compose.yaml build diff --git a/docker/local-docker-compose.yaml b/docker/local-docker-compose.yaml index 96afc1e..fa956ea 100644 --- a/docker/local-docker-compose.yaml +++ b/docker/local-docker-compose.yaml @@ -40,7 +40,10 @@ services: storperf-graphite: container_name: "storperf-graphite" - build: storperf-graphite + build: + context: storperf-graphite + args: + ARCH: ${ARCH} volumes: - ${CARBON_DIR}:/opt/graphite/storage/whisper diff --git a/docker/storperf-graphite/Dockerfile b/docker/storperf-graphite/Dockerfile index b566458..2bea2c8 100644 --- a/docker/storperf-graphite/Dockerfile +++ b/docker/storperf-graphite/Dockerfile @@ -14,7 +14,7 @@ # From https://github.com/SchweizerischeBundesbahnen/docker-graphite -ARG ARCH=x86_64 +ARG ARCH ARG ALPINE_VERSION=v3.5 FROM multiarch/alpine:$ARCH-$ALPINE_VERSION diff --git a/docker/storperf-httpfrontend/Dockerfile b/docker/storperf-httpfrontend/Dockerfile index eaf1ec5..b37943f 100644 --- a/docker/storperf-httpfrontend/Dockerfile +++ b/docker/storperf-httpfrontend/Dockerfile @@ -12,8 +12,8 @@ # $ docker build -t opnfv/storperf-frontend:tag . ## -ARG ARCH=x86_64 -ARG ALPINE_VERSION=v3.5 +ARG ARCH +ARG ALPINE_VERSION=v3.6 FROM multiarch/alpine:$ARCH-$ALPINE_VERSION # This comes from https://github.com/nginxinc/docker-nginx/blob/14c1b938737cf4399a6bb039bc506957dce562ae/stable/alpine/Dockerfile diff --git a/docker/storperf-master/Dockerfile b/docker/storperf-master/Dockerfile index eaaf811..38bd231 100644 --- a/docker/storperf-master/Dockerfile +++ b/docker/storperf-master/Dockerfile @@ -15,7 +15,7 @@ # $ docker build -t opnfv/storperf-master:tag . # -ARG ARCH=x86_64 +ARG ARCH ARG ALPINE_VERSION=v3.6 FROM multiarch/alpine:$ARCH-$ALPINE_VERSION as storperf-builder diff --git a/docker/storperf-reporting/Dockerfile b/docker/storperf-reporting/Dockerfile index ac507a6..6f20e7b 100644 --- a/docker/storperf-reporting/Dockerfile +++ b/docker/storperf-reporting/Dockerfile @@ -15,7 +15,7 @@ ## -ARG ARCH=x86_64 +ARG ARCH ARG ALPINE_VERSION=v3.6 FROM multiarch/alpine:$ARCH-$ALPINE_VERSION MAINTAINER Mark Beierl <mark.beierl@dell.com> diff --git a/docker/storperf-swaggerui/Dockerfile b/docker/storperf-swaggerui/Dockerfile index 8904246..9795c47 100644 --- a/docker/storperf-swaggerui/Dockerfile +++ b/docker/storperf-swaggerui/Dockerfile @@ -12,7 +12,7 @@ # $ docker build -t opnfv/storperf-swaggerui:tag . ## -ARG ARCH=x86_64 +ARG ARCH ARG ALPINE_VERSION=v3.6 FROM multiarch/alpine:$ARCH-$ALPINE_VERSION @@ -116,4 +116,4 @@ ADD run.sh run.sh # webserver port EXPOSE 80 -CMD ["sh", "run.sh"]
\ No newline at end of file +CMD ["sh", "run.sh"] |