3 releases

0.1.3 Jul 30, 2024
0.1.1 Apr 16, 2024
0.1.0 Apr 12, 2024

#346 in Asynchronous

Download history 124/week @ 2024-07-27 69/week @ 2024-08-03 203/week @ 2024-08-10 93/week @ 2024-08-17 1/week @ 2024-08-24 94/week @ 2024-08-31 2/week @ 2024-09-07 15/week @ 2024-09-14 140/week @ 2024-09-21 70/week @ 2024-09-28 208/week @ 2024-10-05 99/week @ 2024-10-12 113/week @ 2024-10-19 404/week @ 2024-10-26 451/week @ 2024-11-02 207/week @ 2024-11-09

1,189 downloads per month

MIT license

63KB
1.5K SLoC

pierport

Reference implementation for the pierport protocol UIP

This repository contains reference implementation of the Pierport Protocol UIP, and acts as an intermediate proxy for verifying and cleaning up a pier before it gets imported.

The default configuration is a bit aggressive, most notably, cram is being used to verify integrity of the pier, before and after performing cleanup tasks.

Docker usage

Building

You may build pierport inside a docker container. In which case, just do the following:

docker build . -t pierport

Running

You may then run it as follows:

docker run -p 4242 --name pierport -it pierport

To configure pierport, you may choose to either set specific PRT_ environment variables (eg.: -e PRT_PU_VERIFY_CRAM=false), or bind mount a config toml file to the container using -v path/to/config.toml:/pierport_cfg.toml.

To see available configuration environment variables, see env_cfg.sh file.

Running tests

Once you have a built the image, tagged as pierport, you may also run the tests:

sh scripts/test.sh

Dependencies

~32–49MB
~1M SLoC