// ConvertRemoteRepo generates ACI images from docker registry URLs. It takes // as input a dockerURL of the form: // // {registry URL}/{repository}:{reference[tag|digest]} // // It then gets all the layers of the requested image and converts each of // them to ACI. // It returns the list of generated ACI paths. func ConvertRemoteRepo(dockerURL string, config RemoteConfig) ([]string, error) { config.initLogger() return (&converter{ backend: repository.NewRepositoryBackend( config.Username, config.Password, config.Insecure, config.Debug, ), dockerURL: dockerURL, config: config.CommonConfig, }).convert() }
// ConvertRemoteRepo generates ACI images from docker registry URLs. It takes // as input a dockerURL of the form: // // {registry URL}/{repository}:{reference[tag|digest]} // // It then gets all the layers of the requested image and converts each of // them to ACI. // It returns the list of generated ACI paths. func ConvertRemoteRepo(dockerURL string, config RemoteConfig) ([]string, error) { repositoryBackend := repository.NewRepositoryBackend(config.Username, config.Password, config.Insecure) return convertReal(repositoryBackend, dockerURL, config.Squash, config.OutputDir, config.TmpDir, config.Compression) }