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

devctl features (V1.0) #1

Open
7 tasks
bcaldwell opened this issue Jul 7, 2016 · 22 comments
Open
7 tasks

devctl features (V1.0) #1

bcaldwell opened this issue Jul 7, 2016 · 22 comments

Comments

@bcaldwell
Copy link
Owner

bcaldwell commented Jul 7, 2016

  • auto set on cd nvm and chruby
  • cd
    • work with projects not in the default location (v2.0)
  • up
    • start docker containers
  • down
  • server
  • init
  • update (with git)
  • could we do something to help when you get the annoying "your port is in use" thing
    @karanthukral
@karanthukral
Copy link
Collaborator

When you say not in the default location do you mean fuzzy search the entire comp?

@bcaldwell
Copy link
Owner Author

Ya kind of. I was thinking we can keep a database file to store where all the projects are. Perhaps we could have a devctl add to add it. Might be cool to do it after a git clone

@karanthukral
Copy link
Collaborator

you could piggy back off the post clone hook

@bcaldwell
Copy link
Owner Author

Ya that would be cool

@bcaldwell
Copy link
Owner Author

As a first pass we could use docker compose to manage the containers for us. It would save us from having to configure containers for the mvp

@karanthukral
Copy link
Collaborator

We should use an etcd cluster to store where each folder is stored lol

@bcaldwell
Copy link
Owner Author

#webscale!

@karanthukral
Copy link
Collaborator

it actually might not be a horrible idea actually :P

@bcaldwell
Copy link
Owner Author

seems like overkill though. It's kind of shitty to rely on a VM to work

@karanthukral
Copy link
Collaborator

Not a VM. Run just simple etcd in a docker container and mount the logfile directory

@bcaldwell
Copy link
Owner Author

Docker still requires a VM to run it. Docker seems like an unnecessary dependency

@karanthukral
Copy link
Collaborator

Agreed but most of the actual features like booting up stuff have to rely on docker already.

@bcaldwell
Copy link
Owner Author

bcaldwell commented Jul 8, 2016

The difference is you expect devctl up to reply on docker whereas I wouldnt expect devctl cd reply on it. Having said that we could do something like this:

Although this adds unnecessary complexity. We would also have to wait for the container to spin up and would require the docker daemon to be running

@karanthukral
Copy link
Collaborator

well if you wanted to go all out you could build the vm on top of hypervisor as part of the initialization and not rely on docker. We don't have to use etcd. It was just an idea to see how we could keep this config clean

@bcaldwell
Copy link
Owner Author

I was just thinking of using a textfile but I'm not sure thats the best solution. Think theres room for brainstorming here, on how to do this. Might be something to save for future versions.

It would be cool to use etcd though. The way to do it I think would be through serverless docker structure. Might be fun to experiment with

@karanthukral
Copy link
Collaborator

I was trying to stay away from the text file thats why I was thinking something like etcd. Lets keep spit balling here

@karanthukral
Copy link
Collaborator

@bcaldwell
Copy link
Owner Author

That looks cool

I agree text files are icky
One cool thing that a textfile that could be cool that you can potentially copy it to a new machine and run devctl setup and have it read that file and setup all the projects where they were before. Same could of course be done with other methods

@karanthukral
Copy link
Collaborator

Ya etcd is backed by a simple log file too

@karanthukral
Copy link
Collaborator

@bcaldwell
Copy link
Owner Author

bcaldwell commented Jul 8, 2016

For a project that is

is a very new project, expect bugs!

xhyve is rather dead :(

I've head of confd. It looks cool!!!! Didn't know that it was done by kelsey.

@bcaldwell
Copy link
Owner Author

Dev uses ~/.devconfig to setup the default clone path

@bcaldwell bcaldwell changed the title devctl features devctl features (V1.0) Jul 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants