Deploying C++ binaries

362 views
Skip to first unread message

sharvil....@gmail.com

unread,
Jan 2, 2018, 8:07:39 PM1/2/18
to bazel-discuss
I'm trying to deploy an application to a production machine which doesn't have source access so I can't 'bazel run' the target.

Is there a recommended way to deploy a C++ binary and all its associated runfiles? I've tried pkg_tar but it only picks up the binary.

Marcel Hlopko

unread,
Jan 3, 2018, 4:24:24 AM1/3/18
to sharvil....@gmail.com, bazel-discuss
Sounds like pkg_tar or other rules from https://docs.bazel.build/versions/master/be/pkg.html should be working, but they don't. Can you file a feature request on the github and assign it to me? I'll take a look after my vacation (= in February).

On Wed, Jan 3, 2018 at 2:07 AM <sharvil....@gmail.com> wrote:
I'm trying to deploy an application to a production machine which doesn't have source access so I can't 'bazel run' the target.

Is there a recommended way to deploy a C++ binary and all its associated runfiles? I've tried pkg_tar but it only picks up the binary.

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/c1711acc-8903-4977-9624-1081129e3ce3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
-- 
Marcel Hlopko | Software Engineer | hlo...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891

George Gensure

unread,
Jan 3, 2018, 11:11:49 AM1/3/18
to Marcel Hlopko, sharvil....@gmail.com, bazel-discuss
+1 those have never worked, I had no idea they were expected to, and we've written macros that look like aspects to rules to get around this problem. Had I known that they were intended to allow you to package cc's with dependencies, we would have filed this ages ago

-George

On Wed, Jan 3, 2018 at 4:24 AM, 'Marcel Hlopko' via bazel-discuss <bazel-...@googlegroups.com> wrote:
Sounds like pkg_tar or other rules from https://docs.bazel.build/versions/master/be/pkg.html should be working, but they don't. Can you file a feature request on the github and assign it to me? I'll take a look after my vacation (= in February).
On Wed, Jan 3, 2018 at 2:07 AM <sharvil....@gmail.com> wrote:
I'm trying to deploy an application to a production machine which doesn't have source access so I can't 'bazel run' the target.

Is there a recommended way to deploy a C++ binary and all its associated runfiles? I've tried pkg_tar but it only picks up the binary.

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
--
-- 
Marcel Hlopko | Software Engineer | hlo...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | GermanyGeschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9Gmc-Q%2B8Za_%3DsqWEGy2xmb8g0Fx7oUVrydYMVgBuxBZ5-A%40mail.gmail.com.

Sharvil Nanavati

unread,
Jan 3, 2018, 3:27:17 PM1/3/18
to George Gensure, Marcel Hlopko, bazel-discuss
Thanks, Marcel. I've filed https://github.com/bazelbuild/bazel/issues/4383 for this feature. I'm unable to assign the issue but I'm happy to ping this thread again after your vacation if thats helpful.

On Wed, Jan 3, 2018 at 8:11 AM, George Gensure <ggen...@uber.com> wrote:
+1 those have never worked, I had no idea they were expected to, and we've written macros that look like aspects to rules to get around this problem. Had I known that they were intended to allow you to package cc's with dependencies, we would have filed this ages ago

-George

Marcel Hlopko

unread,
Jan 4, 2018, 3:20:19 AM1/4/18
to Sharvil Nanavati, George Gensure, bazel-discuss
Thanks! Please do if you see no activity in the week of 29th :)

On Wed, Jan 3, 2018 at 9:27 PM Sharvil Nanavati <sharvil....@gmail.com> wrote:
Thanks, Marcel. I've filed https://github.com/bazelbuild/bazel/issues/4383 for this feature. I'm unable to assign the issue but I'm happy to ping this thread again after your vacation if thats helpful.
On Wed, Jan 3, 2018 at 8:11 AM, George Gensure <ggen...@uber.com> wrote:
+1 those have never worked, I had no idea they were expected to, and we've written macros that look like aspects to rules to get around this problem. Had I known that they were intended to allow you to package cc's with dependencies, we would have filed this ages ago

-George
On Wed, Jan 3, 2018 at 4:24 AM, 'Marcel Hlopko' via bazel-discuss <bazel-...@googlegroups.com> wrote:
Sounds like pkg_tar or other rules from https://docs.bazel.build/versions/master/be/pkg.html should be working, but they don't. Can you file a feature request on the github and assign it to me? I'll take a look after my vacation (= in February).
On Wed, Jan 3, 2018 at 2:07 AM <sharvil....@gmail.com> wrote:
I'm trying to deploy an application to a production machine which doesn't have source access so I can't 'bazel run' the target.

Is there a recommended way to deploy a C++ binary and all its associated runfiles? I've tried pkg_tar but it only picks up the binary.

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
--
-- 
Marcel Hlopko | Software Engineer | hlo...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | GermanyGeschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.

Austin Schuh

unread,
Jan 4, 2018, 3:25:47 AM1/4/18
to Marcel Hlopko, Sharvil Nanavati, George Gensure, bazel-discuss
Food for thought, but we've started relying on binaries not having runfiles packaged with them by now.  We've got a bunch of targets which pull together config files, for example, and package them in the correct places in the final package.  Maybe that means it should be an option to the rule?

There needs to be a way to package up runfiles for sure.  Python has huge issues with this.

Austin

sharvil....@gmail.com

unread,
Mar 1, 2018, 8:09:25 PM3/1/18
to bazel-discuss
Bumping this thread since the Github issue has been inactive for a few weeks now. I am still very interested in this feature.
Reply all
Reply to author
Forward
0 new messages