See README.md.
Assuming you have a recent Rust toolchain, a C++ compiler, strip, and make installed:
git clone --recursive https://github.com/niklasf/fishnet.git
cd fishnet
cargo run --release -vv --
To update, do not forget git submodule update
before building again:
git pull
git submodule update
cargo run --release -vv --
For Arch Linux users, the following third-party packages are available on AUR:
- https://aur.archlinux.org/packages/fishnet-bin/
- https://aur.archlinux.org/packages/fishnet/
- https://aur.archlinux.org/packages/fishnet-git/
docker run -it --name fishnet -e KEY=abcdef niklasf/fishnet:2
To update, since we named the image fishnet
:
docker rm fishnet
docker pull niklasf/fishnet:2
docker run -it --name fishnet -e KEY=abcdef niklasf/fishnet:2
Create fishnet.yaml
as follows and edit fishnet-private-key
:
apiVersion: v1
kind: Namespace
metadata:
name: fishnet
---
apiVersion: v1
kind: Pod
metadata:
name: fishnet-pod
namespace: fishnet
spec:
containers:
- name: fishnet-pod
image: niklasf/fishnet:2
imagePullPolicy: Always
env:
- name: KEY
valueFrom:
secretKeyRef:
name: lichess
key: fishnet-private-key
restartPolicy: Always
---
apiVersion: v1
kind: Secret
metadata:
name: lichess
namespace: fishnet
data:
fishnet-private-key: <UPDATE here with your fishnet private key as BASE64 encoded string>
To view logs:
kubectl logs fishnet-pod -n=fishnet
Delete to update, since the image pull policy is set to Always
:
kubectl delete pod fishnet-pod -n=fishnet
kubectl apply -f fishnet.yaml