-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rbe_ubuntu_20.04 based docker image? #870
Comments
We don't currently have plans for an Ubuntu 20.04 image. We would first need an Ubuntu 20.04 image to use as the base image from the managed base images maintained in https://github.com/GoogleContainerTools/base-images-docker. After that, I'm open to PRs in https://github.com/GoogleCloudPlatform/layer-definitions and https://github.com/GoogleCloudPlatform/container-definitions adding the image. |
@smukherj1 Thanks for clarifying. I can look into sending a PR once the prerequisites are met. |
@philwo Are you working on it? I also tried to add custom docker image from Bazel in Gerrit,
The reason I am asking: Gerrit switched to Java language level 11
Local build works as expected and produce Java language level 11:
[1] https://gerrit-review.googlesource.com/c/gerrit/+/291864/4 |
Update: I figured out how to build with JDK 11 and even produce major bytecode version 55 with RBE: [1]. [1] https://gerrit-review.googlesource.com/c/gerrit/+/291943 |
Update: it seems that Ubuntu20.04 based docker image was added to: [1]. [1] https://github.com/GoogleContainerTools/base-images-docker/blob/master/ubuntu2004/ |
I also figured, that we could build Ubuntu 20.04 compatible image by just saying: Dockerfile FROM gcr.io/cloud-marketplace/google/ubuntu2004:latest
RUN apt-get -y update && \
apt-get -y install git && \
apt-get -y install golang && \
apt-get -y install openjdk-17-jdk openjdk-17-jre openjdk-17-jdk-headless && \
apt-get -y install unzip zip && \
apt-get -y install python3 && \
apt-get -y install wget && \
apt-get -y install vim && \
apt-get clean That way built Docker image works as expected locally ( |
@smukherj1 I am interested in contributing to this -- one thing I don't understand is how to build ubuntu20.04-specific releases of clang. For example, here: https://github.com/GoogleCloudPlatform/layer-definitions/blob/ef7ab83fe8f7813ceeef5bb8dc283a08bed47151/layers/ubuntu1804/clang/deps.bzl#L29-L34 How is the object at More generally, since I will have the same questions for the Java layers, etc. -- is there any documentation that can be shared about how the source files in https://github.com/GoogleCloudPlatform/layer-definitions are generated? |
Friendly ping on this, since ubuntu 18.04 includes some dependencies that are out of date. Are you still open to PRs here? If so I would love to contribute, but could use some help with the questions in my above comment. |
Just as another alternative solution here since this repo seems abandoned: I found that bazel's own continuous build has built an ubuntu 20.04 image that you can use (and also a 22.04 one too). The Dockerfile: https://github.com/bazelbuild/continuous-integration/blob/08fa4f8b1648acab1726e1354c3b56719cfba417/buildkite/docker/ubuntu2004/Dockerfile Which you can use as such:
|
See this instruction to use Ubuntu 20.04 docker image used by Bazel project: [1]. [1] bazelbuild/bazel-toolchains#870 (comment)
On 23.04.202, Ubuntu 20.04 was released: [1]. What is the ETA for the Ubuntu 20.04 based RBE image?
The reason I'm asking is that for Gerrit Code Review project we have intergration tests based on recent Git package release (to test Gerrit with Git wire protocol v2). And Git version is outdated in 16.04 and 18.04 Ubuntu releases.
Yes, I know that we could easily build our own custom RBE docker image and publish it somewhere. E.g. on https://gcr.io or on https://hub.docker.com registries.
The text was updated successfully, but these errors were encountered: