-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # src/main/java/org/prebid/server/handler/info/BiddersHandler.java # src/main/java/org/prebid/server/privacy/gdpr/vendorlist/VendorListService.java # src/main/java/org/prebid/server/privacy/gdpr/vendorlist/VendorListServiceV2.java # src/main/java/org/prebid/server/spring/config/PrivacyServiceConfiguration.java # src/main/java/org/prebid/server/spring/config/SettingsConfiguration.java # src/main/java/org/prebid/server/spring/config/VertxConfiguration.java # src/main/resources/application.yaml # src/test/java/org/prebid/server/privacy/gdpr/vendorlist/VendorListServiceTest.java
- Loading branch information
Showing
2,076 changed files
with
108,275 additions
and
24,983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# From https://github.com/microsoft/vscode-dev-containers/blob/master/containers/go/.devcontainer/Dockerfile | ||
ARG VARIANT="17-jdk-bookworm" | ||
FROM mcr.microsoft.com/vscode/devcontainers/java:${VARIANT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// For format details, see https://aka.ms/vscode-remote/devcontainer.json | ||
{ | ||
"name": "Java", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
// Update the VARIANT arg to pick a version of Java | ||
"VARIANT": "17-jdk-bookworm", | ||
} | ||
}, | ||
"containerEnv": { | ||
"PBS_GDPR_DEFAULT_VALUE": "0" | ||
}, | ||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "/usr/bin/bash" | ||
} | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "bash", | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-azuretools.vscode-docker", | ||
"redhat.vscode-xml", | ||
"redhat.vscode-yaml", | ||
"eamodio.gitlens", | ||
"vscjava.vscode-java-pack" | ||
] | ||
} | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [8000,8001,6060], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "mkdir ~/.ssh; ssh-keyscan github.com > ~/.ssh/known_hosts", | ||
|
||
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Publish Docker image for new tag/release | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Publish release] | ||
types: | ||
- completed | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build: | ||
name: Publish Docker image for new tag/release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
strategy: | ||
matrix: | ||
java: [ 17 ] | ||
dockerfile-path: [Dockerfile, extra/Dockerfile] | ||
include: | ||
- dockerfile-path: Dockerfile | ||
build-cmd: mvn clean package -Dcheckstyle.skip -Dmaven.test.skip=true | ||
package-name: ghcr.io/${{ github.repository }} | ||
- dockerfile-path: extra/Dockerfile | ||
build-cmd: mvn clean package --file extra/pom.xml -Dcheckstyle.skip -Dmaven.test.skip=true | ||
package-name: ghcr.io/${{ github.repository }}-bundle | ||
steps: | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
java-version: ${{ matrix.java }} | ||
- name: Build .jar via Maven | ||
run: ${{ matrix.build-cmd }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Extract metadata (tags, labels) for Docker Image | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ matrix.package-name }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ${{ matrix.dockerfile-path }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Module functional tests | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- '.github/**' | ||
branches: | ||
- master | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
java: [ 17 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Build with Maven | ||
run: mvn package -DskipUnitTests=true --file extra/pom.xml | ||
|
||
- name: Run module tests | ||
run: mvn -B verify -DskipUnitTests=true -DskipFunctionalTests=true -Dtests.max-container-count=5 -DdockerfileName=Dockerfile-modules --file extra/pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish release .jar | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Publish release] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
name: Publish release .jar | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 17 ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Build base .jar via Maven | ||
run: mvn clean package -Dcheckstyle.skip -Dmaven.test.skip=true | ||
- name: Upload and attach base .jar to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/prebid-server.jar | ||
asset_name: prebid-server-${{ github.ref_name }}.jar | ||
tag: ${{ github.ref }} | ||
|
||
- name: Build bundled .jar via Maven | ||
run: mvn clean package --file extra/pom.xml -Dcheckstyle.skip -Dmaven.test.skip=true | ||
- name: Upload and attach bundled .jar to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: extra/bundle/target/prebid-server-bundle.jar | ||
asset_name: prebid-server-bundle-${{ github.ref_name }}.jar | ||
overwrite: true | ||
tag: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ target/ | |
.DS_Store | ||
|
||
.allure/ | ||
src/main/proto/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM amazoncorretto:17 | ||
|
||
WORKDIR /app/prebid-server | ||
|
||
VOLUME /app/prebid-server/conf | ||
VOLUME /app/prebid-server/data | ||
|
||
COPY src/main/docker/run.sh ./ | ||
COPY src/main/docker/application.yaml ./ | ||
COPY target/prebid-server-bundle.jar ./prebid-server.jar | ||
|
||
EXPOSE 8080 | ||
EXPOSE 8060 | ||
|
||
ENTRYPOINT [ "/app/prebid-server/run.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.