rules_pkg
Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
File Explorer
Download Latest Version (.zip)- examples_naming.yml
- examples_rich_structure.yml
- examples_stamping.yml
- integration.yml
- presubmit.yml
- tests.yml
- config.yml
- metadata.template.json
- presubmit.yml
- README.md
- source.template.json
- settings.local.json
- checks.sh
- checks.yml
- pre-commit.yml
- publish_to_bcr.yml
- release.yml
- release_module.yml
- release_prep.sh
- scorecard.yml
- Dockerfile
- README.md
- run.sh
- BUILD.tpl
- __init__.py
- BUILD
- packaging_test.py
- BUILD
- common.md
- merge.py
- toc.md.tpl
- reference.md
- reference.md
- reference.md
- reference.md
- reference.md
- reference.md
- reference.md
- reference.md
- reference.md
- reference.md
- head-custom.html
- head.html
- _config.yml
- favicon.ico
- index.md
- latest.md
- pkg_deb.md
- robots.txt
- BUILD
- MODULE.bazel
- my_package_name.bzl
- package_upload.bzl
- readme.md
- index.md
- BUILD
- index.md
- user_guide.md
- msg.cat
- msg.cat
- msg.cat
- msg.cat
- msg.cat
- msg.cat
- BUILD
- bar.rules
- baz.rules
- BUILD
- foo.1
- foo.cc
- foo.h
- foocore.cc
- fooctl.cc
- BUILD
- foo.h
- foocore.cc
- food.8
- food.cc
- BUILD
- copyright
- foo_defs.bzl
- MODULE.bazel
- README.md
- README.txt
- BUILD
- MODULE.bazel
- README.md
- test.c
- BUILD
- MODULE.bazel
- README.md
- macros
- platform
- rpmrc
- BUILD
- rpmbuild.bzl
- rpmbuild_binary
- BUILD
- README.md
- test_rpm.spec
- WORKSPACE
- BUILD
- MODULE.bazel
- README.md
- BUILD
- README.md
- test_rpm.spec
- WORKSPACE
- BUILD
- MODULE.bazel
- README.md
- test_rpm.spec
- BUILD
- MODULE.bazel
- README.md
- BUILD
- MODULE.bazel
- readme.md
- BUILD
- MODULE.bazel
- README.md
- show_all_outputs.bzl
- BUILD
- readme.md
- BUILD
- test_rpm.spec
- BUILD
- rpm.bzl
- BUILD
- deb.bzl
- make_deb.py
- BUILD
- build_tar.py
- tar.bzl
- tar_writer.py
- __init__.py
- BUILD
- build_zip.py
- zip.bzl
- __init__.py
- archive.py
- BUILD
- build_info.py
- helpers.py
- install.py.tpl
- manifest.py
- pkg_files.bzl
- util.bzl
- __init__.py
- BUILD
- defs.bzl
- git.bzl
- git_changelog_private.py
- print_rel_notes.py
- release_tools.py
- release_tools_test.py
- augment_rpm_files_install.py
- BUILD
- template.spec.tpl
- .bazelignore
- __init__.py
- BUILD
- deb.bzl
- deps.bzl
- filter_directory.py
- install.bzl
- make_rpm.py
- mappings.bzl
- package_variables.bzl
- path.bzl
- pkg.bzl
- providers.bzl
- rpm.bzl
- rpm_pfg.bzl
- tar.bzl
- verify_archive.bzl
- verify_archive_test_main.py.tpl
- zip.bzl
- BUILD
- LICENSE
- MODULE.bazel
- providers.bzl
- version.bzl
- BUILD
- changelog
- config
- control_field_test.py
- deb_preinst
- deb_tests.bzl
- deb_triggers
- pkg_deb_test.py
- pkg_deb_variables_test.py
- templates
- BUILD
- test.py
- extproj.sh
- BUILD
- test.bzl
- MODULE.bazel
- WORKSPACE
- BUILD
- defs.bzl
- inspect_directory.py.tpl
- test_filter_directory.py
- a_script.sh
- config
- hello.txt
- all.manifest.golden
- BUILD
- executable.manifest.golden
- executable.manifest.windows.golden
- glob_for_texts_manifest.golden
- manifest_test_lib.py
- manifest_test_main.py.tpl
- mappings_external_repo_test.bzl
- mappings_test.bzl
- node_modules_manifest.golden
- utf8_manifest.golden
- BUILD
- epoch.txt
- rpm_contents_vs_manifest_test.py
- BUILD
- rpm_contents_vs_manifest_test.py
- rpm_treeartifact_ops_test.py
- analysis_tests.bzl
- BUILD
- make_rpm_test.py
- pkg_rpm_basic_test.py
- rpm_util.py
- template-test.spec.tpl
- test.c
- test_debuginfo_rpm_contents.txt.golden
- test_rpm_dirs_contents.txt.golden
- test_sub_rpm_contents.txt.golden
- toolchain_tests.bzl
- BUILD
- compressor.py
- defs.bzl
- is_compressed_test.py
- pkg_tar_test.py
- program_with_rules_shell_runfiles.sh
- tar_writer_test.py
- 2-Ξ»
- hello
- 1-a
- 2-Ξ»
- 3-δΈ
- BUILD
- a.ar
- a_ab.ar
- a_b.ar
- a_b_ab.ar
- ab.ar
- b.ar
- config
- deb_preinst
- deb_triggers
- duplicate_entries.tar
- empty.ar
- executable.sh
- file_with_a_ridiculously_long_name_consectetur_adipiscing_elit_fusce_laoreet_lorem_neque_sed_pharetra_erat.txt
- hello.txt
- loremipsum.txt
- outer_BUILD
- README.md
- tar_test.tar
- tar_test.tar.bz2
- tar_test.tar.gz
- tar_test.tar.xz
- tar_xz_test.tar
- templates
- test_tar_package_dir_file.txt
- utf8_linux.tar
- utf8_linux.zip
- utf8_mac.tar
- utf8_mac.zip
- utf8_win.tar
- utf8_win.zip
- BUILD
- create_directory_with_contents.py
- defs.bzl
- md5.py
- BUILD
- BUILD
- symlink_util.bzl
- unicode_test.py
- zip_byte_for_byte_test.py
- zip_symlink_test.py
- zip_test.py
- zip_test_lib.py
- a.cc
- archive_test.py
- b.cc
- BUILD
- foo.cc
- helpers_test.py
- my_package_name.bzl
- package_naming_aggregate_test.sh
- path_test.bzl
- path_test.py
- stamp_test.py
- BUILD
- BUILD.tpl
- git.bzl
- git_configure.bzl
- BUILD
- BUILD.tpl
- rpmbuild.bzl
- rpmbuild_configure.bzl
- BUILD
- .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 RecommendedPrerequisites
- 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
Was this content helpful?
(0 ratings)
