Ejemplo n.º 1
0
 public static FibContainerBuilder From(string baseImageReference, Credential credential)
 {
     if (credential == null || string.IsNullOrEmpty(credential.UserName) || string.IsNullOrEmpty(credential.Password))
     {
         return(From(baseImageReference));
     }
     return(From(RegistryImage.Named(baseImageReference).AddCredential(credential.UserName, credential.Password)));
 }
Ejemplo n.º 2
0
 /**
  * Starts building the container from a base image. The base image should be publicly-available.
  * For a base image that requires credentials, use {@link #from(RegistryImage)}.
  *
  * @param baseImageReference the base image reference
  * @return a new {@link FibContainerBuilder} to continue building the container
  */
 public static FibContainerBuilder From(ImageReference baseImageReference)
 {
     return(From(RegistryImage.Named(baseImageReference)));
 }