forked from oracle/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,142 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,32 +5,28 @@ | |
# tuxedo121300_64_Linux_01_x86.zip from http://www.oracle.com/technetwork/middleware/tuxedo/downloads/index.html | ||
# p22090512_121300_Linux-x86-64.zip or whatever the latest Tuxedo rolling patch is from My Oracle Support | ||
# | ||
# Download and unzip into the same directory | ||
# tuxedo_docker.zip from https://github.com/TuxedoUsers/Tuxedo-samples/tree/master/docker | ||
# | ||
# | ||
|
||
# Pull base image | ||
FROM oraclelinux | ||
|
||
MAINTAINER Todd Little <[email protected]> | ||
|
||
# Core install doesn't include unzip or gcc, add them | ||
# Create the installation directory tree and user tuxtest with a password of tuxtest | ||
# Create the installation directory tree and user oracle with a password of oracle | ||
RUN yum -y install unzip gcc file; yum -y clean all && \ | ||
groupadd -g 1000 tuxtest; useradd -b /home -m -g tuxtest -u 1000 -s /bin/bash tuxtest && \ | ||
echo tuxtest:tuxtest | chpasswd; echo root:samplesvm | chpasswd | ||
groupadd -g 1000 oracle; useradd -b /home -m -g oracle -u 1000 -s /bin/bash oracle && \ | ||
echo oracle:oracle | chpasswd; echo root:samplesvm | chpasswd | ||
|
||
COPY tuxedo12.1.3_silent_install.sh tuxedo12.1.3.rsp p*_121300_Linux-x86-64.zip tuxedo121300_64_Linux_01_x86.zip <KIT_LOCATION>/ | ||
#ADD simpapp_runme.sh start_tlisten.sh /home/tuxtest/ | ||
COPY install.sh tuxedo12.1.3.rsp p*_121300_Linux-x86-64.zip tuxedo121300_64_Linux_01_x86.zip /home/oracle/Downloads/ | ||
#ADD simpapp_runme.sh start_tlisten.sh /home/oracle/ | ||
|
||
RUN chown tuxtest:tuxtest -R /home/tuxtest | ||
WORKDIR <KIT_LOCATION> | ||
USER tuxtest | ||
RUN chown oracle:oracle -R /home/oracle | ||
WORKDIR /home/oracle/Downloads | ||
USER oracle | ||
|
||
# Install Tuxedo, SALT, and TSAM Agent | ||
RUN sh tuxedo12.1.3_silent_install.sh p*_121300_Linux-x86-64.zip tuxedo121300_64_Linux_01_x86.zip | ||
ENV TUXDIR /home/tuxtest/tuxHome/tuxedo12.1.3.0.0 | ||
ENV TUXDIR /home/oracle/tuxHome/tuxedo12.1.3.0.0 | ||
|
||
# Clean up installer files | ||
RUN rm -f *.zip | ||
|
@@ -43,9 +39,5 @@ RUN rm -f *.zip | |
#USER root | ||
#RUN yum -y install bind-utils | ||
|
||
USER tuxtest | ||
WORKDIR /home/tuxtest | ||
|
||
|
||
|
||
|
||
USER oracle | ||
WORKDIR /home/oracle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/sh | ||
# | ||
# Script file for tuxedo12.1.3 silent install mode | ||
# | ||
# This procedure assumes that the following files are in the current directory: | ||
# tuxedo12.1.3_silent_install.sh - This file | ||
# tuxedo12.1.3.rsp - Silent install response file | ||
# | ||
# and that these files can be found in the in /home/oracle/Downloads | ||
# tuxedo121300_64_Linux_01_x86.zip - Tuxedo installation kit from Oracle | ||
# p19927652_121300_Linux-x86-64.zip - Tuxedo lastest patch kit from Oracle - RP011 | ||
# actual file name may be different | ||
# | ||
# Usage: sh tuxedo12.1.3_silent_install.sh [patch-filename [tuxedo-installer-filename]] | ||
# patch-filename defaults to the latest patch file in the current directory | ||
# tuxedo-installer-filename defaults to tuxedo121300_64_Linux_01_x86.zip | ||
# | ||
# Created by Todd Little 1-Dec-2014 | ||
# | ||
# Get the arguments | ||
#set -x | ||
CURDIR=`pwd` | ||
INSTALLER=tuxedo121300_64_Linux_01_x86.zip | ||
PATCH=`ls p*_121300_Linux-x86-64.zip` | ||
if [ ! -z "$1" ] | ||
then | ||
PATCH=$1 | ||
if [ ! -z "$2" ] | ||
then | ||
INSTALLER=$2 | ||
fi | ||
fi | ||
echo "Using patch file $PATCH" | ||
echo "Using Tuxedo installer $INSTALLER" | ||
# Unzip the downloaded installation kit to the current directory | ||
cd /home/oracle/Downloads | ||
unzip -qq /home/oracle/Downloads/$INSTALLER | ||
# Run the installer in silent mode | ||
# | ||
# Need to create oraInst.loc first: | ||
echo "inventory_loc=/home/oracle/oraInventory" > /home/oracle/Downloads/oraInst.loc | ||
echo "inst_group=oracle" >> /home/oracle/Downloads/oraInst.loc | ||
# | ||
# Installs all of Tuxedo including samples without LDAP support. | ||
# Tuxedo home is /home/oracle/tuxHome | ||
# TUXDIR is /home/oracle/tuxHome/tuxedo12.1.3.0.0 | ||
# | ||
./Disk1/install/runInstaller -invPtrLoc /home/oracle/Downloads/oraInst.loc -responseFile $CURDIR/tuxedo12.1.3.rsp -silent -waitforcompletion | ||
# | ||
# Remove the installer and generated response file | ||
rm -Rf Disk1 tuxedo12.1.3.rsp $INSTALLER | ||
echo "Tuxedo installation done" | ||
# | ||
# Install rolling patch | ||
if [ -e $PATCH ] | ||
then | ||
echo "Starting patch" | ||
export ORACLE_HOME=/home/oracle/tuxHome | ||
unzip -qq /home/oracle/Downloads/$PATCH | ||
rm -Rf /home/oracle/Downloads/$PATCH | ||
$ORACLE_HOME/OPatch/opatch apply -invPtrLoc /home/oracle/Downloads/oraInst.loc *.zip | ||
fi | ||
|
||
|
||
|
Oops, something went wrong.