The UID 2 Project is subject to Tech Lab IPR’s Policy and is managed by the IAB Tech Lab Addressability Working Group and Privacy & Rearc Commit Group. Please review the governance rules here
To setup dependencies before building, run the follow script
./setup_dependencies.shTo run unit tests:
mvn clean test
To package application:
mvn package
To run application:
- use
conf/local-config.jsonto run standalone operator service for local debugging, which loads salts, keys and optout from mock storage provider, and doesn't communicate with uid2-core and uid2-optout.
mvn clean compile exec:java -Dvertx-config-path=conf/local-config.json
- use
conf/integ-config.jsonto run optout operator that integrates with uid2-core (default runs onlocalhost:8088) and uid2-optout (default runs onlocalhost:8081)
mvn clean compile exec:java -Dvertx-config-path=conf/integ-config.json
- Change
COPY ./conf/default-config.json /app/conf/in line 13 ofDockerfiletoCOPY ./conf/docker-config.json /app/conf/local-config.json - Run
mvn package - Go to
pom.xmland find the version wrapped under<version>tag - Run
docker build -t uid-operator --build-arg JAR_VERSION={version you find in step 3} . - Run
docker run -it -p 8080:8080 uid-operator:latest - Go to postman and test on endpoint
http://localhost:8080/v1/token/[email protected]