mkdir -p ${GOPATH}/src/github.com/MohawkTSDB && cd ${GOPATH}/src/github.com/MohawkTSDB
git clone https://github.com/MohawkTSDB/mohawk.git
cd mohawk
make vendor
make clean
make
make test
make install
The server requires certification to serve https requests. Users can use self signed credentials files for testing.
To create a self signed credentials use this bash commands:
openssl ecparam -genkey -name secp384r1 -out server.key
openssl req -new -x509 -sha256 -key server.key -out server.pem -days 3650
If running from source, the Makefile has a utility for generating secrets:
make secret
Using TLS server requires certification files, default file names are server.key and server.pem .
mohawk --tls --gzip --port 8443
mohawk
mohawk --version
mohawk --help
mohawk --options help
sudo docker run --name mohawk -v $(readlink -f ./):/root/ssh:Z yaacov/mohawk:latest
# get the server IP
docker inspect mohawk | grep IPAddress\" | head -n1 | egrep -o '[0-9.]+'
sudo dnf copr enable yaacov/mohawk
sudo dnf install mohawk