Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brave init #26

Closed
esturniolo opened this issue Oct 13, 2020 · 9 comments
Closed

Brave init #26

esturniolo opened this issue Oct 13, 2020 · 9 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@esturniolo
Copy link

esturniolo commented Oct 13, 2020

Hi guys!
Thanks for sharing this spectacular tool. I hope that it can grow in the future.

I follow step by step the Quick Tour in the Readme, but fails because it never mention the brave init command.

Once I ran it, the Quick tour works like a charm.
Another thing is that we (users) don't know what brave init does and why we need to run this first. Or how to remove that brave init does in the future, etc. Also I checked in the https://bravetools.github.io/ docs and you only mention it one time, explaining only this: Create a new Bravetools host.
Can you add more info about init?

BTW, I think that the Readme is a little messy, because the Quick Tour is in the first place, then the Installation part and finally the Command Reference.
If you order it diferrently like:

  • Installation
  • Command Reference
  • Quick Tour

Will be easy to follow the guides.

Thanks!!

EDIT: Even in the https://bravetools.github.io/bravetools/intro/quickstart/ you never mention the brave init.

@idroz idroz self-assigned this Oct 13, 2020
@idroz idroz added the documentation Improvements or additions to documentation label Oct 13, 2020
@idroz
Copy link
Contributor

idroz commented Oct 13, 2020

Thanks! Agreed, brave init and docs in general definitely need some work. I'll get those changes sorted.

@esturniolo
Copy link
Author

Thanks for your fast reponse.
I also missing the way to remove an image.
I created the alpine-example-1.0 image, but I can't remove it.
I didn't see nothing about this in brave --help

Sorry for mix topics here, but I see that is unnecesary to open a newissue for this.
If you want/need it, I can do it.

@idroz
Copy link
Contributor

idroz commented Oct 13, 2020

No worries.

To remove the image:

brave remove -i alpine-example-1.0

@esturniolo
Copy link
Author

Thanks!!

idroz added a commit that referenced this issue Oct 14, 2020
idroz added a commit that referenced this issue Oct 14, 2020
@idroz
Copy link
Contributor

idroz commented Oct 14, 2020

Hello again, I pushed several commits straight to master:

  1. Added TOC and restructured README.md sections
  2. Included Initialise Bravetools section with description of brave init
  3. Updated CLI docs and quickstart in main Bravetools documentation to reflect requirement for brave init

Let me know if this clarifies the brave init story - thanks!

@esturniolo
Copy link
Author

Hi!

This:

brave init will:

Create ~/.bravetools directory that stores all your local images, configurations, and a live Unit database

And this:

On Linux distributions:

Set up a new LXD profile brave
Create a new LXD bridge bravebr0
Create a new storage pool brave-TIMESTAMP
These steps ensure that Bravetools establishes a connection with LXD server and runs a self-contained LXD environment that doesn't interfere with any potentially existing user profiles and LXD bridges.

... it's so much clearer. Thanks for this. Really.

By the other hand I read that you use this as VM for your needs. With LXD you must add as argument "VM" in somewhere (I can't remember the exact place).
If I want to use some Unit as a VM, the Unit is ready for that or in build time I must do something else?
And finally, once the Unit is up and running, is something like docker exec -it blabla?

Sorry for bother you with so much questions.

@idroz
Copy link
Contributor

idroz commented Oct 14, 2020

These are good questions and give us an insight into how bravetools is used outside our team!

VM

We're using bravetools units in lieu of VMs. Multiple units are deployed on bare metal with ssh access enabled. Although LXD does have VM capability, we're not using VMs internally or in production since system containers fit our purposes better. I believe it's possible to export a unit as a VM image using lxc image export imagename --vm and then import it through lxc import but haven't tried it.

docker exec parallel

We've been debating this feature internally since early days. Right now the easiest thing to accomplish this is just thorugh lxc itself:

On Linux:

lxc exec UNITNAME sh

On Mac/Windows

multipass exec brave lxc exec UNITNAME sh

If there's a strong enough case for it, we'll implement it 😄

@idroz
Copy link
Contributor

idroz commented Oct 14, 2020

By the way, are you happy for me to close the original issue? Any general questions, just open a new issue and we'll pick them up there.

@esturniolo
Copy link
Author

By the way, are you happy for me to close the original issue?

Sure! No worries.

Everytime that you answer something I've got two or more newquestions. It's like an Hydra of questions!! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants