Skip to content

Commit

Permalink
Merge pull request #109 from amosproj/cloud-fix
Browse files Browse the repository at this point in the history
Adjusted configuration of connectors for cloud deployment
  • Loading branch information
daku-de authored Jul 16, 2024
2 parents b29362a + 582d6d6 commit 77cbc9a
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/bank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
build-args: |
EDC_DSP_CALLBACK_ADDRESS=https://bank.amos.cloudness.dev:443/protocol
EDC_DATAPLANE_API_PUBLIC_BASEURL=https://bank.amos.cloudness.dev:443/public
EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=https://bank.amos.cloudness.dev:443/control/token
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/company.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
build-args: |
EDC_DSP_CALLBACK_ADDRESS=https://company.amos.cloudness.dev:443/protocol
EDC_DATAPLANE_API_PUBLIC_BASEURL=https://company.amos.cloudness.dev:443/public
EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=https://company.amos.cloudness.dev:443/control/token
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tax_advisor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
build-args: |
EDC_DSP_CALLBACK_ADDRESS=https://taxadvisor.amos.cloudness.dev:443/protocol
EDC_DATAPLANE_API_PUBLIC_BASEURL=https://taxadvisor.amos.cloudness.dev:443/public
EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=https://taxadvisor.amos.cloudness.dev:443/control/token
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down
7 changes: 7 additions & 0 deletions src/edc-connector/bank_connector.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,12 @@ RUN gradle connector:build

ENV EDC_FS_CONFIG=resources/configuration/bank-configuration.properties

ARG EDC_DSP_CALLBACK_ADDRESS=http://bank:19194/protocol
ARG EDC_DATAPLANE_API_PUBLIC_BASEURL=http://bank:19291/public
ARG EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=http://bank:19192/control/token
ENV EDC_DSP_CALLBACK_ADDRESS=${EDC_DSP_CALLBACK_ADDRESS}
ENV EDC_DATAPLANE_API_PUBLIC_BASEURL=${EDC_DATAPLANE_API_PUBLIC_BASEURL}
ENV EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=${EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT}

CMD ["java", "-jar", "connector/build/libs/connector.jar"]

7 changes: 7 additions & 0 deletions src/edc-connector/company_connector.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,12 @@ RUN gradle connector:build

ENV EDC_FS_CONFIG=resources/configuration/company-configuration.properties

ARG EDC_DSP_CALLBACK_ADDRESS=http://company:19194/protocol
ARG EDC_DATAPLANE_API_PUBLIC_BASEURL=http://company:19291/public
ARG EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=http://company:19192/control/token
ENV EDC_DSP_CALLBACK_ADDRESS=${EDC_DSP_CALLBACK_ADDRESS}
ENV EDC_DATAPLANE_API_PUBLIC_BASEURL=${EDC_DATAPLANE_API_PUBLIC_BASEURL}
ENV EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=${EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT}

CMD ["java", "-jar", "connector/build/libs/connector.jar"]

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ edc.participant.id=bank

edc.api.auth.key=bank-pass

edc.dsp.callback.address=http://bank:19194/protocol
edc.dataplane.api.public.baseurl=http://bank:19291/public
edc.dataplane.token.validation.endpoint=http://bank:19192/control/token

edc.keystore=resources/certs/cert.pfx
edc.keystore.password=123456

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ edc.participant.id=company

edc.api.auth.key=company-pass

edc.dsp.callback.address=http://company:19194/protocol
edc.dataplane.api.public.baseurl=http://company:19291/public
edc.dataplane.token.validation.endpoint=http://company:19192/control/token

edc.keystore=resources/certs/cert.pfx
edc.keystore.password=123456

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ edc.participant.id=taxadvisor

edc.api.auth.key=taxadvisor-pass

edc.dsp.callback.address=http://taxadvisor:19194/protocol
edc.dataplane.api.public.baseurl=http://taxadvisor:19291/public
edc.dataplane.token.validation.endpoint=http://taxadvisor:19192/control/token

edc.keystore=resources/certs/cert.pfx
edc.keystore.password=123456

Expand Down
7 changes: 7 additions & 0 deletions src/edc-connector/tax_advisor_connector.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,12 @@ RUN gradle connector:build

ENV EDC_FS_CONFIG=resources/configuration/tax_advisor-configuration.properties

ARG EDC_DSP_CALLBACK_ADDRESS=http://taxadvisor:19194/protocol
ARG EDC_DATAPLANE_API_PUBLIC_BASEURL=http://taxadvisor:19291/public
ARG EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=http://taxadvisor:19192/control/token
ENV EDC_DSP_CALLBACK_ADDRESS=${EDC_DSP_CALLBACK_ADDRESS}
ENV EDC_DATAPLANE_API_PUBLIC_BASEURL=${EDC_DATAPLANE_API_PUBLIC_BASEURL}
ENV EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT=${EDC_DATAPLANE_TOKEN_VALIDATION_ENDPOINT}

CMD ["java", "-jar", "connector/build/libs/connector.jar"]

0 comments on commit 77cbc9a

Please sign in to comment.