From 975da7249ab4192d6d567d3fc084ac4cd13ed63f Mon Sep 17 00:00:00 2001 From: Ce Gao Date: Sat, 2 Nov 2019 12:01:40 +0800 Subject: [PATCH] fix: Add Suggestion into CI (#907) * fix: Add Suggestion into CI Signed-off-by: Ce Gao * fix: Use 3.6 Signed-off-by: Ce Gao * fix: Fix Hyperband Signed-off-by: Ce Gao --- cmd/suggestion/chocolate/v1alpha3/Dockerfile | 2 +- cmd/suggestion/hyperband/v1alpha3/Dockerfile | 2 +- cmd/suggestion/hyperopt/v1alpha3/Dockerfile | 3 ++- cmd/suggestion/nasrl/v1alpha3/Dockerfile | 2 +- cmd/suggestion/skopt/v1alpha3/Dockerfile | 2 +- test/scripts/v1alpha3/build-suggestion-chocolate.sh | 2 -- test/scripts/v1alpha3/build-suggestion-hyperband.sh | 2 -- test/scripts/v1alpha3/build-suggestion-hyperopt.sh | 2 -- test/scripts/v1alpha3/build-suggestion-nasrl.sh | 2 -- test/scripts/v1alpha3/build-suggestion-skopt.sh | 2 -- 10 files changed, 6 insertions(+), 15 deletions(-) diff --git a/cmd/suggestion/chocolate/v1alpha3/Dockerfile b/cmd/suggestion/chocolate/v1alpha3/Dockerfile index f7bf02c5bfa..82159fbf902 100644 --- a/cmd/suggestion/chocolate/v1alpha3/Dockerfile +++ b/cmd/suggestion/chocolate/v1alpha3/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3.6 RUN if [ "$(uname -m)" = "ppc64le" ]; then \ apt-get -y update && \ diff --git a/cmd/suggestion/hyperband/v1alpha3/Dockerfile b/cmd/suggestion/hyperband/v1alpha3/Dockerfile index 7c3efdf6c08..e97c8fd4d05 100644 --- a/cmd/suggestion/hyperband/v1alpha3/Dockerfile +++ b/cmd/suggestion/hyperband/v1alpha3/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3.6 RUN if [ "$(uname -m)" = "ppc64le" ]; then \ apt-get -y update && \ diff --git a/cmd/suggestion/hyperopt/v1alpha3/Dockerfile b/cmd/suggestion/hyperopt/v1alpha3/Dockerfile index 1913d49f6e7..c52d13bd104 100644 --- a/cmd/suggestion/hyperopt/v1alpha3/Dockerfile +++ b/cmd/suggestion/hyperopt/v1alpha3/Dockerfile @@ -1,10 +1,11 @@ -FROM python:3 +FROM python:3.6 RUN if [ "$(uname -m)" = "ppc64le" ]; then \ apt-get -y update && \ apt-get -y install gfortran libopenblas-dev liblapack-dev && \ pip install cython; \ fi + RUN GRPC_HEALTH_PROBE_VERSION=v0.3.0 && \ wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ chmod +x /bin/grpc_health_probe diff --git a/cmd/suggestion/nasrl/v1alpha3/Dockerfile b/cmd/suggestion/nasrl/v1alpha3/Dockerfile index 170360ac40d..6da267c4fb3 100644 --- a/cmd/suggestion/nasrl/v1alpha3/Dockerfile +++ b/cmd/suggestion/nasrl/v1alpha3/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3.6 RUN if [ "$(uname -m)" = "ppc64le" ]; then \ apt-get -y update && \ diff --git a/cmd/suggestion/skopt/v1alpha3/Dockerfile b/cmd/suggestion/skopt/v1alpha3/Dockerfile index a84328236f0..3dcc53d70ec 100644 --- a/cmd/suggestion/skopt/v1alpha3/Dockerfile +++ b/cmd/suggestion/skopt/v1alpha3/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3.6 RUN if [ "$(uname -m)" = "ppc64le" ]; then \ apt-get -y update && \ diff --git a/test/scripts/v1alpha3/build-suggestion-chocolate.sh b/test/scripts/v1alpha3/build-suggestion-chocolate.sh index 880372f76bc..142e982c497 100755 --- a/test/scripts/v1alpha3/build-suggestion-chocolate.sh +++ b/test/scripts/v1alpha3/build-suggestion-chocolate.sh @@ -20,8 +20,6 @@ set -o errexit set -o nounset set -o pipefail -exit 0 - export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH} REGISTRY="${GCP_REGISTRY}" PROJECT="${GCP_PROJECT}" diff --git a/test/scripts/v1alpha3/build-suggestion-hyperband.sh b/test/scripts/v1alpha3/build-suggestion-hyperband.sh index 3b0ac149162..7fe068b7c24 100755 --- a/test/scripts/v1alpha3/build-suggestion-hyperband.sh +++ b/test/scripts/v1alpha3/build-suggestion-hyperband.sh @@ -20,8 +20,6 @@ set -o errexit set -o nounset set -o pipefail -exit 0 - export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH} REGISTRY="${GCP_REGISTRY}" PROJECT="${GCP_PROJECT}" diff --git a/test/scripts/v1alpha3/build-suggestion-hyperopt.sh b/test/scripts/v1alpha3/build-suggestion-hyperopt.sh index de2109f60b3..ffbd76c490b 100755 --- a/test/scripts/v1alpha3/build-suggestion-hyperopt.sh +++ b/test/scripts/v1alpha3/build-suggestion-hyperopt.sh @@ -20,8 +20,6 @@ set -o errexit set -o nounset set -o pipefail -exit 0 - export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH} REGISTRY="${GCP_REGISTRY}" PROJECT="${GCP_PROJECT}" diff --git a/test/scripts/v1alpha3/build-suggestion-nasrl.sh b/test/scripts/v1alpha3/build-suggestion-nasrl.sh index 1ff407946e7..bb796655ec5 100755 --- a/test/scripts/v1alpha3/build-suggestion-nasrl.sh +++ b/test/scripts/v1alpha3/build-suggestion-nasrl.sh @@ -20,8 +20,6 @@ set -o errexit set -o nounset set -o pipefail -exit 0 - export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH} REGISTRY="${GCP_REGISTRY}" PROJECT="${GCP_PROJECT}" diff --git a/test/scripts/v1alpha3/build-suggestion-skopt.sh b/test/scripts/v1alpha3/build-suggestion-skopt.sh index 4a4bd7ef0e3..53f389bca2f 100755 --- a/test/scripts/v1alpha3/build-suggestion-skopt.sh +++ b/test/scripts/v1alpha3/build-suggestion-skopt.sh @@ -20,8 +20,6 @@ set -o errexit set -o nounset set -o pipefail -exit 0 - export PATH=${GOPATH}/bin:/usr/local/go/bin:${PATH} REGISTRY="${GCP_REGISTRY}" PROJECT="${GCP_PROJECT}"