-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
63 lines (56 loc) · 2.24 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
# LICENSE CDDL 1.0 + GPL 2.0
#
# Copyright (c) 2017 DATAlysis GmbH. All rights reserved.
#
# OBI-BVT DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for Oracle BI Baseline Validation Tool
#
# REQUIRED FILES TO BUILD THIS IMAGE
# ----------------------------------
# (1) OracleBI-BVT.zip
# Download Oracle BI Baseline Validation Tool
# http://www.oracle.com/technetwork/middleware/bi/downloads/bi-bvt-download-3587672.html
#
# HOW TO BUILD THIS IMAGE
# -----------------------
# Put all downloaded files in the same directory as this Dockerfile
# Run:
# $ docker build -t oracle/obi-bvt .
#
# Pull base image
# ---------------
FROM oraclelinux:7-slim
# Maintainer
# ----------
MAINTAINER Gianni Ceresa <[email protected]>
# Environment variables required for this build (do NOT change)
# --------------------------------------------------------------
ENV INSTALL_FILE_OBIBVT="OracleBI-BVT.zip" \
INSTALL_DIR=/opt/
# Copy binaries
# -------------
COPY $INSTALL_FILE_OBIBVT $INSTALL_DIR/
# Install pre-req packages + JDK
# Install packages for the UI tests using Firefox
# (newer versions of Firefox don't work)
# Fix a missing library because too old
# Unzip Orable BI BVT
# -----------------------------------------------------------------------
RUN yum -y update && \
yum -y install unzip which java-1.8.0-openjdk && \
yum-config-manager --enable ol7_optional_latest && \
yum -y install xorg-x11-server-Xvfb && \
yum -y install libpng12 libXtst gstreamer gstreamer-plugins-base && \
yum -y install firefox-38.7.0-1.0.1.el7_2 && \
ln -s /usr/lib64/libtiff.so.5 /usr/lib64/libtiff.so.3 && \
yum clean all && \
cd $INSTALL_DIR && \
unzip $INSTALL_FILE_OBIBVT -d BVT/ && \
rm $INSTALL_FILE_OBIBVT
# Work folder
#--------------
WORKDIR $INSTALL_DIR/BVT/
# Define default command: bash
#CMD xvfb-run ./bin/obibvt -config /opt/BVT/testconfig.xml -deployment PreUpgrade
CMD /bin/bash