Skip to content
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

[Question] Understanding how the images are build with bazel #1733

Open
lukas2510 opened this issue Jan 16, 2025 · 0 comments
Open

[Question] Understanding how the images are build with bazel #1733

lukas2510 opened this issue Jan 16, 2025 · 0 comments

Comments

@lukas2510
Copy link

Hey,
I am trying to understand how the distroless images are being build with bazel. And in the next step I want to adjust the code to build the python images with a new python version. Currently they have python 3.11 and I want to build them with python 3.13 in the images.

I looked at the code and forked the repository trying to build the images on my own. I encountered some questions I didn't find answers for.

  1. Why is there a ~ symbol in the repository label? is this a placeholder and will be replaced with something?
    load("@@rules_distroless~//apt:defs.bzl", "dpkg_statusd")
    load("@@rules_pkg~//:pkg.bzl", "pkg_tar")
  2. When I try to run bazel build //... on my local machine I run into the error message:
    ERROR: /home/user/.cache/bazel/_bazel_user/1f7992ad81ee9cefa6220f093020f63e/external/+java+temurin21_jre_arm64/BUILD.bazel: no such target '@@+java+temurin21_jre_arm64//:temurin21_jre_arm64': target 'temurin21_jre_arm64' not declared in package '' defined by /home/user/.cache/bazel/_bazel_user/1f7992ad81ee9cefa6220f093020f63e/external/+java+temurin21_jre_arm64/BUILD.bazel
  3. Is there a way to build the images locally? and if yes how?

I am new to bazel and would appreciate it if someone could answer my questions and help me to understand how the distroless images get build with bazel

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

No branches or pull requests

1 participant