File tree 3 files changed +28
-0
lines changed
core/jvm/test/testcontainers 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,23 @@ package testcontainers
7
7
8
8
import kotlinx.datetime.*
9
9
import org.testcontainers.junit.jupiter.Testcontainers
10
+ import java.nio.file.Paths
11
+ import java.nio.file.Files
10
12
import kotlin.test.Test
11
13
import kotlin.test.assertNotEquals
12
14
13
15
@Testcontainers
14
16
class TimeZoneTest {
17
+
15
18
@Test
16
19
fun test () {
17
20
val tz = TimeZone .currentSystemDefault()
18
21
assertNotEquals(TimeZone .UTC , tz)
19
22
println (" System time zone: $tz " )
23
+
24
+ val filePath = Paths .get(" ./jvm/test/testcontainers/original/Dockerfile" )
25
+ val content = String (Files .readAllBytes(filePath), Charsets .UTF_8 )
26
+ println (" Dockerfile content: \n $content " )
27
+
20
28
}
21
29
}
Original file line number Diff line number Diff line change
1
+ FROM --platform=linux/amd64 ubuntu:24.04
2
+
3
+ RUN apt-get update && apt-get install -y tzdata
4
+
5
+ # 4: Arctic/Longyearbyen
6
+ RUN echo 4 | dpkg-reconfigure tzdata
7
+
8
+ # Modification like in Debian Jessie
9
+ RUN rm /etc/localtime
10
+ RUN cp /usr/share/zoneinfo/$(cat /etc/timezone) /etc/localtime
11
+
12
+ WORKDIR /app
Original file line number Diff line number Diff line change
1
+ FROM --platform=linux/amd64 ubuntu:24.04
2
+
3
+ RUN apt-get update && apt-get install -y tzdata
4
+
5
+ # 4: Arctic/Longyearbyen
6
+ RUN echo 4 | dpkg-reconfigure tzdata
7
+
8
+ WORKDIR /app
You can’t perform that action at this time.
0 commit comments