GEB Docs
Search…
Running in Docker
Running a surplus auction keeper in a Docker container
In order to participate in surplus auctions you need to bid with protocol tokens

1) Create a model file

Pick a protocol token/system coin price and paste the following code into surplus_model.sh:
1
#!/usr/bin/env bash
2
while true; do
3
echo "{\"price\": \"325.0\"}"
4
sleep 120
5
done
Copied!

Then:

chmod +x surplus_model.sh
For more information about bidding models, see this.

2) Create the keeper run file

Create a file called run_auction_keeper.sh and paste the following code in it:
1
#!/bin/bash
2
3
docker run -it \
4
-v <KEYSTORE_DIR>:/keystore \
5
-v <MODEL_DIR>:/models \
6
reflexer/auction-keeper:latest \
7
--type surplus \
8
--model /models/surplus_model.sh \
9
--rpc-uri <ETH_RPC_URL> \
10
--eth-from <KEEPER_ADDRESS> \
11
--eth-key key_file=/keystore/<KEYSTORE_FILE>
Copied!

Then, substitute the following variables:

KEYSTORE_DIR - the local directory where your keystore file is
MODEL_DIR - the local directory where your surplus_model.sh file is
KEYSTORE_FILE - your Ethereum UTC JSON keystore filename
For more information about this keystore format and how to generate them:
ETH_RPC_URL - the URL of your ethereum RPC connection
KEEPER_ADDRESS - the keeper's address. It should be in checksummed format (not lowercase)

Then:

chmod +x run_auction_keeper.sh

4) Start the keeper and enter your keystore file password

./run_auction_keeper.sh
1
$ ./run_auction_keeper.sh
2
latest: Pulling from reflexer/auction-keeper
3
Digest: sha256:7e55ec9b0a136fc903d9f7f2690538bcbde9029d957e0e6f84d0282790f9666a
4
Status: Downloaded newer image for reflexer/auction-keeper:latest
5
docker.io/reflexer/auction-keeper:latest
6
Password for /keystore/key.json:
Copied!
Last modified 7mo ago