blob: d9c9b4695f2998c0e5740805a33d50d334bd1ab3 [file] [log] [blame]
pierventre5489c2f2022-05-06 19:01:27 +02001
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
8load("@bazel_tools//tools/jdk:local_java_repository.bzl", "local_java_repository")
9
pierventre69db90c2022-05-06 23:06:20 +020010ABSOLUTE_JAVABASE = "/usr/lib/jvm/zulu11"
pierventre5489c2f2022-05-06 19:01:27 +020011
12local_java_repository(
13 name = "dockerjdk",
14 version = "11",
15 java_home = ABSOLUTE_JAVABASE,
16)