This repository contains scripts to set up and manage Colima as a Homebrew service on macOS. These scripts help you configure the necessary plist file, start the Colima service, and stop it when needed.
-
Clone this repository to your local machine:
git clone https://github.com/ntrlmt/colima-brew-service-setup.git cd colima-brew-service-setup -
Ensure you have Homebrew installed. If not, install it by following the instructions at https://brew.sh/.
-
Install Colima using Homebrew:
brew install colima
-
Make the scripts executable:
chmod +x start-colima-brew-service.sh stop-colima-brew-service.sh update-colima-plist.sh log-colima-brew-service.sh
The update-colima-plist.sh script ensures that the plist file is properly configured with the necessary arguments for Colima.
Run the script:
./update-colima-plist.shThe start-colima-brew-service.sh script updates the plist file and starts the Colima service using Homebrew.
Run the script:
./start-colima-brew-service.shThe stop-colima-brew-service.sh script stops the Colima service using Homebrew.
Run the script:
./stop-colima-brew-service.shThe log-colima-brew-service.sh script allows you to view the Colima service logs in real-time.
Run the script:
./log-colima-brew-service.shThe update-colima-plist.sh script automatically appends the following arguments to the ProgramArguments array in the plist file if they are not already present:
--vm-type=vz--cpu=4--memory=8--disk=100
You can modify the default values for CPU, memory, and disk size by editing the update-colima-plist.sh script.
The Colima service logs are stored in:
- Standard output:
/opt/homebrew/var/log/colima.log - Standard error:
/opt/homebrew/var/log/colima.log
This project is licensed under the MIT License. See the LICENSE file for details.