@@ -28,12 +28,14 @@ testFixtures.useFixture()
28
28
configurations {
29
29
arm64DockerSource
30
30
s390xDockerSource
31
+ ppc64leDockerSource
31
32
dockerSource
32
33
}
33
34
34
35
dependencies {
35
36
arm64DockerSource project(path : " :distribution:archives:linux-arm64-tar" , configuration :" default" )
36
37
s390xDockerSource project(path : " :distribution:archives:linux-s390x-tar" , configuration :" default" )
38
+ ppc64leDockerSource project(path : " :distribution:archives:linux-ppc64le-tar" , configuration :" default" )
37
39
dockerSource project(path : " :distribution:archives:linux-tar" , configuration :" default" )
38
40
}
39
41
@@ -46,6 +48,8 @@ ext.expansions = { Architecture architecture, DockerBase base, boolean local ->
46
48
classifier = " linux-x64"
47
49
} else if (architecture == Architecture . S390X ) {
48
50
classifier = " linux-s390x"
51
+ } else if (architecture == Architecture . PPC64LE ) {
52
+ classifier = " linux-ppc64le"
49
53
} else {
50
54
throw new IllegalArgumentException (" Unsupported architecture [" + architecture + " ]" )
51
55
}
@@ -90,13 +94,15 @@ private static String buildPath(Architecture architecture, DockerBase base) {
90
94
return ' build/' +
91
95
(architecture == Architecture . ARM64 ? ' arm64-' : ' ' ) +
92
96
(architecture == Architecture . S390X ? ' s390x-' : ' ' ) +
97
+ (architecture == Architecture . PPC64LE ? ' ppc64le-' : ' ' ) +
93
98
' docker'
94
99
}
95
100
96
101
private static String taskName (String prefix , Architecture architecture , DockerBase base , String suffix ) {
97
102
return prefix +
98
103
(architecture == Architecture . ARM64 ? ' Arm64' : ' ' ) +
99
104
(architecture == Architecture . S390X ? ' S390x' : ' ' ) +
105
+ (architecture == Architecture . PPC64LE ? ' Ppc64le' : ' ' ) +
100
106
suffix
101
107
}
102
108
@@ -135,6 +141,8 @@ void addCopyDockerContextTask(Architecture architecture, DockerBase base) {
135
141
from configurations. arm64DockerSource
136
142
} else if (architecture == Architecture . S390X ) {
137
143
from configurations. s390xDockerSource
144
+ } else if (architecture == Architecture . PPC64LE ) {
145
+ from configurations. ppc64leDockerSource
138
146
} else {
139
147
from configurations. dockerSource
140
148
}
0 commit comments