Score:0

how to install Bazel into Alpine container using apk

ph flag

I want to install Bazel (version 5.1.1) into an Alpine container using apk.

I tried this command and got this error:

% apk add bazel=5.1.1
ERROR: unable to select packages:
  bazel (no such package):
    required by: world[bazel=5.1.1]

Removing the version doesn't help...

% apk add bazel
ERROR: unable to select packages:
  bazel (no such package):
    required by: world[bazel]

Adding "--no-cache" to the apk command also doesn't help.

Can anyone explain the cause of the error and how to make the installation happen correctly?

Score:1
cn flag

I visited the packages menu on Alphine website and bazel is in the testing repository.

https://pkgs.alpinelinux.org/packages?name=bazel*&branch=edge&repo=&arch=&maintainer=

Can you please check /etc/apk/repositories to make sure that testing repo is enable if you want to use the testing repo.

Mike W avatar
ph flag
Thanks! Appending http://dl-cdn.alpinelinux.org/alpine/edge/testing to the end of /etc/apk/repositories allowed Bazel to be installed.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.