public TBuilder WithExposedPorts(params int[] ports) { fn = FnUtils.Compose(fn, (container) => { container.ExposedPorts = ports; return(container); }); return((TBuilder)this); }
public TBuilder WithImage(string dockerImageName) { fn = FnUtils.Compose(fn, (container) => { container.DockerImageName = dockerImageName; return(container); }); return((TBuilder)this); }
public DatabaseContainerBuilder <TDatabaseContainer> WithPassword(string password) { fn = FnUtils.Compose(fn, (container) => { container.Password = password; return(container); }); return(this); }
public DatabaseContainerBuilder <TDatabaseContainer> WithUserName(string userName) { fn = FnUtils.Compose(fn, (container) => { container.UserName = userName; return(container); }); return(this); }
public TBuilder WithImage(string dockerImageName) { fn = FnUtils.Compose(fn, (container) => { var tag = dockerImageName.Split(':').Last(); if (dockerImageName == tag || tag.Contains("/")) { dockerImageName = $"{dockerImageName}:latest"; } container.DockerImageName = dockerImageName; return(container); }); return((TBuilder)this); }