Commit db8e7c7e authored by Yusei Tahara's avatar Yusei Tahara

component/bazel: Use zulu openjdk8 to build bazel. We don't need to install...

component/bazel: Use zulu openjdk8 to build bazel. We don't need to install linux distribution's openjdk8 package.
parent 6de4e3ce
...@@ -8,22 +8,12 @@ parts = ...@@ -8,22 +8,12 @@ parts =
# The bazel binary contains a zip file. It must not be stripped. # The bazel binary contains a zip file. It must not be stripped.
do-not-strip-path = ${buildout:parts-directory}/bazel/bin/bazel do-not-strip-path = ${buildout:parts-directory}/bazel/bin/bazel
# [jdk] [zulu]
# recipe = slapos.recipe.build recipe = hexagonit.recipe.download
# url = http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz ignore-existing = true
# md5sum = de9b7a90f0f5a13cfcaa3b01451d0337 url = http://cdn.azul.com/zulu/bin/zulu8.20.0.5-jdk8.0.121-linux_x64.tar.gz
# location = ${buildout:parts-directory}/${:_buildout_section_name_} md5sum = e5f4b1d997e50ffe4998c68c8ec45403
# java_home = ${:location}/java_home strip-top-level-dir = true
# script =
# from zc.buildout.download import check_md5sum, ChecksumError
# download_dir = tempfile.mkdtemp()
# download_path = os.path.join(download_dir, 'jdk.tar.gz')
# self.cleanup_list.append(download_dir)
# call(['wget', '-q', '-O', download_path, '--header', 'Cookie: oraclelicense=accept-securebackup-cookie', self.options['url']])
# if not check_md5sum(download_path, self.options['md5sum']):raise ChecksumError()
# extract_dir = self.extract(download_path)
# java_home = '%(location)s/java_home'
# self.copyTree(os.path.join(extract_dir, 'jdk1.8.0_112'), java_home)
[template-bazel-crosstool] [template-bazel-crosstool]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
...@@ -64,7 +54,7 @@ zip-bin = ${zip:location}/bin ...@@ -64,7 +54,7 @@ zip-bin = ${zip:location}/bin
gcc-bin = ${gcc:location}/bin gcc-bin = ${gcc:location}/bin
gcc-lib = ${gcc:location}/lib gcc-lib = ${gcc:location}/lib
gcc-lib64 = ${gcc:location}/lib64 gcc-lib64 = ${gcc:location}/lib64
java_home = PLEASE_INSTALL_JDK8_BY_YOURSELF_AND_SET_THE_PATH java_home = ${zulu:location}
script = script =
extract_dir = self.extract(self.download(self.options['url'], self.options['md5sum'])) extract_dir = self.extract(self.download(self.options['url'], self.options['md5sum']))
crosstool_path = os.path.join(extract_dir, 'tools', 'cpp', 'CROSSTOOL') crosstool_path = os.path.join(extract_dir, 'tools', 'cpp', 'CROSSTOOL')
......
...@@ -13,15 +13,6 @@ eggs += ...@@ -13,15 +13,6 @@ eggs +=
${pillow-python:egg} ${pillow-python:egg}
Keras Keras
[bazel]
# For Debian 8 users
# Add jessie-backports to /etc/apt/sources.list
# deb http://ftp.jp.debian.org/debian jessie-backports main
# Then install jdk
# apt-get update
# apt-get -t jessie-backports install openjdk-8-jdk
java_home = /usr/lib/jvm/java-8-openjdk-amd64
[cuda] [cuda]
# If you use cuda, please adjust paramters for your environment # If you use cuda, please adjust paramters for your environment
# else ignore this part. # else ignore this part.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment