Skip to content

ntrlmt/colima-brew-service-setup

Repository files navigation

Colima Homebrew Service Setup Script

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.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/ntrlmt/colima-brew-service-setup.git
    cd colima-brew-service-setup
  2. Ensure you have Homebrew installed. If not, install it by following the instructions at https://brew.sh/.

  3. Install Colima using Homebrew:

    brew install colima
  4. 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

Usage

Update the Colima plist file

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.sh

Start the Colima service

The start-colima-brew-service.sh script updates the plist file and starts the Colima service using Homebrew.

Run the script:

./start-colima-brew-service.sh

Stop the Colima service

The stop-colima-brew-service.sh script stops the Colima service using Homebrew.

Run the script:

./stop-colima-brew-service.sh

View the Colima service logs

The log-colima-brew-service.sh script allows you to view the Colima service logs in real-time.

Run the script:

./log-colima-brew-service.sh

Configuration

The 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.

Logs

The Colima service logs are stored in:

  • Standard output: /opt/homebrew/var/log/colima.log
  • Standard error: /opt/homebrew/var/log/colima.log

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Manage Colima as a Homebrew service on macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages