rules_apko icon indicating copy to clipboard operation
rules_apko copied to clipboard

Bazel rules for apko

Results 45 rules_apko issues
Sort by recently updated
recently updated
newest added

I'm trying to get started with `rules_apko` and I'm failing to produce the `apko.lock.json` file. I have this, which I've copied from the examples: ```$ cat ./bazel/apko/base_images/wolfi/apko.yaml contents: keyring: -...

In https://github.com/sourcegraph/sourcegraph, we've [defined our own apko toolchain](https://github.com/sourcegraph/sourcegraph/pull/60785/files#diff-7fc57714ef13c3325ce2a1130202edced92fcccc0c6db34a72f7b57f60d552a3R350-R356) to integrate a patch to [go-apk](https://github.com/chainguard-dev/go-apk/pull/216) for the apko binary. Due to this, we pass `register = False` to `apko_register_toolchains`. This surfaced...

This renders the initial setup step for people using `>=Bazel 7.1`. People who has done the initial setup may do the opposite of what was instructed in the https://github.com/chainguard-dev/rules_apko/blob/main/docs/initial-setup.md

We started seeing the following errors on all our `apko_image` targets: ``` (10:27:41) ERROR: /mnt/ephemeral/workdir/sourcegraph/sourcegraph/cmd/batcheshelper/BUILD.bazel:78:11: Action cmd/batcheshelper/wolfi_base_apko failed: missing input file '@@batcheshelper_apko_lock//:lockfile_copy' (10:27:41) ERROR: /mnt/ephemeral/workdir/sourcegraph/sourcegraph/cmd/batcheshelper/BUILD.bazel:78:11: Action cmd/batcheshelper/wolfi_base_apko failed: 1 input...

Looking at this example: https://github.com/chainguard-dev/apko/blob/main/examples/overlay.yaml This doesn't work with bazel because the base yamls are not included in the build. Given something like this: ``` # apko.yaml include: base/base.yaml contents:...

bug
enhancement

Thank you for creating this Bazel rule; it was exactly what I was looking for. However, I have one question: Is there, or will there be, support for using a...

Hi all, I'm using `rules_apko` to build our Alpine images, but any that require an apk package not provided by an online mirror doesn't seem to be possible. For instance...

Hello friends! First, I want to thank you for your work on this so far. It's a _really_ nice little way to put together alpine containers and leverage the developing...

Building `apko_image` targets fails when the host platform blocks network access. For example, this action command fails: ``` external/rules_apko~~apko~apko_linux_amd64/apko \ build \ infrastructure/buildkite/agent/apko.yaml \ unused:unused \ bazel-out/k8-fastbuild/bin/infrastructure/buildkite/agent/base_image \ --vcs=false \...

I am trying to achieve the following in Bazel, in order to migrate away from `rules_docker`: - Base image pulled using `rules_oci` - An Alpine package installed using apko (`git`)...