rules_pkg

(β˜… 251)

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)

  • .bazelignore
  • .bazelrc
  • .gitignore
  • .pre-commit-config.yaml
  • .typos.toml
  • AUTHORS
  • BUILD
  • CHANGELOG.md
  • CLAUDE.md
  • CODEOWNERS
  • CONTRIBUTING.md
  • CONTRIBUTORS
  • deps.bzl
  • developers.md
  • LICENSE
  • mappings.bzl
  • MODULE.bazel
  • patching.md
  • pkg.bzl
  • README.md
  • version.bzl
  • WORKSPACE
  • WORKSPACE.bzlmod

# Installation Guide

1. Get the code
git clone https://github.com/bazelbuild/rules_pkg

Downloads the entire project code from GitHub to your computer.

cd rules_pkg

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
⚠️ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
docker build -f contrib/alma9_rpmbuild_docker/docker/Dockerfile -t rules-pkg .

Builds a runnable image based on the Dockerfile.

docker run -p 8080:80 rules-pkg

Runs the built image as an actual container.

βœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
// repository documentation