grailbio / rules_r

R rules for Bazel
Apache License 2.0
40 stars 19 forks source link

Deployment story #43

Closed Marcus-Rosti closed 4 years ago

Marcus-Rosti commented 4 years ago

Is there a deployment story native to bazel? Or is the out of scope for this?

siddharthab commented 4 years ago

Can you elaborate on what you mean? Perhaps with an example. Thanks.

Marcus-Rosti commented 4 years ago

I want to build an r library and deploy it to artifactory so that others can install it from there. We don't have a monorepo for people outside of our immediate group

siddharthab commented 4 years ago

My recommendation for this:

  1. Make an r_library target which lists all the packages you want to install. Let's say you name this :myrlib.
  2. Run bazel run :myrlib -- -l /path/to/output_dir to output all packages to disk outside of bazel.
  3. Use a function like cloneLibraryToRepo in https://github.com/grailbio/rules_r/blob/master/scripts/repo_management.R to make a repository out of your library directory above, and then publish it to Artifactory. Or use some other means to publish the packages.

If you have a smoothed out flow for this, please feel free to submit a PR.

siddharthab commented 4 years ago

Closing because of inactivity. Can reopen if needed to follow up.