Skip to content

Commit

Permalink
[#11506] Add MSSQL license
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Sep 23, 2024
1 parent 62ae216 commit ba8c514
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

import com.navercorp.pinpoint.it.plugin.utils.jdbc.testcontainers.DatabaseContainers;
import com.navercorp.pinpoint.test.plugin.shared.SharedTestLifeCycle;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.jupiter.api.Assumptions;
import org.testcontainers.DockerClientFactory;
import org.testcontainers.containers.MSSQLServerContainer;
Expand All @@ -28,7 +26,6 @@
import java.util.Properties;

public class MssqlServer implements SharedTestLifeCycle {
private final Logger logger = LogManager.getLogger(getClass());

private static MSSQLServerContainer<?> container;

Expand All @@ -37,6 +34,7 @@ public Properties beforeAll() {
Assumptions.assumeTrue(DockerClientFactory.instance().isDockerAvailable(), "Docker not enabled");

container = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
container.acceptLicense();
container.waitingFor(Wait.forListeningPort());
container.withInitScript("mssql-init.sql");
container.start();
Expand Down

0 comments on commit ba8c514

Please sign in to comment.