forked from eclipse-edc/Connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (35 loc) · 1.29 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Copyright (c) 2021 Daimler TSS GmbH
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
#
# Contributors:
# Daimler TSS GmbH - Initial API and Implementation
# Fraunhofer Institute for Software and Systems Engineering - added environment variables
#
#
FROM gradle:7.4.1-jdk17 AS build
COPY --chown=gradle:gradle . /home/gradle/project/
WORKDIR /home/gradle/project/
RUN gradle :launchers:ids-connector:build --no-daemon
FROM openjdk:17-slim
WORKDIR /app
COPY --from=build /home/gradle/project/launchers/ids-connector/build/libs/dataspace-connector.jar /app
ENV EDC_FS_CONFIG=$EDC_FS_CONFIG
ENV EDC_VAULT=$EDC_VAULT
ENV EDC_KEYSTORE=$EDC_KEYSTORE
ENV EDC_KEYSTORE_PASSWORD=$EDC_KEYSTORE_PASSWORD
EXPOSE 8181
EXPOSE 8282
ENTRYPOINT java \
-Djava.security.edg=file:/dev/.urandom \
-Dedc.ids.id="urn:connector:edc-connector-24" \
-Dedc.ids.title="Eclipse Dataspace Connector" \
-Dedc.ids.description="Eclipse Dataspace Connector with IDS extensions" \
-Dedc.ids.maintainer="https://example.maintainer.com" \
-Dedc.ids.curator="https://example.maintainer.com" \
-jar dataspace-connector.jar