Browse Source

add dockerfile

arkha 1 năm trước cách đây
mục cha
commit
91811a82c3
2 tập tin đã thay đổi với 48 bổ sung0 xóa
  1. 29 0
      MWUI/Dockerfile
  2. 19 0
      MWUI/src/config/server.xml

+ 29 - 0
MWUI/Dockerfile

@@ -0,0 +1,29 @@
+FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi
+
+ARG VERSION=1.0
+ARG REVISION=SNAPSHOT
+
+LABEL \
+    org.opencontainers.image.authors="Arkhadius" \
+    org.opencontainers.image.vendor="Hanoman" \
+    org.opencontainers.image.url="local" \
+    org.opencontainers.image.source="https://code.senomas.com/arkha/btnmw-was" \
+    org.opencontainers.image.version="$VERSION" \
+    org.opencontainers.image.revision="$REVISION" \
+    vendor="Hanoman" \
+    name="mwui" \
+    version="$VERSION-$REVISION" \
+    summary="The MWUI microservice from the Containerizing microservices MWUI" \
+    description="This image contains the MWUI microservice running with the Open Liberty runtime."
+
+COPY --chown=1001:0 \
+    target/liberty/wlp/usr/servers/defaultServer/server.xml \
+    /config/
+
+RUN features.sh
+
+COPY --chown=1001:0 \
+    target/MWUI-1.0.war \
+    /config/apps
+
+RUN configure.sh

+ 19 - 0
MWUI/src/config/server.xml

@@ -0,0 +1,19 @@
+<server description="Liberty for MWUI">
+
+    <!-- Enable features -->
+    <featureManager>
+        <feature>jsp-2.3</feature>
+    </featureManager>
+
+    <variable name="http.port" defaultValue="9080" />
+    <variable name="https.port" defaultValue="9443" />
+
+    <!-- To access this server from a remote client add a host attribute to the following element,
+    e.g. host="*" -->
+    <httpEndpoint id="defaultHttpEndpoint"
+        httpPort="${http.port}"
+        httpsPort="${https.port}" host="*" />
+
+    <webApplication location="MWUI-1.0.war" contextRoot="/">
+    </webApplication>
+</server>