Installation
There are several approaches to install Frontier.
Binary (Cross-platform)
Download the appropriate version for your platform from releases page. Once downloaded, the binary can be run from anywhere.
You don’t need to install it into a global location. This works well for shared hosts and other systems where you don’t have a privileged account.
Ideally, you should install it somewhere in your PATH for easy use. /usr/local/bin
is the most probable location.
macOS
Frontier
is available via a Homebrew Tap, and as downloadable binary from the releases page:
$ brew install raystack/taps/frontier
To upgrade to the latest version:
$ brew upgrade frontier
Linux
Frontier
is available as downloadable binaries from the releases page. Download the .deb
or .rpm
from the releases page and install with sudo dpkg -i
and sudo rpm -i
respectively.
Windows
Frontier
is available via scoop, and as a downloadable binary from the releases page:
scoop bucket add frontier https://github.com/raystack/scoop-bucket.git
To upgrade to the latest version:
scoop update frontier
Docker
We provide ready to use Docker container images. To pull the latest image: Make sure you have Spicedb and postgres running on your local and run the following.
$ docker pull raystack/frontier
To pull a specific version:
$ docker pull raystack/frontier:v0.6.2-arm64
To run the docker image with minimum configurations:
$ docker run -p 8080:8080 \
-e FRONTIER_DB_DRIVER=postgres \
-e FRONTIER_DB_URL=postgres://frontier:@localhost:5432/frontier?sslmode=disable \
-e FRONTIER_SPICEDB_HOST=spicedb.localhost:50051 \
-e FRONTIER_SPICEDB_PRE_SHARED_KEY=randomkey
-v .config:.config
raystack/frontier server start
Building from source
Begin by cloning this repository then you have two ways in which you can build Frontier:
- As a native executable
- As a docker image
Run either of the following commands to clone and compile Frontier from source
$ git clone git@github.com:raystack/frontier.git # (Using SSH Protocol)
$ git clone https://github.com/raystack/frontier.git # (Using HTTPS Protocol)
As a native executable
To build frontier as a native executable, run make
inside the cloned repository.
$ make
This will create the frontier
binary in the root directory. Initialise server and client config file. Customise the config.yaml
file with your local configurations.
$ ./frontier config init
Run database migrations
$ ./frontier server migrate
Start Frontier server
$ ./frontier server start
As a Docker image
Building Frontier's Docker image is just a simple, just run docker build command and optionally name the image
$ docker build . -t frontier
Verifying the installation
To verify if Frontier is properly installed, run frontier --help
on your system. You should see help output. If you are executing it from the command line, make sure it is on your PATH or you may get an error about Frontier not being found.
$ ./frontier --help
What's next
- See the Configurations page on how to setup Frontier server and client
- See the CLI Reference for a complete list of commands and options.