-
Notifications
You must be signed in to change notification settings - Fork 5.4k
/
Dockerfile
68 lines (58 loc) · 2.49 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
#
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for Oracle Business Intelligence 12.2.1.3.0
#
# REQUIRED FILES TO BUILD THIS IMAGE
# ----------------------------------
# (1) fmw_12.2.1.3.0_bi_linux64_Disk1_1of2.zip
# (2) fmw_12.2.1.3.0_bi_linux64_Disk1_2of2.zip
# Download the two installer files from http://www.oracle.com/technetwork/middleware/bi/downloads/default-3852322.html
#
# HOW TO BUILD THIS IMAGE
# -----------------------
# Put all downloaded files in the same directory as this Dockerfile
# Run:
# $ docker build -t oracle/biplatform:12.2.1.3.0 .
#
# Pull base image
# ---------------
FROM oracle/fmw-infrastructure:12.2.1.3
# Maintainer
# ----------
MAINTAINER Steve Phillips <steve.phillips@oracle.com>
#Common ENV
#-----------
ENV ORACLE_HOME=/u01/oracle
# Environment variables required for this build (do NOT change)
# (DOMAIN_NAME/HOME are reset here, to avoid FMW Infra environment leaking through)
# -------------------------------------------------------------
ENV BI_DISTRO_ZIP1=fmw_12.2.1.3.0_bi_linux64_Disk1_1of2.zip \
BI_DISTRO_ZIP2=fmw_12.2.1.3.0_bi_linux64_Disk1_2of2.zip \
BI_INSTALLER1=bi_platform-12.2.1.3.0_linux64.bin \
BI_INSTALLER2=bi_platform-12.2.1.3.0_linux64-2.zip \
DOMAIN_NAME="${BI_DOMAIN_NAME:-bi}" \
DOMAINS_DIR=$ORACLE_HOME/user_projects/domains \
DOMAIN_HOME=$ORACLE_HOME/user_projects/domains/${BI_DOMAIN_NAME:-bi}
# Copy packages
# -------------
COPY $BI_DISTRO_ZIP1 $BI_DISTRO_ZIP2 install.file oraInst.loc /u01/
# Install
#-------------------------------------------------------------
USER root
# tools for installing and running BI
RUN yum -y install unzip hostname && rm -rf /var/cache/yum
USER oracle
RUN cd /u01 && unzip $BI_DISTRO_ZIP1 && unzip $BI_DISTRO_ZIP2 && cd - && \
/u01/$BI_INSTALLER1 -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME INSTALL_TYPE="BI Platform Distribution with Samples" && \
rm /u01/$BI_DISTRO_ZIP1 /u01/$BI_DISTRO_ZIP2 /u01/$BI_INSTALLER1 /u01/$BI_INSTALLER2 /u01/oraInst.loc /u01/install.file
USER oracle
WORKDIR $ORACLE_HOME
# Prepare for Config
#-------------------------------------------------------------
EXPOSE 9500-9999
COPY createAndStartDomain.sh wait_for_db.sh /u01/
CMD ["/u01/createAndStartDomain.sh"]