All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.jhipster.lite.module.domain.startupcommand.DockerComposeStartupCommandLine Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.module.domain.startupcommand;

import tech.jhipster.lite.shared.error.domain.Assert;

public record DockerComposeStartupCommandLine(DockerComposeFile dockerComposeFile) implements JHipsterStartupCommand {
  public DockerComposeStartupCommandLine {
    Assert.notNull("dockerComposeFile", dockerComposeFile);
  }

  @Override
  public StartupCommandLine commandLine() {
    return new StartupCommandLine("docker compose -f %s up -d".formatted(dockerComposeFile.path()));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy