Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Fix Google Cloud scripts.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 292519178
  • Loading branch information
lespeholt committed Feb 2, 2020
1 parent e1a5362 commit 35f6622
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker/push.sh
@@ -0,0 +1,29 @@
#!/bin/bash
# Copyright 2019 The SEED Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


# Pushes docker image seed_rl:$LABEL to the URI $IMAGE_URI:$LABEL.

set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
if test -z "$1"
then
LABEL=$CONFIG
else
LABEL=$1
fi

docker tag seed_rl:$LABEL $IMAGE_URI:$LABEL
docker push $IMAGE_URI:$LABEL
1 change: 1 addition & 0 deletions gcp/run.py
Expand Up @@ -73,6 +73,7 @@ def main(_):
logging.info(tf_config)
config = json.loads(tf_config)
job_type = config.get('task', {}).get('type')
os.environ.update({'PYTHONPATH': '/'})
executor = concurrent.futures.ThreadPoolExecutor(
max_workers=FLAGS.actors_per_worker)
futures = []
Expand Down

0 comments on commit 35f6622

Please sign in to comment.