File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/test/kotlin/no/nav/pdfgen Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ val junitJupiterVersion = "5.12.2"
17
17
val verapdfVersion = " 1.26.1"
18
18
val ktfmtVersion = " 0.44"
19
19
val testcontainersVersion = " 1.21.0"
20
- val pdfgencoreVersion = " 1.1.48 "
20
+ val pdfgencoreVersion = " 1.1.49 "
21
21
22
22
23
23
// /Due to vulnerabilities
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import org.testcontainers.containers.GenericContainer
19
19
import org.testcontainers.containers.Network
20
20
import org.testcontainers.containers.wait.strategy.Wait
21
21
import org.testcontainers.images.builder.ImageFromDockerfile
22
+ import org.testcontainers.utility.MountableFile
22
23
23
24
internal class DockerImageTest {
24
25
@@ -28,8 +29,12 @@ internal class DockerImageTest {
28
29
val network = Network .newNetwork()
29
30
30
31
val pdfgenContainer =
31
- GenericContainer (ImageFromDockerfile ().withDockerfile(Path (" ./Dockerfile" )))
32
+ GenericContainer (ImageFromDockerfile ()
33
+ .withDockerfile(Path (" ./Dockerfile" )))
32
34
.withNetwork(network)
35
+ .withCopyToContainer(MountableFile .forHostPath(" templates" ), " /app/templates" )
36
+ .withCopyToContainer(MountableFile .forHostPath(" fonts" ), " /app/fonts" )
37
+ .withCopyToContainer(MountableFile .forHostPath(" resources" ), " /app/resources" )
33
38
.withExposedPorts(8080 )
34
39
.waitingFor(Wait .forHttp(" /internal/is_ready" ))
35
40
.apply { start() }
You can’t perform that action at this time.
0 commit comments