Building the System¶
The source code for the RTB4FREE system is located here
To work with the source you will need Maven, Java 1.11, Make, and Yarn, and Mkdocs, and Minio Client. The goal of the makefile is to create the docker container necessary for deploying the bidder.
First step is to git pull the distribution.
The first step is to 'make application', or simply 'make' will create all the components necessary for the docker container.
This will compile the JAVA application into an all-in-one JAR file, it will then create the campaign manager react application, and then create the docker container.
The 'make minio' is executed after 'make application'. The purpose is to copy the initial data files the bidder uses to convert 2 character country names into 3 character names, zip code information, and CIDR blocks to block common bot addresses.
Note, the directory /tmp/s3 will contain the buckets and objects used by the bidder. If you want to change the location of the hosted volume, or to replace with Amazon S3, modify the makefile.
The 'make local' compiles just the JAVA application. Eg:
This just creates the classes, it does not build the JAR file.
The 'make react' command compiles the REACT based campaign manager into a deployable www directory.
This uses YARN to make the system.
The 'make docker' command creates the docker container that holds the react-based campaign manager and the JAVA based bidder. It does not compile these artifacts first.
This will create the linux image used by the applications, but does not compile them.
This command will back up your current POSTGRES database into a dump file.
By default it connects to localhost:54321, you will need to adjust this to point to the postgres container if localhost is not the destination.
It creates a file called 'database.backup' in the current working directory.
This command will restore the database.backup file to the postgres database. Note, By default it connects to localhost:54321, you will need to adjust this to point to the postgres container if localhost is not the destination.
This command deletes the class files.