Skip to content

Installation

Yaroslav Pogrebnyak edited this page May 6, 2019 · 10 revisions

Snap

Get it from the Snap Store

https://snapcraft.io/gobetween

Note: make sure you're on Ubuntu and/or have snap installed: https://docs.snapcraft.io/installing-snapd

Latest development version (edge)

sudo snap install gobetween --edge

Additional info

If installed via snap, gobetween starts as a service.

Config file for snap installation is located here: /var/snap/gobetween/common/gobetween.toml

Startup script is located here: /var/snap/gobetween/current/gobetween.sh

Useful commands

  • Check gobetween service: snap services gobetween
  • Show service logs: snap logs gobetween
  • Start service snap start gobetween
  • Stop service snap stop gobetween
  • Uninstall snap remove gobetween

Linux Binary

Create directory

mkdir gobetween
cd gobetween

Download latest version

for x86

curl -s https://api.github.com/repos/yyyar/gobetween/releases | grep browser_download_url | grep linux_386 | cut -d '"' -f 4 | head -n 1 | wget -i -

for amd64

curl -s https://api.github.com/repos/yyyar/gobetween/releases | grep browser_download_url | grep linux_amd64 | cut -d '"' -f 4 | head -n 1 | wget -i -

Unzip

tar -zxvf *.tar.gz

Configure

vim config/gobetween.toml

Run

sudo gobetween -c config/gobetween.toml

Linux from sources

Install

git clone git@github.com:yyyar/gobetween.git
make
sudo -E make install
vim /etc/gobetween.toml
gobetween -c /etc/gobetween.toml

Uninstall

sudo make uninstall

Docker

Pull image from public Docker Hub

docker pull yyyar/gobetween

Specify port mappings (80 docker host port to 80 container port ) and place gobetween.toml to /path/to/gobetween.toml

docker run -p 80:80 -v /path/to/conf:/etc/gobetween/conf/:rw yyyar/gobetween

Windows Binary

c:\path\to\gobetween -c c:\path\to\gobetween.toml