The Testnet Faucet is a web tool that allows users to obtain POKT for free on our test platform. Users simply need to provide their address to instantly receive uPOKT..
- Docker: Ensure Docker is installed and running on your system.
- Environment Variables: An
.env
file with the following required variables:mnemonic
rpcEndpoint
txAmount
txFeeAmount
txGasLimit
Note: Make sure each variable is properly set with appropriate values in the .env
file.
-
Update the package database:
sudo apt-get update
-
Install the necessary packages:
sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release
-
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-
Set up the stable repository:
echo \ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
-
Update the package database again:
sudo apt-get update
-
Install Docker Engine:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
-
Verify that Docker Engine is installed correctly:
sudo docker run hello-world
-
Download the current stable release of Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*?(?=")')/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-
Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
-
Verify the installation:
docker-compose --version
-
Create the
docker
group (if it doesn't already exist):sudo groupadd docker
-
Add your user to the
docker
group:sudo usermod -aG docker $USER
-
Log out and log back in so that your group membership is re-evaluated.
-
Verify that you can run
docker
commands withoutsudo
:docker run hello-world
Now, Docker and Docker Compose should be installed and ready to use on your system.
git clone https://github.com/pokt-network/pocket-poktroll-faucet.git
cd pocket-poktroll-faucet
Make a copy of .env.example
named .env
.
cp .env.example .env
Open .env
with your editor of choice to modify the file if necessary.
docker-compose up -d --build
docker-compose logs -f --tail 10
docker-compose down
docker-compose restart
Pull the latest updates from GitHub, and rebuild the container.
git pull
docker-compose up -d --build --force-recreate