Skip to content

Commit

Permalink
Tuxedo on Docker (oracle#94)
Browse files Browse the repository at this point in the history
* Create tuxedo12.1.3.rsp.template

* Added files via upload

* Create README.md
  • Loading branch information
DongHan2016 authored and brunoborges committed Apr 28, 2016
1 parent 5d6afe8 commit 1b25275
Show file tree
Hide file tree
Showing 20 changed files with 1,243 additions and 0 deletions.
20 changes: 20 additions & 0 deletions OracleTuxedo/COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 1996, 2016, Oracle Corporation. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 3 additions & 0 deletions OracleTuxedo/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Unless otherwise noted, all files in this folder are released
under the Common Development and Distribution License (CDDL) 1.0
and GNU Public License 2.0 licenses.
38 changes: 38 additions & 0 deletions OracleTuxedo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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.

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
This folder contains the information and examples of how to use [Tuxedo](http://oracle.com/tuxedo) with [Docker](https://www.docker.com/).

## To use
1. Into an empty directory:
1. Download the Tuxedo 12.1.3 Linux 64 bit installer from OTN
2. Download all the files from this github directory
3. Optionally download the latest Tuxedo rolling patch from My Oracle Support
2. cd dockerfiles
3. Execute 'bash buildDockerImage.sh'

You should end up with a docker image tagged oracle/tuxedo:version

You can then start the image in a new container with: `docker run -i -t oracle/tuxedo:version /bin/bash`
which will put you into the container with a bash prompt. If you want to test the new container, simply execute the `simpapp_runme.sh` in an empty
directory and the script will build and run the Tuxedo simpapp application.


* Tuxedo Distribution and Documentation
- For more information on the Tuxedo 12cR2 Distribution, visit [Tuxedo 12.1.3 Installer](http://www.oracle.com/technetwork/middleware/tuxedo/downloads/index.html).

- For more information on the Tuxedo 12cR2 Documentation, visit [Tuxedo 12.1.3 Documentation](http://docs.oracle.com/cd/E53645_01/tuxedo/index.html).


## License
To download and run Tuxedo 12cR2 regardless of inside or outside a Docker container, you must download the binaries from Oracle website and accept the license indicated at that page.

All scripts and files hosted in this project and GitHub [docker/OracleTuxedo](./) repository required to build the Docker images are, unless otherwise noted, released under the Common Development and Distribution License (CDDL) 1.0 and GNU Public License 2.0 licenses.

## Copyright
Copyright (c) 2016-2016 Oracle and/or its affiliates. All rights reserved.

51 changes: 51 additions & 0 deletions OracleTuxedo/dockerfiles/12.1.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#
# Dockerfile template for Tuxedo 12.1.3
#
# Download the following files to an empty directory:
# 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 <todd.little@oracle.com>

# Core install doesn't include unzip or gcc, add them
# Create the installation directory tree and user tuxtest with a password of tuxtest
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

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/

RUN chown tuxtest:tuxtest -R /home/tuxtest
WORKDIR <KIT_LOCATION>
USER tuxtest

# 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

# Clean up installer files
RUN rm -f *.zip
#
# Configure network ports
# tlisten nlsaddr:5001 jmx:5002
# SALT http:5010
# WSL 5020
#EXPOSE 5001 5002 5010 5020
#USER root
#RUN yum -y install bind-utils

USER tuxtest
WORKDIR /home/tuxtest




Loading

0 comments on commit 1b25275

Please sign in to comment.