-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Discuess] CLI Features. #1
Comments
Why did you choose Golang? It just my curiosity. I think Python is more common or am I wrong? |
About items before: I think it could be convenient to use:
|
I also want to suggest adding a command that rebuilds the nginx container to add any new sites that might have been added, maybe call it |
You don't need to install any package on server or desktop (Windows, Linux or MacOS), just download binary. It is working for everyone. Try the following package: https://github.com/appleboy/gorush/releases/tag/v1.7.1 Download binary depends on your OS and executes the binary. |
Hi guys, I'm the author of kickoff-docker-php and I've been contacted by @Mahmoudz for sharing my ideas about a CLI tool for Laradock. In my opinion, each project should have its own "Laradock environment". A project may contain one or more applications (the source code, a server, PHP-FPM and tools - composer, npm..) plus some shared services (DBMS, RabbitMQ and so on). For example:
Builds all the containers and starts them 🤘 So the CLI tool will help developers to pick what they need from the rich collection of the Laradock' services 😃 |
@gulien I am currently using WAMP to build & manage WordPress websites which share the same configuration. I'm planning to move to a Docker development environment. |
@olivia101 @gulien personally I think that the advantage of having laradock per project is that it's tailored to the projects needs. For example one project needs PHP 5.* and another needs PHP 7 and so on. Disregarding the version bit, again personally I like a small footprint when it comes to Docker containers. Because these build faster e.g. more time to develop :) |
@Treggats "For example one project needs PHP 5.* and another needs PHP 7 and so on." |
@olivia101 In that case it wouldn't indeed have any additional value to have a per-project-laradock. |
@gulien It seems like play with closed box... we can do something but don't know what is happens inside. My opinions are:
My suggestions are:
|
@dlnsk My main idea is that each project has its own needs and the CLI tool might help people to setup correctly their projects by picking up what they need. But maybe it's not the purpose of Laradock, which might be interpreted as "we bring you every services so you don't have to struggle with the technical environment of your projects".
You could actually update the docker-compose.yml file directly as the "add" command will not altering pre-existing "block".
Helping people to add services "on the fly" without having to worry about "did I miss something?".
You're right 😃 ! My previous post was not clear, but I was just highlighting a possibility which I find interesting. Your suggestions are definitely more in the Laradock's philosophy as stated before. @Mahmoudz @appleboy @philtrep Do you guys have opinions or suggestions to share 😃 ? |
Hi guys! I've been working on the v2 of kickoff-docker-php. I'm now using Orbit, which allows me to generate templates according to a YAML file, a .env file and the current OS at runtime. Also, it is able to run external commands (like I think it might be an interesting tool to help Laradock's user to setup a Laradock project easily. |
Hey, |
I've been working on this proof of concept: https://github.com/tonysm/laradock-cli/ Maybe it gives some ideas to the official one, would love some feedback there too. |
@tonysm +1 for the README |
Personally, I dont like cloning Laradock to several locations on my machine. My solution to missing CLI support is to have a script called Instead of having a myriad of Laradock instances (which takes up a whole load of Disk and bandwidth) it just boots/reboots the containers and updates the current I am not proposing this as a change of scope, as my little stupid script has a lot less to offer than what's planned here. But I hope you take my view of the situation into consideration. |
Implement program language: Golang
Support Platform:
Reference: https://github.com/logaretm/laradock-cli
laradock init
Initializes Laradock in existing laravel projects.laradock up
Creates/Starts the Laradock containers for the current project.laradock halt
Stops the containers running for the current project.laradock destroy
Destroys/Removes Laradock from the current project.laradock ssh
Helps you ssh into the workspace container to run migrations or seeds.cc @Mahmoudz @dlnsk @philtrep @laradock/owners @laradock/admins
The text was updated successfully, but these errors were encountered: