This repository was archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
Unable to install packages #360
Copy link
Copy link
Open
Description
Hello,
I've been trying to find what documentation I can but so far have been unable to get packages like curl installed into my image.
Currently my WORKSPACE file looks like:
load(
"@io_bazel_rules_docker//container:container.bzl",
"container_pull",
)
container_pull(
name = "ubuntu_python",
registry = "index.docker.io",
repository = "library/ubuntu",
tag = "14.04",
digest = "sha256:2feffff9eeca4e736f9f8e57813a97fe930554f474f7795ffa5a9261adeaaf44",
)
And then in the relevant build file I have the following:
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
load("@base_images_docker//package_managers:download_pkgs.bzl", "download_pkgs")
load("@base_images_docker//package_managers:install_pkgs.bzl", "install_pkgs")
download_pkgs(
name = "anvil_builder_pkgs",
image_tar = "@ubuntu_python//image",
packages = ["curl"],
)
install_pkgs(
name = "anvil_builder_install_pkgs",
image_tar = "@ubuntu_python//image",
installables_tar = ":anvil_builder_pkgs",
output_image_name = "anvil_image",
)
container_image(
name = "anvil_builder",
base = ":anvil_builder_install_pkgs",
cmd = ["/etc"],
tars = [":anvil_tar"]
)
The :anvil_builder target runs successfully and the contents of my anvil_tar are in the image, but curl remains unavailable.
Any help would be appreciated. I believe documentation as mentioned here: #222 would help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels