pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 1 | |
| 2 | # Appended by the Dockerfiles to help bazel finding the local path of |
| 3 | # the Azul jvm. When we build docker images we use the jvm available |
| 4 | # in the base image to compile ONOS. In order to do that we have to |
| 5 | # provide the absolute path by using the local_java_repository. |
| 6 | |
| 7 | # local_java_repository for docker based builds |
| 8 | load("@bazel_tools//tools/jdk:local_java_repository.bzl", "local_java_repository") |
| 9 | |
pierventre | 69db90c | 2022-05-06 23:06:20 +0200 | [diff] [blame] | 10 | ABSOLUTE_JAVABASE = "/usr/lib/jvm/zulu11" |
pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 11 | |
| 12 | local_java_repository( |
| 13 | name = "dockerjdk", |
| 14 | version = "11", |
| 15 | java_home = ABSOLUTE_JAVABASE, |
| 16 | ) |