Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Homebrew install workflow for bedrock #47

Open
12 tasks done
edaena opened this issue May 4, 2020 · 6 comments
Open
12 tasks done

Homebrew install workflow for bedrock #47

edaena opened this issue May 4, 2020 · 6 comments
Assignees

Comments

@edaena
Copy link
Contributor

edaena commented May 4, 2020

As a:
User

I want:
To install bedrock tools with homebrew

So that:
It's easier to install dependencies, and manage versions

Describe the solution you'd like:
Support installing bedrock-cli and fabrikate via homebrew

Acceptance Criteria:

  • Design doc.
  • Create homebrew formula repository https://github.com/microsoft/homebrew-bedrock
  • Add bedrock-cli formula to /microsoft/homebrew-bedrock -> PR
  • Reuse formulas from this repository: https://github.com/edaena/homebrew-core/
  • Update versions and dependencies for the formulas to reflect the latest
  • Investigate a way of automatically updating formulas based on releases.
  • Investigate using brew bottles for distributing the tools instead of having users build from source: https://jonathanchang.org/blog/maintain-your-own-homebrew-repository-with-binary-bottles/
  • Solution does not require building the bedrock-cli from source
  • Solution is part of the Azure DevOps release pipeline and requires no manual intervention
  • Test solution in a separate Azure DevOps project
  • Test additional release
  • Integrate solution to the Bedrock CLI release pipeline
  • Add github service connection for microsoft/homebrew-bedrock in the Azure Pipeline

Describe alternatives you've considered:

  • Possibly add a step to the bedrock github release pipeline

Additional context:
Related resources:
Host bottles for taps
Maintain your own homebrew repo
homebrew bottles
Brew test bot
Example: azcli formula

Does this require updates to documentation?:

@andrebriggs
Copy link
Member

@edaena I would prioritize bedrock first but certainly do fab. Do we have a size for you?

@edaena
Copy link
Contributor Author

edaena commented May 6, 2020

@andrebriggs added the size, and an additional step to explore using brew bottles for a faster installation process which avoids users having to build from source. I would say total, it's a 1-2 day task. I'm marking it as M to be safe.

@andrebriggs
Copy link
Member

@edaena I created a repo. See in the description.

Investigate a way of automatically updating formulas based on releases

This is pretty important if we want to avoid manual work. Let's focus on a POC for this

@edaena edaena self-assigned this May 8, 2020
@edaena
Copy link
Contributor Author

edaena commented May 8, 2020

@andrebriggs the repo name has to start with the word homebrew, so instead of bedrock-homebrew it should be homebrew-bedrock, this is to allow subscription to a tap like this:

brew tap microsoft/bedrock

More information here: https://docs.brew.sh/Taps

@andrebriggs
Copy link
Member

@edaena got it. Will correct

@andrebriggs
Copy link
Member

@edaena done

@andrebriggs andrebriggs transferred this issue from microsoft/bedrock May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants