|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, software |
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * See the License for the specific language governing permissions and |
| 16 | + * limitations under the License. |
| 17 | + */ |
| 18 | + |
| 19 | +def basePath = '../../../job-server/container' |
| 20 | + |
| 21 | +project.ext { |
| 22 | + resource_path = basePath |
| 23 | + spark_job_server_image = 'spark4_job_server' |
| 24 | +} |
| 25 | + |
| 26 | +// Load the main build script which contains all build logic. |
| 27 | +apply from: "$basePath/spark_job_server_container.gradle" |
| 28 | + |
| 29 | +// Override the Dockerfile copy to use the Java 17 Dockerfile for Spark 4. |
| 30 | +copyDockerfileDependencies { |
| 31 | + // Remove the shared Dockerfile added by the shared gradle script and use the local one instead. |
| 32 | + // The shared Dockerfile uses eclipse-temurin:11 which is incompatible with Spark 4 (requires Java 17). |
| 33 | + exclude 'Dockerfile' |
| 34 | +} |
| 35 | + |
| 36 | +task copySpark4Dockerfile(type: Copy) { |
| 37 | + from "Dockerfile" |
| 38 | + into "build" |
| 39 | +} |
| 40 | + |
| 41 | +dockerPrepare.dependsOn copySpark4Dockerfile |
0 commit comments