Codota Logo
ArtifactSourcesConfig.getDebianRepository
Code IndexAdd Codota to your IDE (free)

How to use
getDebianRepository
method
in
com.netflix.spinnaker.halyard.config.config.v1.ArtifactSourcesConfig

Best Java code snippets using com.netflix.spinnaker.halyard.config.config.v1.ArtifactSourcesConfig.getDebianRepository (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public String getInstallCommand(DeploymentDetails deploymentDetails, GenerateService.ResolvedConfiguration resolvedConfiguration, Map<String, String> installCommands, String startupCommand) {
 Map<String, Object> bindings = new HashMap<>();
 List<SpinnakerService.Type> serviceTypes = new ArrayList<>(installCommands.keySet()).stream().map(SpinnakerService.Type::fromCanonicalName).collect(Collectors.toList());
 List<String> upstartNames = getPrioritizedBakeableServices(serviceTypes)
   .stream()
   .filter(i -> resolvedConfiguration.getServiceSettings(i.getService()).getEnabled())
   .map(i -> ((BakeDebianService) i).getUpstartServiceName())
   .filter(Objects::nonNull)
   .collect(Collectors.toList());
 List<String> systemdServiceConfigs = upstartNames.stream()
   .map(n -> n + ".service")
   .collect(Collectors.toList());
 List<String> serviceInstalls = serviceTypes.stream()
   .map(t -> installCommands.get(t.getCanonicalName()))
   .collect(Collectors.toList());
 TemplatedResource resource = new StringReplaceJarResource("/debian/init.sh");
 bindings.put("services", Strings.join(upstartNames, " "));
 bindings.put("systemd-service-configs", Strings.join(systemdServiceConfigs, " "));
 String upstartInit = resource.setBindings(bindings).toString();
 BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentDetails.getDeploymentName());
 resource = new StringReplaceJarResource("/debian/pre-bake.sh");
 bindings = new HashMap<>();
 bindings.put("debian-repository", artifactSourcesConfig.mergeWithBomSources(artifactSources).getDebianRepository());
 bindings.put("install-commands", String.join("\n", serviceInstalls));
 bindings.put("upstart-init", upstartInit);
 bindings.put("startup-file", Paths.get(startupScriptPath, "startup.sh").toString());
 bindings.put("startup-command", startupCommand);
 return resource.setBindings(bindings).toString();
}
origin: spinnaker/halyard

bindings.put("prepare-environment", "true");
bindings.put("install-redis", "true");
bindings.put("debian-repository", artifactSourcesConfig.mergeWithBomSources(artifactSources).getDebianRepository());
bindings.put("install-commands", String.join("\n", serviceInstalls));
bindings.put("service-action", "restart");
origin: spinnaker/halyard

@Override
public String getInstallCommand(DeploymentDetails deploymentDetails, GenerateService.ResolvedConfiguration resolvedConfiguration, Map<String, String> installCommands, String startupCommand) {
 Map<String, Object> bindings = new HashMap<>();
 List<SpinnakerService.Type> serviceTypes = new ArrayList<>(installCommands.keySet()).stream().map(SpinnakerService.Type::fromCanonicalName).collect(Collectors.toList());
 List<String> upstartNames = getPrioritizedBakeableServices(serviceTypes)
   .stream()
   .filter(i -> resolvedConfiguration.getServiceSettings(i.getService()).getEnabled())
   .map(i -> ((BakeDebianService) i).getUpstartServiceName())
   .filter(Objects::nonNull)
   .collect(Collectors.toList());
 List<String> systemdServiceConfigs = upstartNames.stream()
   .map(n -> n + ".service")
   .collect(Collectors.toList());
 List<String> serviceInstalls = serviceTypes.stream()
   .map(t -> installCommands.get(t.getCanonicalName()))
   .collect(Collectors.toList());
 TemplatedResource resource = new StringReplaceJarResource("/debian/init.sh");
 bindings.put("services", Strings.join(upstartNames, " "));
 bindings.put("systemd-service-configs", Strings.join(systemdServiceConfigs, " "));
 String upstartInit = resource.setBindings(bindings).toString();
 BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentDetails.getDeploymentName());
 resource = new StringReplaceJarResource("/debian/pre-bake.sh");
 bindings = new HashMap<>();
 bindings.put("debian-repository", artifactSourcesConfig.mergeWithBomSources(artifactSources).getDebianRepository());
 bindings.put("install-commands", String.join("\n", serviceInstalls));
 bindings.put("upstart-init", upstartInit);
 bindings.put("startup-file", Paths.get(startupScriptPath, "startup.sh").toString());
 bindings.put("startup-command", startupCommand);
 return resource.setBindings(bindings).toString();
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

bindings.put("prepare-environment", "true");
bindings.put("install-redis", "true");
bindings.put("debian-repository", artifactSourcesConfig.mergeWithBomSources(artifactSources).getDebianRepository());
bindings.put("install-commands", String.join("\n", serviceInstalls));
bindings.put("service-action", "restart");
com.netflix.spinnaker.halyard.config.config.v1ArtifactSourcesConfiggetDebianRepository

Popular methods of ArtifactSourcesConfig

  • getGoogleImageProject
  • getDockerRegistry
  • mergeWithBomSources

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now