Skip to content

Commit

Permalink
add Tuxedo FullSet Docker file (#717)
Browse files Browse the repository at this point in the history
* add Tuxedo FullSet Docker file
  • Loading branch information
JudyLliu authored and Djelibeybi committed Feb 22, 2018
1 parent 4c04891 commit f73d424
Show file tree
Hide file tree
Showing 14 changed files with 772 additions and 0 deletions.
1 change: 1 addition & 0 deletions OracleTuxedo/README.md
Expand Up @@ -8,6 +8,7 @@ The Dockerfiles for Oracle Tuxedo products can be found in the [`OracleTuxedo`](
* [TSAM Plus](./tsam) `Tuxedo System and Applications Monitor Plus`
* [Tuxedo Performance Pack](./performance_pack) `Tuxedo Performance Pack and a sample application`
* [Tuxedo Message Queue](./tuxedo_message_q) `Tuxedo Message Queue`
* [Tuxedo Full](./tuxedo_full) `Tuxedo Full Set`

For support and certification information, please consult the documentation for each folder.

Expand Down
20 changes: 20 additions & 0 deletions OracleTuxedo/tuxedo_full/COPYRIGHT
@@ -0,0 +1,20 @@
Copyright (c) 1996, 2018, 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.
27 changes: 27 additions & 0 deletions OracleTuxedo/tuxedo_full/LICENSE
@@ -0,0 +1,27 @@
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.

The Universal Permissive License (UPL), Version 1.0

Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this
software, associated documentation and/or data (collectively the "Software"), free of charge and under any and
all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor
hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or
(ii) the Larger Works (as defined below), to deal in both

(a) the Software, and
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software
(each a “Larger Work” to which the Software is contributed by such licensors),

without restriction, including without limitation the rights to copy, create derivative works of, display,
perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have
sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.

This license is subject to the following condition:
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must
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.
22 changes: 22 additions & 0 deletions OracleTuxedo/tuxedo_full/README.md
@@ -0,0 +1,22 @@

Tuxedo + SALT + TSAM Plus agent on Docker
===============

## How to run
#Before running buildDockerImage.sh, you need to set the environment variables, http_proxy, https_proxy, ftp_proxy, and no_proxy, to access internet if the docker environment is behind a corporate proxy.

The base image oracle/tuxedo:12.2.2 should be built before you run buildDockerImage.sh.
- For how to build the base image oracle/tuxedo:12.2.2, visit [Tuxedo on Docker](https://github.com/oracle/docker-images/tree/master/OracleTuxedo/core).
Before getting started, download the Tuxedo 12.2.2 Linux 64 bit installer tuxedo122200_64_Linux_01_x86.zip from http://www.oracle.com/technetwork/middleware/tuxedo/downloads/index.html
Execute:
$ ./buildDockerImage.sh
Or:
$ docker build -t oracle/tuxedoall 12.2.2/

You can then start the image in a new container with:
$ docker run -d -v \${LOCAL_DIR}:/u01/oracle/user_projects oracle/tuxedoall
Note: \${LOCAL_DIR} is a local dir which used in docker image as external storage, it can be any dir in host machine, permission of this dir should be set like this:
$ docker run -ti --rm --entrypoint="/bin/bash" oracle/tuxedoall -c "whoami && id" tuxedoall
oracle
uid=1000(oracle) gid=1000(oracle) groups=1000(oracle)
$ sudo chown -R 1000 \${LOCAL_DIR}
40 changes: 40 additions & 0 deletions OracleTuxedo/tuxedo_full/dockerfiles/12.2.2/Dockerfile
@@ -0,0 +1,40 @@
# Pull Tuxedo base image
FROM oracle/tuxedo:12.2.2

MAINTAINER Judy Liu<judy.liu@oracle.com>

# Common environment variables required for this build (do NOT change)
# --------------------------------------------------------------------
ENV ORACLE_HOME=/u01/oracle \
JAVA_HOME=/usr/java/default \
PATH=/usr/java/default/bin:$PATH \
TUX_PKG=tuxedo122200_64_Linux_01_x86.zip

# Copy packages
# -------------
USER root
COPY tuxedo12.2.2.rsp $TUX_PKG oraInst.loc /u01/
RUN mv /u01/oraInst.loc /etc/ && \
chown oracle:oracle -R /u01
USER oracle

# Install Tuxedo
# ------------------------------------------------------------
RUN cd /u01 && \
jar xf $TUX_PKG && \
cd /u01/Disk1/install && \
chmod -R +x * && \
./runInstaller.sh -responseFile /u01/tuxedo12.2.2.rsp -silent -waitforcompletion && \
rm -rf /u01/Disk1 \
/u01/tuxedo12.2.2.rsp \
/u01/$TUX_PKG

ENV ORACLE_HOME=/u01/oracle/tuxHome
ENV TUXDIR /u01/oracle/tuxHome/tuxedo12.2.2.0.0

WORKDIR /u01/oracle

EXPOSE 7001 7002

# Define ENTRYPOINT.
ENTRYPOINT ["/u01/oracle/init.sh"]
11 changes: 11 additions & 0 deletions OracleTuxedo/tuxedo_full/dockerfiles/12.2.2/init.sh
@@ -0,0 +1,11 @@
#!/bin/bash

cat <<EOF
This sample Docker image is provided by Oracle and is designed to be used as a base image from which you can build Tuxedo-based applications.
To help you get started customizing this image, we've provided two sample applications ("shm" and "mp") in the Oracle Docker Images GitHub repository. These samples demonstrate how to deploy applications, source code, configuration files and the other necessary settings to build Tuxedo-enabled application containers.
For more information on this image, please visit the Oracle Docker Images GitHub repository at https://github.com/oracle/docker-images.
For more information on Tuxedo, please read the Oracle Tuxedo documentation at http://docs.oracle.com/cd/E72452_01/tuxedo/docs1222/index.html.
EOF
2 changes: 2 additions & 0 deletions OracleTuxedo/tuxedo_full/dockerfiles/12.2.2/oraInst.loc
@@ -0,0 +1,2 @@
inventory_loc=/u01/oraInventory
inst_group=oracle

0 comments on commit f73d424

Please sign in to comment.