Skip to content

Commit

Permalink
merged changes for Tuxedo
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoborges committed Jun 7, 2016
2 parents 185528e + 3493859 commit c29731e
Show file tree
Hide file tree
Showing 11 changed files with 1,142 additions and 46 deletions.
2 changes: 0 additions & 2 deletions OracleTuxedo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ Tuxedo on Docker
===============
Sample Docker configurations to facilitate installation, configuration, and environment setup for DevOps users. This project includes [samples](samples/) for Tuxedo 12.1.3 based on Oracle Linux.

For information on certification and support of Tuxedo on Docker containers, please refer to this [whitepaper](http://www.oracle.com/technetwork/middleware/tuxedo/overview/tuxedo-docker-containers-v1-2966620.pdf).

The certification of Tuxedo on Docker does not require the use of any file presented in this repository. Customers and users are welcome to use them as starters, and customize/tweak, or create from scratch new scripts and Dockerfiles.

## How to build and run
Expand Down
30 changes: 11 additions & 19 deletions OracleTuxedo/dockerfiles/12.1.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
65 changes: 65 additions & 0 deletions OracleTuxedo/dockerfiles/12.1.3/install.sh
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



Loading

0 comments on commit c29731e

Please sign in to comment.