Skip to content

Commit

Permalink
fix : 테스트 컨테이너 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
KoSeonJe committed Aug 19, 2024
1 parent 1572295 commit 1971a46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
FROM gradle:jdk17 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build --no-daemon --info --stacktrace \
-Dorg.gradle.jvmargs="-Xmx2g -XX:MaxMetaspaceSize=512m"
RUN gradle build --no-daemon

# Package stage
FROM openjdk:17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@
import org.springframework.test.context.DynamicPropertySource;
import org.testcontainers.containers.JdbcDatabaseContainer;
import org.testcontainers.containers.MySQLContainer;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;

@NoArgsConstructor(access = PROTECTED)
@ActiveProfiles("test")
@Import(TestConfig.class)
@Testcontainers
public abstract class TestContainerSupport {

private static final String MYSQL_IMAGE = "mysql:8";
private static final int MYSQL_PORT = 3306;
@Container
private static final JdbcDatabaseContainer<?> MYSQL;

@Autowired
Expand Down

0 comments on commit 1971a46

Please sign in to comment.