Installing Zato under Mac

August 24, 2020

Zato and Mac logo

The next Zato release will offer a native Mac installer while for now an installation from source is needed - read on for details on how to set up Zato today using Homebrew.

The fundamental idea behind supporting non-Linux environments is that of making it easier for developers to work on their API services before the code is shipped to Linux test and production environments. That is, Linux is the final destination for code but that should not prevent one from using a non-Linux system during development.

One aspect to keep in mind is that the Mac version is still a technology preview - it is not a stable release yet and there may be some changes to core Zato before the final release is published. Be sure to keep your source updated.

Source installation

Make sure that you have Mac High Sierra 10.3 or newer

% sw_vers -productVersion

If it is not available in the system yet, install Homebrew

% brew -v
Homebrew 2.4.13-67-gf943af3
Homebrew/homebrew-core (git revision 5a20f; last commit 2020-08-23)

Clone Zato from GitHub:

% git clone && cd ./zato

Run the Zato source installer as below - it is the only command needed and the resulting Zato binaries will be kept in the same directory that you cloned the repository to

% ./code/ -p python3

The installation may take 10-20 minutes, depending on your Internet connection and whether additional Homebrew packages need to be installed or not

After the installer finishes, confirm the Zato version installed

% ./code/bin/zato --version
Zato 3.1+rev.078992724-py3.8.5

Creating a quickstart environment

Prepare an empty directory

% mkdir -p ~/env-qs1

Create a quickstart cluster

% ./code/bin/zato quickstart create ~/env/qs-1/ sqlite localhost 6379 --servers 1

The command will quickly set up a fully working Zato environment in your ~/env/qs-1 directory - this is a complete cluster, with a server, load-balancer, scheduler and web-admin GUI, all ready to use.

A few screenshots



This is it. If you have not done it before, you are ready to follow the main tutorial using your Mac now!