开源软件名称(OpenSource Name):tighten/takeout开源软件地址(OpenSource Url):https://github.com/tighten/takeout开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):TakeoutTakeout is a CLI tool for spinning up tiny Docker containers, one for each of your development environment dependencies. It's meant to be paired with a tool like Laravel Valet. It's currently compatible with macOS, Linux, Windows 10 and WSL2. With But you can also easily enable ElasticSearch, PostgreSQL, MSSQL, Mongo, Redis, and more, with a simple command. For a current list of services, look at the classes available in this directory: https://github.com/tighten/takeout/tree/main/app/Services Requirements
InstallationInstall Takeout with Composer by running: composer global require tightenco/takeout Make sure the UsageRun One of Takeout's primary benefits is that it boots ("enables") or deletes ("disables") Docker containers for your various dependencies quickly and easily. Because Docker offers persistent volume storage, deleting a container (which we call "disabling" it) doesn't actually delete its data. That means you can enable and disable services with reckless abandon. Enable a serviceShow a list of all services you can enable. takeout enable Enable specific servicesPassed the short name of one or more services, enable them. takeout enable mysql
takeout enable redis meilisearch Enable services with default parametersIf you want to skip over being asked for each parameter and just accept the defaults. This also works with multiple services in one command. takeout enable mysql --default
takeout enable redis meilisearch --default Disable a serviceShow a list of all enabled services you can disable. takeout disable Disable specific servicesPassed the short name of one or more services, disable the enabled services that match them most closely. takeout disable mysql
takeout disable redis meilisearch Disable all servicestakeout disable --all Start a stopped containerShow a list of all stopped containers you can start. takeout start Start specific stopped containersPassed the container ID of one or more stopped containers, start the stopped containers that matches them. takeout start {container_id}
takeout start {container_id1} {container_id2} Start all containersYou may pass the takeout start --all Stop a running containerShow a list of all running containers you can stop. takeout stop Stop specific running containersPassed the container ID of one or more running containers, stop the running containers that matches them. takeout stop {container_id}
takeout stop {container_id1} {container_id2} Running multiple versions of a dependencyAnother of Takeout's benefits is that it allows you to have multiple versions of a dependency installed and running at the same time. That means, for example, that you can run both MySQL 5.7 and 8.0 at the same time, on different ports. Run Now, if you run +--------------+----------------+---------------+-----------------------------------+
| CONTAINER ID | NAMES | STATUS | PORTS |
+--------------+----------------+---------------+-----------------------------------+
| 4bf3379ab2f5 | TO--mysql--5.7 | Up 2 seconds | 33060/tcp, 0.0.0.0:3306->3306/tcp |
| 983acf46ceef | TO--mysql--8.0 | Up 35 seconds | 33060/tcp, 0.0.0.0:3307->3306/tcp |
+--------------+----------------+---------------+-----------------------------------+ FAQsWill this enable the PHP drivers for me via PECL?Sadly, no. If I disable a service but Takeout still shows the port as taken, how do I proceed?First, run If you see output like this:
The solution is to just close your database GUI, and then it should be released. Why would you use this instead of `docker-compose`?Using Will disabling a service permanently delete my databases?Nope! Your data will stick around! By default almost all of our services use a "volume" to attach your data to for exactly this reason. So, when you disable the MySQL service, for example, that volume--with all your data in it--will just sit there quietly. And when you re-enable, as long as you attach it to the same volume, all your data will still be there. Future plansThe best way to see our future plans is to check out the Projects Board, but here are a few plans for the future:
Process for releaseIf you're working with us and are assigned to push a release, here's the easiest process:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论