-
Notifications
You must be signed in to change notification settings - Fork 5.5k
enhance the existing Tuxedo dockerfiles #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1191f9f
98abe99
142282d
6a69b07
6338b2f
457aeaf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,18 @@ | ||
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. | ||
# Tuxedo on Docker | ||
|
||
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. | ||
This repository contains Dockerfiles for Oracle Tuxedo products and some samples. | ||
|
||
## 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/). | ||
The Dockerfiles for Oracle Tuxedo products can be found in the [`OracleTuxedo`](./) branch of this repository. Here is the description for each folder. | ||
* [Tuxedo Core](./core) `Tuxedo core including server binaries, client libraries and two samples` | ||
|
||
## 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). | ||
|
||
For support and certification information, please consult the documentation for each folder. | ||
|
||
## 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. | ||
Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. | ||
|
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. |
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. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Tuxedo on Docker | ||
=============== | ||
Sample Docker configurations to facilitate installation, configuration, and environment setup for DevOps users. This project includes Dockerfiles for Tuxedo 12.1.3, and 12.2.2 based on Oracle Linux and Oracle JDK 8 (Server). | ||
|
||
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. | ||
|
||
For pre-built images containing Oracle software, please check the [Oracle Container Registry](https://container-registry.oracle.com/). | ||
|
||
## Contents | ||
This folder contains the information and examples of how to use [Tuxedo](http://oracle.com/tuxedo) with [Docker](https://www.docker.com/). | ||
|
||
How to build and run | ||
|
||
This project offers Dockerfiles for Tuxedo 12cR2 (12.1.3.0) and Tuxedo 12cR2 (12.2.2.0). To assist in building the images, you can use the buildDockerImage.sh script. See below for instructions and usage. | ||
|
||
The buildDockerImage.sh script is just a utility shell script that performs MD5 checks and is an easy way for beginners to get started. Expert users are welcome to directly call docker build with their prefered set of parameters. | ||
Building Oracle JDK (Server JRE) base image | ||
|
||
You must first download the Oracle Server JRE binary and drop in folder ../OracleJava/java-8 and build that image. For more information, visit the [OracleJava](https://github.com/oracle/docker-images/blob/master/OracleJava) folder's [README](https://github.com/oracle/docker-images/blob/master/OracleJava/README.md) file. | ||
|
||
$ cd ../OracleJava/java-8 | ||
$ sh build.sh | ||
|
||
Building Tuxedo Docker Install Images | ||
## To use | ||
1. Into an empty directory: | ||
1. Download the Tuxedo 12.1.3 or 12.2.2 Linux 64bit installer from [OTN](http://www.oracle.com/technetwork/middleware/tuxedo/downloads/index.html) | ||
2. Download all the files from this GitHub repository | ||
3. Drop the downloaded Tuxedo installer to the corresponding version directory | ||
4. Optionally download the latest Tuxedo rolling patch from My Oracle Support | ||
2. cd dockerfiles | ||
3. Execute './buildDockerImage.sh' to show the usage of the command. Follow [the guide](./dockerfiles/README.md) to create a docker image. | ||
|
||
You should end up with a docker image tagged oracle/tuxedo:version, for instance, oracle/tuxedo: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/tuxedo:<VERSION>``. | ||
Note: \${LOCAL_DIR} is a local dir which used in docker image as external storage, it can be any dir. | ||
|
||
|
||
* Tuxedo Distribution and Documentation | ||
- For more information on the Tuxedo 12cR2 Distribution, visit [Tuxedo 12.1.3/12.2.2 Installer](http://www.oracle.com/technetwork/middleware/tuxedo/downloads/index.html). | ||
|
||
- For more information on the Tuxedo 12cR2 Documentation, visit [Tuxedo 12.1.3](http://docs.oracle.com/cd/E53645_01/tuxedo/index.html), [Tuxedo 12.2.2](http://docs.oracle.com/cd/E72452_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-2017 Oracle and/or its affiliates. All rights reserved. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# | ||
# Dockerfile template for Tuxedo 12.1.3 | ||
# | ||
# Download the following files to an empty directory: | ||
# tuxedo121300_64_Linux_01_x86.zip 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 | ||
# | ||
|
||
# Pull base image | ||
FROM oracle/serverjre:8 | ||
|
||
MAINTAINER Judy Liu <judy.liu@oracle.com> | ||
|
||
# Common environment variables required for this build (do NOT change) | ||
# -------------------------------------------------------------------- | ||
ENV ORACLE_HOME=/u01/oracle \ | ||
PATH=/usr/java/default/bin:$PATH \ | ||
TUX_PKG=tuxedo121300_64_Linux_01_x86.zip | ||
|
||
# Core install doesn't include unzip or gcc, add them | ||
# Setup filesystem and oracle user | ||
# Adjust file permissions, go to /u01 as user 'oracle' to proceed with WLS installation | ||
# ------------------------------------------------------------ | ||
RUN yum -y install unzip gcc file hostname which util-linux && yum -y clean all && \ | ||
mkdir -p /u01 && chmod a+xr /u01 && \ | ||
groupadd -g 1000 oracle && useradd -b /u01 -m -g oracle -u 1000 -s /bin/bash oracle | ||
|
||
# Copy packages | ||
# ------------- | ||
COPY tuxedo12.1.3.rsp $TUX_PKG init.sh oraInst.loc /u01/ | ||
RUN mv /u01/init.sh /u01/oracle/init.sh && \ | ||
mv /u01/oraInst.loc /etc/ && \ | ||
chown oracle:oracle -R /u01 && \ | ||
chmod +x /u01/oracle/init.sh | ||
USER oracle | ||
|
||
# Install Tuxedo | ||
# ------------------------------------------------------------ | ||
RUN cd /u01 && \ | ||
mkdir oraInventory && \ | ||
jar xf $TUX_PKG && \ | ||
cd /u01/Disk1/install && \ | ||
chmod -R +x * && \ | ||
./runInstaller -responseFile /u01/tuxedo12.1.3.rsp -silent -waitforcompletion && \ | ||
rm -rf /u01/Disk1 \ | ||
/u01/tuxedo12.1.3.rsp \ | ||
/u01/$TUX_PKG | ||
|
||
ENV ORACLE_HOME=/u01/oracle/tuxHome | ||
ENV TUXDIR /u01/oracle/tuxHome/tuxedo12.1.3.0.0 | ||
ENV PATH=$PATH:$TUXDIR/bin \ | ||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TUXDIR/lib | ||
|
||
# | ||
# 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 oracle | ||
WORKDIR /u01/oracle | ||
|
||
# Define ENTRYPOINT. | ||
ENTRYPOINT ["/u01/oracle/init.sh"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please rewrite the following two 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/E53645_01/tuxedo/docs12cr2/index.html. |
||
|
||
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/E53645_01/tuxedo/docs12cr2/index.html. | ||
EOF |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
inventory_loc=/u01/oraInventory | ||
inst_group=oracle |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Download the Tuxedo 12.1.3.0 binary | ||
# | ||
# - http://www.oracle.com/technetwork/middleware/tuxedo/downloads/index.html | ||
# | ||
7194e8711a257951211185b2280bedd6 tuxedo121300_64_Linux_01_x86.zip | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# | ||
# Dockerfile template for Tuxedo 12.2.2 | ||
# | ||
# Download the following files to an empty directory: | ||
# tuxedo122200_64_Linux_01_x86.zip http://www.oracle.com/technetwork/middleware/tuxedo/downloads/index.html | ||
# | ||
|
||
# Pull base image | ||
FROM oracle/serverjre:8 | ||
|
||
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 | ||
|
||
# Core install doesn't include unzip or gcc, add them | ||
# Setup filesystem and oracle user | ||
# Adjust file permissions, go to /u01 as user 'oracle' to proceed with WLS installation | ||
# ------------------------------------------------------------ | ||
RUN yum -y install unzip gcc file hostname which util-linux && yum -y clean all && \ | ||
mkdir -p /u01 && chmod a+xr /u01 && \ | ||
groupadd -g 1000 oracle && useradd -b /u01 -m -g oracle -u 1000 -s /bin/bash oracle | ||
|
||
# Copy packages | ||
# ------------- | ||
COPY tuxedo12.2.2.rsp $TUX_PKG init.sh oraInst.loc /u01/ | ||
RUN mv /u01/init.sh /u01/oracle/init.sh && \ | ||
mv /u01/oraInst.loc /etc/ && \ | ||
chown oracle:oracle -R /u01 && \ | ||
chmod +x /u01/oracle/init.sh | ||
USER oracle | ||
|
||
# Install Tuxedo | ||
# ------------------------------------------------------------ | ||
RUN cd /u01 && \ | ||
mkdir oraInventory && \ | ||
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 | ||
ENV PATH=$PATH:$TUXDIR/bin \ | ||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TUXDIR/lib | ||
|
||
# | ||
# 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 oracle | ||
WORKDIR /u01/oracle | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dockerfile is to show how to build a Tuxedo docker image. Then users coudl develop or deploy their apps on the image. Will output how to use the docker image. |
||
|
||
# Define ENTRYPOINT. | ||
ENTRYPOINT ["/u01/oracle/init.sh"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above, please replace the text below. |
||
|
||
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
inventory_loc=/u01/oraInventory | ||
inst_group=oracle |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Download the Tuxedo 12.2.2.0 binary | ||
# | ||
# - http://www.oracle.com/technetwork/middleware/tuxedo/downloads/index.html | ||
# | ||
8b0441818024d5715ed4fc1e74b9996c tuxedo122200_64_Linux_01_x86.zip | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no
CMD
orENTRYPOINT
command, which is against the Golden Rules as stated in the contribution guide. Please provide one, even if all it outputs is documentation on how to find more information on extending this image.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dockerfile is to show how to build a Tuxedo docker image. Then users coudl develop or deploy their apps on the image. Will output how to use the docker image.