Skip to content

Commit

Permalink
Merge pull request #1 from Informatievlaanderen/main
Browse files Browse the repository at this point in the history
Sync AWV repo met die van Informatie Vlaanderen
  • Loading branch information
maesenka authored Oct 7, 2024
2 parents 401f794 + 1d25428 commit 86525cc
Show file tree
Hide file tree
Showing 339 changed files with 2,213 additions and 1,504 deletions.
11 changes: 11 additions & 0 deletions .github/ldes-discoverer.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1

FROM amazoncorretto:21-alpine-jdk

RUN adduser -D -u 2000 ldes-discoverer
USER ldes-discoverer
WORKDIR /ldes-discoverer

COPY ./ldi-extensions/ldes-discoverer/target/ldes-discoverer.jar ./lib/

ENTRYPOINT ["java", "-jar", "./lib/ldes-discoverer.jar"]
40 changes: 40 additions & 0 deletions .github/ldio.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# syntax=docker/dockerfile:1

FROM amazoncorretto:21-alpine-jdk

RUN adduser -D -u 2000 ldio
USER ldio
WORKDIR /ldio

COPY ./ldi-orchestrator/ldio-application/target/ldio-application.jar ./

COPY ./ldi-orchestrator/ldio-connectors/ldio-http-in/target/ldio-http-in-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-http-in-poller/target/ldio-http-in-poller-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-ldes-client/target/ldio-ldes-client-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-ldes-client-connector/target/ldio-ldes-client-connector-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-kafka/target/ldio-kafka-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-amqp/target/ldio-amqp-jar-with-dependencies.jar ./lib/

COPY ./ldi-orchestrator/ldio-connectors/ldio-rdf-adapter/target/ldio-rdf-adapter-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-ngsiv2-to-ld-adapter/target/ldio-ngsiv2-to-ld-adapter-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-rml-adapter/target/ldio-rml-adapter-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-json-to-ld-adapter/target/ldio-json-to-ld-adapter-jar-with-dependencies.jar ./lib/

COPY ./ldi-orchestrator/ldio-connectors/ldio-sparql-construct/target/ldio-sparql-construct-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-version-materialiser/target/ldio-version-materialiser-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-version-object-creator/target/ldio-version-object-creator-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-version-object-creator/target/ldio-version-object-creator-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-geojson-to-wkt/target/ldio-geojson-to-wkt-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-http-enricher/target/ldio-http-enricher-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-change-detection-filter/target/ldio-change-detection-filter-jar-with-dependencies.jar ./lib/

COPY ./ldi-orchestrator/ldio-connectors/ldio-console-out/target/ldio-console-out-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-http-out/target/ldio-http-out-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-noop-out/target/ldio-noop-out-jar-with-dependencies.jar ./lib/
COPY ./ldi-orchestrator/ldio-connectors/ldio-repository-sink/target/ldio-repository-sink-jar-with-dependencies.jar ./lib/


RUN mkdir "state"
RUN chmod -R 777 ./state

CMD ["java", "-cp", "ldio-application.jar", "-Dloader.path=lib/", "org.springframework.boot.loader.launch.PropertiesLauncher"]
55 changes: 54 additions & 1 deletion .github/workflows/1.a-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build:
name: Build
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -39,3 +39,56 @@ jobs:
- 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@v4
with:
name: artifacts
path: |
**/*with-dependencies.jar
**/*application.jar
**/ldes-discoverer.jar
build-ldio-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@v4
with:
name: artifacts
path: .github
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .github
push: false
file: .github/ldio.Dockerfile

build-discoverer-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@v4
with:
name: artifacts
path: .github
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .github
push: false
file: .github/ldes-discoverer.Dockerfile
61 changes: 0 additions & 61 deletions .github/workflows/2.a-build-main.yml

This file was deleted.

83 changes: 0 additions & 83 deletions .github/workflows/2.b-build-ldes-discoverer-docker.yml

This file was deleted.

83 changes: 0 additions & 83 deletions .github/workflows/2.b-build-ldio-docker.yml

This file was deleted.

Loading

0 comments on commit 86525cc

Please sign in to comment.