(self)
Override config with environment
Override config with environment
Override config with environment
def _env_override(self):
        """Override config with environment"""
        Config.conf['verbose_level'] = \
            int(os.getenv("UDOCKER_LOGLEVEL", Config.conf['verbose_level']))
        Config.conf['topdir'] = os.getenv("UDOCKER_DIR", Config.conf['topdir'])
        Config.conf['bindir'] = os.getenv("UDOCKER_BIN", Config.conf['bindir'])
        Config.conf['libdir'] = os.getenv("UDOCKER_LIB", Config.conf['libdir'])
        Config.conf['docdir'] = os.getenv("UDOCKER_DOC", Config.conf['docdir'])
        Config.conf['reposdir'] = \
            os.getenv("UDOCKER_REPOS", Config.conf['reposdir'])
        Config.conf['layersdir'] = \
            os.getenv("UDOCKER_LAYERS", Config.conf['layersdir'])
        Config.conf['containersdir'] = \
            os.getenv("UDOCKER_CONTAINERS", Config.conf['containersdir'])
        Config.conf['dockerio_index_url'] = \
            os.getenv("UDOCKER_INDEX", Config.conf['dockerio_index_url'])
        Config.conf['dockerio_registry_url'] = \
            os.getenv("UDOCKER_REGISTRY", Config.conf['dockerio_registry_url'])
        Config.conf['tarball'] = \
            os.getenv("UDOCKER_TARBALL", Config.conf['tarball'])
        Config.conf['default_execution_mode'] = \
            os.getenv("UDOCKER_DEFAULT_EXECUTION_MODE",
                      Config.conf['default_execution_mode'])
        Config.conf['fakechroot_so'] = \
            os.getenv("UDOCKER_FAKECHROOT_SO", Config.conf['fakechroot_so'])
        Config.conf['tmpdir'] = os.getenv("UDOCKER_TMP", Config.conf['tmpdir'])
        Config.conf['keystore'] = \
            os.getenv("UDOCKER_KEYSTORE", Config.conf['keystore'])
        Config.conf['use_curl_executable'] = \
            os.getenv("UDOCKER_USE_CURL_EXECUTABLE",
                      Config.conf['use_curl_executable'])
        Config.conf['use_proot_executable'] = \
            os.getenv("UDOCKER_USE_PROOT_EXECUTABLE",
                      Config.conf['use_proot_executable'])
        Config.conf['use_runc_executable'] = \
            os.getenv("UDOCKER_USE_RUNC_EXECUTABLE",
                      Config.conf['use_runc_executable'])
        Config.conf['use_singularity_executable'] = \
            os.getenv("UDOCKER_USE_SINGULARITY_EXECUTABLE",
                      Config.conf['use_singularity_executable'])

        Config.conf['fakechroot_expand_symlinks'] = \
            os.getenv("UDOCKER_FAKECHROOT_EXPAND_SYMLINKS",
                      str(Config.conf['fakechroot_expand_symlinks'])).lower()
        os.environ["PROOT_TMP_DIR"] = os.getenv("PROOT_TMP_DIR",
                                                Config.conf['tmpdir'])
def _env_override ( self ) : Config . conf [ 'verbose_level' ] = int ( os . getenv ( "UDOCKER_LOGLEVEL" , Config . conf [ 'verbose_level' ] ) ) Config . conf [ 'topdir' ] = os . getenv ( "UDOCKER_DIR" , Config . conf [ 'topdir' ] ) Config . conf [ 'bindir' ] = os . getenv ( "UDOCKER_BIN" , Config . conf [ 'bindir' ] ) Config . conf [ 'libdir' ] = os . getenv ( "UDOCKER_LIB" , Config . conf [ 'libdir' ] ) Config . conf [ 'docdir' ] = os . getenv ( "UDOCKER_DOC" , Config . conf [ 'docdir' ] ) Config . conf [ 'reposdir' ] = os . getenv ( "UDOCKER_REPOS" , Config . conf [ 'reposdir' ] ) Config . conf [ 'layersdir' ] = os . getenv ( "UDOCKER_LAYERS" , Config . conf [ 'layersdir' ] ) Config . conf [ 'containersdir' ] = os . getenv ( "UDOCKER_CONTAINERS" , Config . conf [ 'containersdir' ] ) Config . conf [ 'dockerio_index_url' ] = os . getenv ( "UDOCKER_INDEX" , Config . conf [ 'dockerio_index_url' ] ) Config . conf [ 'dockerio_registry_url' ] = os . getenv ( "UDOCKER_REGISTRY" , Config . conf [ 'dockerio_registry_url' ] ) Config . conf [ 'tarball' ] = os . getenv ( "UDOCKER_TARBALL" , Config . conf [ 'tarball' ] ) Config . conf [ 'default_execution_mode' ] = os . getenv ( "UDOCKER_DEFAULT_EXECUTION_MODE" , Config . conf [ 'default_execution_mode' ] ) Config . conf [ 'fakechroot_so' ] = os . getenv ( "UDOCKER_FAKECHROOT_SO" , Config . conf [ 'fakechroot_so' ] ) Config . conf [ 'tmpdir' ] = os . getenv ( "UDOCKER_TMP" , Config . conf [ 'tmpdir' ] ) Config . conf [ 'keystore' ] = os . getenv ( "UDOCKER_KEYSTORE" , Config . conf [ 'keystore' ] ) Config . conf [ 'use_curl_executable' ] = os . getenv ( "UDOCKER_USE_CURL_EXECUTABLE" , Config . conf [ 'use_curl_executable' ] ) Config . conf [ 'use_proot_executable' ] = os . getenv ( "UDOCKER_USE_PROOT_EXECUTABLE" , Config . conf [ 'use_proot_executable' ] ) Config . conf [ 'use_runc_executable' ] = os . getenv ( "UDOCKER_USE_RUNC_EXECUTABLE" , Config . conf [ 'use_runc_executable' ] ) Config . conf [ 'use_singularity_executable' ] = os . getenv ( "UDOCKER_USE_SINGULARITY_EXECUTABLE" , Config . conf [ 'use_singularity_executable' ] ) Config . conf [ 'fakechroot_expand_symlinks' ] = os . getenv ( "UDOCKER_FAKECHROOT_EXPAND_SYMLINKS" , str ( Config . conf [ 'fakechroot_expand_symlinks' ] ) ) . lower ( ) os . environ [ "PROOT_TMP_DIR" ] = os . getenv ( "PROOT_TMP_DIR" , Config . conf [ 'tmpdir' ] )