Exemple #1
0
    def run(self):
        tools_container = "csk-tools"
        self.setup_arguments()
        args = self.parser.parse_args()
        if args.verbose:
            setup_logging(level=logging.DEBUG)
        elif args.quiet:
            setup_logging(level=logging.ERROR)
        else:
            setup_logging(level=logging.INFO)

        if args.tools_container:
            tools_container = args.tools_container

        enhanced_container = Container(args.container)
        if args.remove:
            enhanced_container.remove_csk()
        logger.debug("using tools container: %s" % tools_container)
        tools_container = Container(tools_container)
        #fixme pulling if not exists
        tools_container.start()

        #fixme we should check some /tmp/.csk file to not enhance container mutliple times

        enhanced_container.enable_csk_by_copy(tools_container)

        enhanced_container.session()
        tools_container.stop()
Exemple #2
0
    def run(self):
        tools_container = "csk-tools"
        self.setup_arguments()
        args = self.parser.parse_args()
        if args.verbose:
            setup_logging(level=logging.DEBUG)
        elif args.quiet:
            setup_logging(level=logging.ERROR)
        else:
            setup_logging(level=logging.INFO)

        if args.tools_container:
            tools_container = args.tools_container

        enhanced_container = Container(args.container)
        if args.remove:
            enhanced_container.remove_csk()
        logger.debug("using tools container: %s" %tools_container)
        tools_container = Container(tools_container)
        #fixme pulling if not exists
        tools_container.start()

        #fixme we should check some /tmp/.csk file to not enhance container mutliple times

        enhanced_container.enable_csk_by_copy(tools_container)

        enhanced_container.session()
        tools_container.stop()