blob: 1b2b0d7047b0255e0cf138d0b9cdfd51b0121b8c [file] [log] [blame]
pierventree6e95e72022-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
10ABSOLUTE_JAVABASE = "/usr/lib/jvm/zulu11-ca-amd64"
11
12local_java_repository(
13 name = "dockerjdk",
14 version = "11",
15 java_home = ABSOLUTE_JAVABASE,
16)