-
Notifications
You must be signed in to change notification settings - Fork 4
/
d.jboss.Dockerfile
55 lines (42 loc) · 2.19 KB
/
d.jboss.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
53
54
55
#
# This Dockerfile is divided in two stages, the first is a builder for the KJAR
# and the second is the executable image (KIE Server + KJAR).
# dependency:go-offline does not resolve transitive BOM (from drools-bom), therefore '--offline' does not work.
### BUILDER IMAGE ###
FROM docker.io/maven:3.8.1-jdk-11-slim as builder
ARG MVN="mvn --show-version --batch-mode"
### Choose to build the dependencies or let them resolve from Maven Central.
### rhpam-dependencies
# COPY rhpam-dependencies/pom.xml /build/rhpam-dependencies/
# RUN $MVN --file build/rhpam-dependencies/pom.xml install
### rhpam-event-listener
# COPY rhpam-event-listener/pom.xml /build/rhpam-event-listener/
# RUN $MVN --file build/rhpam-event-listener/pom.xml dependency:go-offline
# COPY rhpam-event-listener/src /build/rhpam-event-listener/src/
# RUN $MVN --file build/rhpam-event-listener/pom.xml install
### rhpam-kjar
COPY rhpam-kjar/pom.xml /build/rhpam-kjar/
RUN $MVN --file build/rhpam-kjar/pom.xml dependency:go-offline
COPY rhpam-kjar/src /build/rhpam-kjar/src/
RUN $MVN --file build/rhpam-kjar/pom.xml install
### EXECUTABLE IMAGE ###
FROM registry.redhat.io/rhpam-7/rhpam-kieserver-rhel8:7.11.1
ARG CREATED_AT=none
ARG GITHUB_SHA=none
LABEL org.opencontainers.image.created="$CREATED_AT"
LABEL org.opencontainers.image.revision="$GITHUB_SHA"
LABEL org.opencontainers.image.title="RHPAM Quickstart"
LABEL org.opencontainers.image.description="Red Hat Process Automation Quickstart Application with KIE Server in JBoss EAP."
LABEL org.opencontainers.image.url="https://github/juliaaano/rhpam-quickstart"
LABEL org.opencontainers.image.source="[email protected]:juliaaano/rhpam-quickstart"
LABEL org.opencontainers.image.documentation="https://github/juliaaano/rhpam-quickstart"
LABEL org.opencontainers.image.authors="juliaaano"
LABEL org.opencontainers.image.vendor="juliaaano"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.version="1.1.0"
COPY --from=builder /root/.m2/repository /home/jboss/.m2/repository/
USER root
RUN chown jboss -R /home/jboss/.m2/repository
USER jboss
ENV KIE_ADMIN_USER=adminUser KIE_ADMIN_PWD=password
ENV KIE_SERVER_CONTAINER_DEPLOYMENT=rhpam-quickstart=com.juliaaano:rhpam-kjar:1.0.0-SNAPSHOT