Installation
This guide provides three ways to install Gateway:
1. Binary Installation
Choose your operating system below for specific installation instructions for Linux:
# Download the latest binary for Linuxwget https://github.com/centralmind/gateway/releases/latest/download/gateway-linux-amd64.tar.gz
# Extract the archivetar -xzf gateway-linux-amd64.tar.gzmv gateway-linux-amd64 gateway
# Make the binary executablechmod +x gateway
Windows (Intel)
# Download the latest binary for WindowsInvoke-WebRequest -Uri https://github.com/centralmind/gateway/releases/latest/download/gateway-windows-amd64.zip -OutFile gateway-windows.zip
# Extract the archiveExpand-Archive -Path gateway-windows.zip -DestinationPath .
# RenameRename-Item -Path "gateway-windows-amd64.exe" -NewName "gateway.exe"
macOS (Intel)
# Download the latest binary for macOS (Intel)curl -LO https://github.com/centralmind/gateway/releases/latest/download/gateway-darwin-amd64.tar.gz
# Extract the archivetar -xzf gateway-darwin-amd64.tar.gzmv gateway-darwin-amd64 gateway
# Make the binary executablechmod +x gateway
macOS (Apple Silicon)
# Download the latest binary for macOS (Apple Silicon)curl -LO https://github.com/centralmind/gateway/releases/latest/download/gateway-darwin-arm64.tar.gz
# Extract the archivetar -xzf gateway-darwin-arm64.tar.gzmv gateway-darwin-arm64 gateway
# Make the binary executablechmod +x gateway
2. Docker Installation
Option A: Use the pre-built Docker image
# Pull the latest imagedocker pull ghcr.io/centralmind/gateway:latest
# Run the containerdocker run -p 8080:8080 ghcr.io/centralmind/gateway:latest
Option B: Build your own Docker image
# Clone the repositorygit clone https://github.com/centralmind/gateway.gitcd gateway
# Build the Docker imagedocker build -t gateway .
# Run your containerdocker run -p 8080:8080 gateway
3. Manual Build from Source
To compile the application yourself:
# Clone the repositorygit clone https://github.com/centralmind/gateway.gitcd gateway
# Install dependencies and buildgo mod downloadgo build -o gateway
# Make the binary executablechmod +x gateway
# Run the application./gateway --help