-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (44 loc) · 1.42 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
43
44
45
46
47
48
49
50
51
52
######################
# Build dependencies #
######################
FROM maven:3.9.8-eclipse-temurin-21
WORKDIR /app
COPY ./pom.xml ./pom.xml
COPY ./src ./src
######################
# Configure env vars #
######################
ENV UID2_E2E_ENV "github-test-pipeline"
ENV UID2_E2E_SITE_ID ""
ENV UID2_E2E_API_KEY ""
ENV UID2_E2E_API_SECRET ""
ENV UID2_E2E_API_KEY_OLD ""
ENV UID2_E2E_API_SECRET_OLD ""
ENV UID2_E2E_API_KEY_SHARING_RECIPIENT ""
ENV UID2_E2E_API_SECRET_SHARING_RECIPIENT ""
ENV UID2_E2E_API_KEY_NON_SHARING_RECIPIENT ""
ENV UID2_E2E_API_SECRET_NON_SHARING_RECIPIENT ""
ENV UID2_E2E_SUBSCRIPTION_ID ""
ENV UID2_E2E_SERVER_PUBLIC_KEY ""
ENV UID2_E2E_ORIGIN ""
ENV UID2_E2E_INVALID_ORIGIN ""
ENV UID2_E2E_IDENTITY_SCOPE ""
ENV UID2_E2E_PHONE_SUPPORT ""
ENV UID2_E2E_PIPELINE_OPERATOR_URL ""
ENV UID2_E2E_PIPELINE_OPERATOR_TYPE ""
ENV UID2_E2E_PIPELINE_OPERATOR_CLOUD_PROVIDER ""
ENV UID2_E2E_CORE_API_TOKEN ""
ENV UID2_E2E_OPTOUT_TO_CALL_CORE_API_TOKEN ""
ENV UID2_E2E_CORE_URL ""
ENV UID2_E2E_OPTOUT_URL ""
CMD \
if [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" != "PUBLIC" ] && [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" != "PRIVATE" ] ; \
then \
echo "ERROR: Incorrect operator type: $UID2_E2E_PIPELINE_OPERATOR_TYPE. Exiting." ; \
exit 1 ; \
elif [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" = "PUBLIC" ] ; \
then \
mvn test -Dtest="E2EPublicOperatorTestSuite" ; \
else \
mvn test -Dtest="E2EPrivateOperatorTestSuite" ; \
fi