-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
34 lines (23 loc) · 1.46 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
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Egeria project
# Thes are optional tags used to add additional metadata into the docker image
# These may be supplied by the pipeline in future - until then they will default
ARG version=latest
ARG EGERIA_BASE_IMAGE=docker.io/odpi/egeria
# DEFER setting this for now, using the ${version}:
# ARG EGERIA_IMAGE_DEFAULT_TAG=latest
# This Dockerfile should be run from the parent directory of the egeria-connector-sas-viya directory
# ie
# docker -f ./Dockerfile
FROM ${EGERIA_BASE_IMAGE}:${version}
ENV version ${version}
# Labels from https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys (with additions prefixed ext)
# We should inherit all the base labels from the egeria image and only overwrite what is necessary.
LABEL org.opencontainers.image.description = "Egeria with SAS Viya connector" \
org.opencontainers.image.documentation = "https://github.com/odpi/egeria-connector-sas-viya"
WORKDIR .
COPY build/libs/egeria-connector-viya-4-${version}*.jar /deployments/server/lib
# Mount security/trustedcerts.jks at runtime and set connector to automatically restart
ENV JAVA_OPTS_APPEND -XX:MaxMetaspaceSize=1g -Djavax.net.ssl.trustStore=/security/trustedcerts.jks -Dlogging.level.root=INFO -Dsas.egeria.repositoryconnector.ssl.trustAll=false -Dstartup.server.list=\${EGERIA_SERVER_NAME}
# Uncomment to enable Java remote debugging
# ENV JAVA_DEBUG 1