Skip to content

Packaging binaries with runfiles tree #579

Closed
@mvukov

Description

@mvukov

I have a simple use-case (I believe) where I want to package a binary with runfiles tree correctly set up inside the archive -- pretty much exactly what rules_docker does to package a binary in a Docker layer. pkg_zip flattens everything and that doesn't work for me (at least that was the case when I tried to use an older version of this repo).

So, I took what I need from app_layer from rules_docker and created rule binary_pkg_tar. This is interesting when one wants to cross-compile a binary, package it (with all deps, data), transfer to a target device, unpack and run the binary.

I just wanted to share this here in hope folks find it useful.

Metadata

Metadata

Assignees

Labels

P1An issue that must be resolved. Must have an assignee

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions