onos/WORKSPACE-docker
pierventre 69db90c26e [SDFAB-1197] First stab to update ONOS to py3
Update has been performed only on the scripts and the
executables strictly necessary for the following use cases:

- Build (including Intellij)
- Tests (including Intellij)
- Docker build (including dev and yourkit)
- Upload snapshot (including local)
- Release

Finally, fix the ability to run ONOS using onos-local targets,
stc and docker stc (aka up4 stc env). Last but not least, updated
the azul image to a newer one which exports also the PYTHONENCODING

Change-Id: Ie96f3a9c76dbba83b1fc3896a372f1045d3d7ccc
2022-07-29 13:09:20 +02:00

17 lines
546 B
Plaintext

# Appended by the Dockerfiles to help bazel finding the local path of
# the Azul jvm. When we build docker images we use the jvm available
# in the base image to compile ONOS. In order to do that we have to
# provide the absolute path by using the local_java_repository.
# local_java_repository for docker based builds
load("@bazel_tools//tools/jdk:local_java_repository.bzl", "local_java_repository")
ABSOLUTE_JAVABASE = "/usr/lib/jvm/zulu11"
local_java_repository(
name = "dockerjdk",
version = "11",
java_home = ABSOLUTE_JAVABASE,
)