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

Unable to install packages #360

Description

@cwaeland

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions