From aefc555f76d94d888316d141397687d1d9d6b369 Mon Sep 17 00:00:00 2001 From: Daniele Venzano Date: Tue, 9 May 2017 14:35:21 +0200 Subject: [PATCH] Fix missing replicas keys --- .gitlab-ci.yml | 9 ++++++--- gen_json_google.py | 5 +++-- gen_json_standalone.py | 5 +++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8af0fd6..9823e29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: VERSION: $CI_BUILD_ID -images: +standalone: image: docker:latest stage: deploy before_script: @@ -13,7 +13,7 @@ images: - mkdir -p $HOME/.docker - echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json - apk update - - apk add python findutils bash + - apk add python findutils bash curl script: - bash build_all.sh - python gen_json_standalone.py @@ -25,8 +25,11 @@ images: - master google: - image: python + image: python:alpine stage: deploy + before_script: + - apk update + - apk add bash curl script: - python gen_json_google.py - bash validate_all.sh diff --git a/gen_json_google.py b/gen_json_google.py index 1fc6dd5..1749cd0 100644 --- a/gen_json_google.py +++ b/gen_json_google.py @@ -17,7 +17,7 @@ import json import sys import os -APP_NAME = 'tensorflow-google' +APP_NAME = 'tf-google' ZOE_APPLICATION_DESCRIPTION_VERSION = 3 options = { @@ -74,7 +74,8 @@ def goog_tensorflow_service(memory_limit, core_limit): 'command': None, 'total_count': 1, 'essential_count': 1, - 'startup_order': 0 + 'startup_order': 0, + 'replicas': 1 } return service diff --git a/gen_json_standalone.py b/gen_json_standalone.py index 2fde177..26f079e 100644 --- a/gen_json_standalone.py +++ b/gen_json_standalone.py @@ -17,7 +17,7 @@ import json import sys import os -APP_NAME = 'tensorflow' +APP_NAME = 'tf-standalone' ZOE_APPLICATION_DESCRIPTION_VERSION = 3 options = { @@ -62,7 +62,8 @@ def custom_tensorflow_service(memory_limit, core_limit): 'command': None, 'total_count': 1, 'essential_count': 1, - 'startup_order': 0 + 'startup_order': 0, + 'replicas': 1 } return service -- GitLab