You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/05/22 09:19:51 UTC

[GitHub] larroy commented on a change in pull request #11018: [MXNET-454][WIP] Move distributed Docker cache from S3 to Docker Hub

larroy commented on a change in pull request #11018: [MXNET-454][WIP] Move distributed Docker cache from S3 to Docker Hub
URL: https://github.com/apache/incubator-mxnet/pull/11018#discussion_r189831517
 
 

 ##########
 File path: ci/test_docker_cache.py
 ##########
 @@ -0,0 +1,243 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you 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.
+
+
+import unittest
+import unittest.mock
+import tempfile
+import os
+import io
+import logging
+import subprocess
+import sys
+from contextlib import redirect_stdout
+
+sys.path.append(os.path.dirname(__file__))
+import docker_cache
+import build as build_util
+
+DOCKERFILE_DIR = 'docker'
+DOCKER_REGISTRY_NAME = 'test_registry'
+DOCKER_REGISTRY_PORT = 5000
+DOCKER_REGISTRY_PATH = 'localhost:{}'.format(DOCKER_REGISTRY_PORT)
+
+class RedirectSubprocessOutput(object):
 
 Review comment:
   Can you please describe what this class does

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services