### Start All Containers Source: https://github.com/tighten/takeout/blob/main/README.md Use the `--all` flag with the `takeout start` command to start all enabled containers. ```bash takeout start --all ``` -------------------------------- ### Start a Stopped Container Source: https://github.com/tighten/takeout/blob/main/README.md Run `takeout start` without arguments to display a list of all stopped containers that can be started. ```bash takeout start ``` -------------------------------- ### Install Takeout via Composer Source: https://github.com/tighten/takeout/blob/main/README.md Install Takeout globally using Composer. This method requires a PHP environment and is not recommended for all users. ```bash composer global require "tightenco/takeout:~2.9" ``` -------------------------------- ### Start Specific Stopped Containers Source: https://github.com/tighten/takeout/blob/main/README.md Start one or more specific stopped containers by providing their container IDs as arguments to the `takeout start` command. ```bash takeout start {container_id} ``` ```bash takeout start {container_id1} {container_id2} ``` -------------------------------- ### Install Takeout via Docker Alias (Windows Bash) Source: https://github.com/tighten/takeout/blob/main/README.md Use this alias in Bash on Windows 10|11 to run the Dockerized Takeout image. Ensure Docker is configured correctly. ```bash alias takeout="docker run --rm -v //var/run/docker.sock:/var/run/docker.sock --add-host=host.docker.internal:host-gateway -it tighten/takeout:latest" ``` -------------------------------- ### Run PHPUnit Tests Source: https://github.com/tighten/takeout/blob/main/CONTRIBUTING.md Execute all PHPUnit tests for the project. Ensure you have run composer install first. ```bash vendor/bin/phpunit ``` -------------------------------- ### Install Takeout via Docker Alias (Linux/macOS) Source: https://github.com/tighten/takeout/blob/main/README.md Add this alias to your shell configuration file (e.g., ~/.bashrc, ~/.zshrc) for easy access to the Dockerized Takeout image. ```bash alias takeout="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock --add-host=host.docker.internal:host-gateway -it tighten/takeout:latest" ``` -------------------------------- ### Get a Shell Inside a Takeout Container Source: https://github.com/tighten/takeout/blob/main/README.md Access a running Takeout container's shell using the `takeout shell` command followed by the service name. This command starts either a `bash` or `sh` process inside the container. ```bash takeout shell {service} ``` ```bash takeout shell mysql ``` ```bash takeout shell neo4j ``` ```bash takeout shell pgvector ``` -------------------------------- ### Install Takeout via Docker Alias (Windows PowerShell) Source: https://github.com/tighten/takeout/blob/main/README.md Define this function in PowerShell on Windows 10|11 to execute the Dockerized Takeout image. It passes arguments to the container. ```powershell function takeout { docker run --rm -v //var/run/docker.sock:/var/run/docker.sock --add-host=host.docker.internal:host-gateway -it tighten/takeout:latest $args } ``` -------------------------------- ### Enable a Service Source: https://github.com/tighten/takeout/blob/main/README.md Run 'takeout enable' to view a list of all available services that can be enabled in your development environment. ```bash takeout enable ``` -------------------------------- ### Create a Docker Buildx builder instance Source: https://github.com/tighten/takeout/blob/main/README.md Creates and uses a new Docker Buildx builder instance. This is necessary if the default driver does not support multi-platform builds. ```bash docker buildx create --use ``` -------------------------------- ### Build Docker image for multiple platforms Source: https://github.com/tighten/takeout/blob/main/README.md Builds a Docker image for both amd64 and arm64 architectures and pushes it to a registry. Requires Docker BuildKit. ```bash docker buildx build --platform=linux/amd64,linux/arm64 -t tighten/takeout:latest --push . ``` -------------------------------- ### Enable Services with Default Parameters Source: https://github.com/tighten/takeout/blob/main/README.md Use the --default flag to accept all default parameters for the specified services without interactive prompts. This can be used for multiple services. ```bash takeout enable mysql --default ``` ```bash takeout enable redis meilisearch --default ``` -------------------------------- ### Enable Specific Services Source: https://github.com/tighten/takeout/blob/main/README.md Enable one or more specific services by providing their short names as arguments to the 'enable' command. ```bash takeout enable mysql ``` ```bash takeout enable redis meilisearch ``` -------------------------------- ### List Takeout commands Source: https://github.com/tighten/takeout/blob/main/README.md Runs the built Takeout application to list available commands. Used to verify the build. ```bash php ./builds/takeout list ``` -------------------------------- ### Build Takeout application Source: https://github.com/tighten/takeout/blob/main/README.md Builds the Takeout application locally. This command is part of the release process and ensures the latest version is available before building the Docker image. ```bash php ./takeout app:build ``` -------------------------------- ### Enable Service with Extra Docker Run Options Source: https://github.com/tighten/takeout/blob/main/README.md Use the `--run` option to pass additional arguments to the `docker run` command when enabling a service. This allows for custom environment variables or volume mappings. ```bash takeout enable mysql --run="{docker-run-options}" ``` -------------------------------- ### List Enabled Services Source: https://github.com/tighten/takeout/blob/main/README.md The `takeout list` command displays a table of all enabled services, including their container ID, name, status, and exposed ports. This is useful for monitoring running services and identifying potential port conflicts. ```bash +--------------+----------------+---------------+-----------------------------------+ | 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 | +--------------+----------------+---------------+-----------------------------------+ ``` -------------------------------- ### Mixing Docker Run Options with Container Arguments Source: https://github.com/tighten/takeout/blob/main/README.md Combine `--run` options with direct container arguments to customize service enablement. This is useful for specifying hostnames, users, or other service-specific parameters. ```bash takeout enable mysql --run="{docker-run-options}" -- -hsome.mysql.host -usome-user ``` -------------------------------- ### Disable All Services Source: https://github.com/tighten/takeout/blob/main/README.md Use the `--all` flag with the `takeout disable` command to disable all currently enabled services. ```bash takeout disable --all ``` -------------------------------- ### Passthrough Container Arguments Source: https://github.com/tighten/takeout/blob/main/README.md Pass extra arguments directly to the container's entrypoint by appending them after a '--' separator. These are not Docker run options. ```bash takeout enable mysql -- -hsome.mysql.host -usome-user ``` -------------------------------- ### Disable a Service Source: https://github.com/tighten/takeout/blob/main/README.md Run `takeout disable` without arguments to see a list of all enabled services that can be disabled. ```bash takeout disable ``` -------------------------------- ### Check for processes using a specific port Source: https://github.com/tighten/takeout/blob/main/README.md Use `lsof` to identify processes listening on a given port. This is useful for troubleshooting port conflicts. ```bash lsof -i :3306 ``` -------------------------------- ### Stop a Running Container Source: https://github.com/tighten/takeout/blob/main/README.md Run `takeout stop` without arguments to view a list of all running containers that can be stopped. ```bash takeout stop ``` -------------------------------- ### Stop Specific Running Containers Source: https://github.com/tighten/takeout/blob/main/README.md Stop one or more specific running containers by providing their container IDs as arguments to the `takeout stop` command. ```bash takeout stop {container_id} ``` ```bash takeout stop {container_id1} {container_id2} ``` -------------------------------- ### Disable Specific Services Source: https://github.com/tighten/takeout/blob/main/README.md Disable one or more specific services by providing their short names as arguments to the `takeout disable` command. ```bash takeout disable mysql ``` ```bash takeout disable redis meilisearch ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.