generated from odpi/egeria-template-newrepo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Containerfile
38 lines (30 loc) · 1.49 KB
/
Containerfile
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
ARG EGERIA_BASE_IMAGE=quay.io/odpi/egeria
ARG EGERIA_VERSION=4.2-SNAPSHOT
# FROM quay.io/ibmgaragecloud/gradle:jdk11 as build
#
# ARG GRADLE_OPTS
#
# Copy files
# COPY gradle gradle
# COPY settings.gradle .
# COPY gradlew .
# COPY build.gradle .
# COPY src src
# COPY gradle.properties .
#
# # Build application and test it
# RUN ./gradlew assemble --no-daemon && \
# ./gradlew testClasses --no-daemon
FROM ${EGERIA_BASE_IMAGE}:${EGERIA_VERSION}
ARG CONNECTOR_NAME="egeria-connector-integration-lineage-sample"
ARG CONNECTOR_VERSION="4.2-SNAPSHOT"
ARG CONNECTOR_DESCRIPTION="Egeria with the sample integration lineage event driven connector"
ARG CONNECTOR_DOCUMENTATION="https://github.com/odpi/egeria-connector-integration-lineage-event-driven-sample"
# 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 = "${CONNECTOR_DESCRIPTION}"
LABEL org.opencontainers.image.documentation = "${CONNECTOR_DOCUMENTATION}"
ENV CONNECTOR_VERSION ${CONNECTOR_VERSION}
# This assumes we only have one uber jar (ensure old versions cleaned out beforehand). Avoids having to pass connector version
# COPY --from=build /home/gradle/build/libs/${CONNECTOR_NAME}-${CONNECTOR_VERSION}.jar /deployments/server/lib/
COPY build/libs/${CONNECTOR_NAME}-${CONNECTOR_VERSION}.jar /deployments/server/lib/