-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: cleanup * feat: addition of some valueobjects and cleanup * feat: additional valueobjects * feat: use java instead of JSON template for pipeline creation * feat: extract event stream properties * feat: event stream properties fetched + managers cleaned up + busy waiting fixed * feat: little improvements * feat: refactor Request * fix: broken ldes client status * WIP * feat: shacl validation * WIP * feat: impl finished * chore: big cleanup * feat: pipelinename is distinct for each run * ci: add workflows * chore: add CODEOWNERS * chore: update README part 1 * ci: release process updated * feat: better naming for a param * fix: broken gh actions * fix: broken cicd pipeline
- Loading branch information
Showing
74 changed files
with
2,014 additions
and
1,490 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,13 @@ | ||
# | ||
# RUN THE APPLICATION | ||
# | ||
FROM amazoncorretto:21-alpine-jdk | ||
|
||
WORKDIR /validator | ||
|
||
COPY ./target/testbed-shacl-validator.jar testbed-shacl-validator.jar | ||
|
||
RUN adduser -D -u 2000 validator | ||
USER validator | ||
|
||
CMD ["java", "-jar", "testbed-shacl-validator.jar"] |
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,67 @@ | ||
name: 1.a Build & Test Project | ||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'zulu' | ||
# TODO: setup sonar | ||
# - name: Cache SonarCloud packages | ||
# uses: actions/cache@v1 | ||
# with: | ||
# path: ~/.sonar/cache | ||
# key: ${{ runner.os }}-sonar | ||
# restore-keys: ${{ runner.os }}-sonar | ||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Build and analyze | ||
if: ${{ github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: mvn -B verify | ||
- name: Build (Forks) # https://portal.productboard.com/sonarsource/1-sonarcloud/c/50-sonarcloud-analyzes-external-pull-request | ||
if: ${{ github.actor == 'dependabot[bot]' || github.event.pull_request.head.repo.fork }} | ||
run: mvn -B verify | ||
- name: Upload JARs | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: artifacts | ||
path: | | ||
**/testbed-shacl-validator.jar | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Download JARs | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: artifacts | ||
path: .github | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: .github | ||
push: false |
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,110 @@ | ||
name: 2. Build & Deploy Project | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: testbed-shacl-validator | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 21 | ||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
# TODO: setup Maven | ||
# # Maven | ||
# - name: Set up Maven Central Repository | ||
# uses: actions/setup-java@v4 | ||
# with: | ||
# java-version: '21' | ||
# distribution: 'zulu' | ||
# server-id: ossrh | ||
# server-username: MAVEN_USERNAME | ||
# server-password: MAVEN_PASSWORD | ||
# gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} | ||
# gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
# TODO: setup Sonar | ||
- name: Analyse & publish package | ||
run: | | ||
mvn -B verify deploy | ||
export VERSION=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout) | ||
echo "version=$VERSION" >> $GITHUB_ENV | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload JARs | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: artifacts | ||
path: | | ||
**/testbed-shacl-validator.jar | ||
create-image: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Download JARs | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: artifacts | ||
path: .github | ||
- name: Define docker variables | ||
run: | | ||
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then | ||
echo "IMAGE_TAG=${{ env.version }}" >> $GITHUB_ENV | ||
echo "IMAGES=ldes/${{ env.IMAGE_NAME }}" >> $GITHUB_ENV | ||
if [[ "${{ env.version }}" != *"SNAPSHOT"* ]]; then | ||
echo "LATEST=latest" >> $GITHUB_ENV | ||
fi | ||
else | ||
echo "IMAGE_TAG=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV | ||
echo "IMAGES=${{ env.REGISTRY }}/Informatievlaanderen/${{ env.IMAGE_NAME }}" >> $GITHUB_ENV | ||
echo "LATEST=latest" >> $GITHUB_ENV | ||
fi | ||
# TODO: push to docker | ||
- name: Log in to the GitHub Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: Informatievlaanderen | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ env.IMAGES }} | ||
tags: | | ||
type=raw,value=${{env.IMAGE_TAG}} | ||
type=raw,value=${{env.LATEST}} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: .github | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
platforms: linux/amd64,linux/arm64 |
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,2 @@ | ||
* @Yalz @rorlic @jobulcke | ||
|
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
24 changes: 0 additions & 24 deletions
24
src/main/java/be/vlaanderen/informatievlaanderen/ldes/config/ShaclValidationConfig.java
This file was deleted.
Oops, something went wrong.
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.