-
Notifications
You must be signed in to change notification settings - Fork 5.4k
/
Dockerfile
47 lines (38 loc) · 1.36 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
35
36
37
38
39
40
41
42
43
44
45
46
47
# LICENSE UPL 1.0
#
# Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This Dockerfile extends the Oracle WebLogic install image and applies a patch.
# REQUIRED FILES TO BUILD THIS IMAGE
# ----------------------------------
# (1) p27117282_122130_Generic.zip
# Download the patch from http://support.oracle.com
#
# HOW TO BUILD THIS IMAGE
# -----------------------
# Put all downloaded files in the same directory as this Dockerfile
# Run:
# $ sudo docker build -t oracle/weblogic:12213-p27117282 .
#
# Pull base image
# ---------------
FROM oracle/weblogic:12.2.1.3-developer
# Maintainer
# ----------
MAINTAINER Monica Riccelli <monica.riccelli@oracle.com>
# Environment variables required for this build (do NOT change)
# -------------------------------------------------------------
ENV PATCH_PKG="p27117282_122130_Generic.zip"
# Copy supplemental package and scripts
# --------------------------------
COPY --chown=oracle:oracle $PATCH_PKG /u01/
# Installation of Supplemental Quick Installer
# --------------------------------------------
USER oracle
RUN cd /u01 && $JAVA_HOME/bin/jar xf /u01/$PATCH_PKG && cd - && \
cd /u01/27117282 && $ORACLE_HOME/OPatch/opatch apply -silent && \
rm /u01/$PATCH_PKG
WORKDIR ${ORACLE_HOME}
CMD ["/u01/oracle/createAndStartEmptyDomain.sh"]