-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (23 loc) · 1.04 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
ARG BASE_IMAGE
FROM $BASE_IMAGE as base
LABEL maintainer="[email protected]" \
name="webMethods Bookstore API" \
summary="BookStore CRUD API built with webMEthods Microservice Runtime"
ENV JDBC_HOST=""
ENV JDBC_PORT=""
ENV JDBC_DBNAME=""
ENV JDBC_USERNAME=""
ENV JDBC_USERPASSWORD=""
ENV JDBC_PROPS=""
# Optional: ADD license key (good option for a closed secure environment)
COPY --chown=${SAG_USERID}:${SAG_GROUPID} licensing/msr-licenseKey.xml $SAG_HOME/IntegrationServer/config/licenseKey.xml
# copy jdbc jar in jdbc adapter
COPY --chown=${SAG_USERID}:${SAG_GROUPID} libs/postgresql.jar $SAG_HOME/IntegrationServer/packages/WmJDBCAdapter/code/jars/
# copy the package specific settings
COPY --chown=${SAG_USERID}:${SAG_GROUPID} application.properties $SAG_HOME/IntegrationServer/
# copy package(s)
COPY --chown=${SAG_USERID}:${SAG_GROUPID} assets/IS/Packages/BookstoreAPI/ $PACKAGES_DIR/BookstoreAPI/
# run Jcode to build the java code
RUN true \
&& $SAG_HOME/IntegrationServer/bin/jcode.sh make BookstoreAPI \
&& true