Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Unable to install packages #360

Open
cwaeland opened this issue Jun 6, 2019 · 0 comments
Open

Unable to install packages #360

cwaeland opened this issue Jun 6, 2019 · 0 comments

Comments

@cwaeland
Copy link

cwaeland commented Jun 6, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant