Skip to content

Create a docker image with the minimal requirements to run the tutorial #2319

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akafael
Copy link

@akafael akafael commented Jul 23, 2025

  • Define a docker image with bazelisk and ubuntu configured
  • Fix missing .bazelversion inside tutorial workspace.
  • Create a script to run the tuturial inside the docker

* Add new dockerfile with bazelisk and ubuntu
* Fix missing .bazelversion inside tutorial workspace
@akafael akafael requested a review from avdv as a code owner July 23, 2025 15:28
@akafael akafael changed the title Create a docker image the minimal requirements to run the tutorial Create a docker image with the minimal requirements to run the tutorial Jul 23, 2025
Comment on lines +7 to +9
apt-get install -y build-essential libffi-dev libgmp-dev libtinfo6 libtinfo-dev python3 openjdk-11-jdk && \
apt-get install -y nix-bin && \
apt-get install -y graphviz xdot
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: change this to use a single line per dependency, this will enable modifying just a single package name instead the whole line.

@@ -0,0 +1,25 @@
# Use the official Ubuntu base image
FROM ubuntu:latest
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Pin to a ubuntu version. The package names and versions might change, leading to a flaky docker image.

Comment on lines +12 to +13
RUN apt install -y npm && \
npm install -g @bazel/bazelisk
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: pin the bazelisk to a particular version, to ensure a reproducible build.

@akafael akafael marked this pull request as draft July 23, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant