Skip to content

Installation

Yaroslav Pogrebnyak edited this page Apr 16, 2019 · 10 revisions

Linux Binary

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
cd gobetween*

Configure

vim config/gobetween.toml

Run

sudo gobetween -c config/gobetween.toml

Linux from sources

Install

git clone [email protected]: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