├── LICENSE ├── README.md ├── atg-10.1.2 ├── Dockerfile ├── scripts │ └── modsudoers.sh └── tools │ └── README.md ├── build-atg-10.1.2.sh ├── build-endeca-3.1.1.sh ├── build-endeca-3.1.2.sh ├── build-jboss-eap-5.1.2.sh ├── build-oc-11.1-endeca.sh ├── build-oracle-enterprise-11.2.0.4.sh ├── docker-compose.yml ├── endeca-3.1.1 ├── Dockerfile ├── scripts │ ├── captureEndecaLogs.sh │ ├── installDiscoverApp.sh │ ├── modsudoers.sh │ ├── setup.sh │ ├── setup2.sh │ ├── setup3.sh │ ├── setup4.sh │ ├── setup5.sh │ ├── shutdown.sh │ └── start.sh └── tools │ ├── cas-silent.txt │ ├── platformservices-silent.txt │ ├── ws-extensions.xml │ └── ws-mainMenu.xml ├── endeca-3.1.2 ├── Dockerfile ├── scripts │ ├── captureEndecaLogs.sh │ ├── installDiscoverApp.sh │ ├── modsudoers.sh │ ├── setup.sh │ ├── setup2.sh │ ├── setup3.sh │ ├── setup4.sh │ ├── setup5.sh │ ├── shutdown.sh │ └── start.sh └── tools │ ├── ws-extensions.xml │ └── ws-mainMenu.xml ├── jboss-eap-5.1.2 ├── Dockerfile ├── scripts │ ├── modsudoers.sh │ ├── shutdown.sh │ └── start.sh └── tools │ └── README.md ├── oc-11.1 ├── Dockerfile ├── scripts │ └── setupEndecaUser.sh └── support │ └── platformservices-silent.txt ├── oracle-enterprise-11.2.0.4 ├── Dockerfile └── scripts │ └── modsudoers.sh ├── oracle-xe └── README └── run-complete--environment.sh /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | 341 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ATG Environment Running On Docker 2 | 3 | # Current Status 4 | 5 | * Endeca 3.1.1 install works 6 | * Endeca 3.1.2 install works 7 | * JBoss eap 5.1.2 install works 8 | * ATG install is in progress 9 | * docker-compose is in progress 10 | 11 | # Goals 12 | 13 | A quick and repeatable install for development or testing purposes that can be quickly stood up using docker-compose. 14 | 15 | # Docker 16 | 17 | Docker is.... A container, not a VM 18 | 19 | # Components 20 | 21 | For those with access the Oracle files can be downloaded from https://edelivery.oracle.com. The jdbc driver is available through http://oracle.com. 22 | 23 | I don't have a location to get the JBoss files other than http://redhat.com. 24 | 25 | ## Application Server 26 | 27 | JBoss EAP 5.1.2 is used. 28 | 29 | ## ATG / Oracle Commerce 30 | 31 | The ATG install will use the images that has JBoss installed on it. 32 | 33 | The oracle jdbc driver (ojdbc6.jar) is also installed from the tools/ folder. 34 | 35 | ## Endeca 36 | 37 | Dockerfiles are provided for 3.1.1 and 3.1.2. I'm in the processing of writing a file for 11.1 38 | 39 | ## Database 40 | 41 | I'm using an existing image of xe 42 | 43 | # Install Information 44 | 45 | ## JBoss EAP 5.1.2 46 | 47 | The expected file name and location for the jboss file you will need to provide 48 | 49 | * tools/jboss-eap-5.1.2.zip 50 | 51 | ## Oracle Commerce 52 | 53 | Using ATG(Commerce) 10.1.2 built on top of the jboss created image. 54 | 55 | You will need to provide the necessary zip files provided by Oracle. The ATG files are 56 | * V35852-01.zip 57 | 58 | ## Endeca 59 | 60 | You will need to provide the Endeca files. 61 | 62 | * The Endeca version being installed in from media pack 3.1.1: 63 | * MDEX 6.4.0 64 | * Platform Services 6.1.3 65 | * Tools And Frameworks 3.1.1 66 | * CAS 3.1.1 67 | * Experience Manager 68 | * Relevancy Ranking 69 | 70 | * The Endeca version being installed in from media pack 3.1.2: 71 | * MDEX 6.4.1.2 72 | * Platform Services 6.1.4 73 | * Tools And Frameworks 3.1.2 74 | * CAS 3.1.2.1 75 | * Experience Manager 76 | * Relevancy Ranking 77 | 78 | ### Endeca 3.1.1 79 | 80 | * The files needed for the 3.1.1 install are 81 | * V31171-01.zip 82 | * V33316-01.zip 83 | * V35739-01.zip 84 | * V35740-01.zip 85 | * V35742-01.zip 86 | * V35744-01.zip 87 | 88 | By default the Endeca install is under /appl/endeca/. 89 | 90 | Copy the necessary Oracle supplied zip files to the /tools folder. 91 | 92 | Run the build-endeca-3.1.2.sh shell script: 93 | 94 | ``` 95 | docker run -d -p 2222:22  -p 8006:8006 -p 8888:8888 -p 15000:15000 -p 15002:15002 -p 15010:15010 --name endeca-3.1.1 ets04uga/endeca:3.1.1 96 | ``` 97 | 98 | ### Endeca 3.1.2 99 | 100 | The install for 3.1.2 is more flexible than the 3.1.1 install. Environment variables are set at the beginning for flexibility. By default the install location is /opt/endeca 101 | 102 | * The files needed for the 3.1.2 install are 103 | * V37716-01.zip 104 | * V40311-01.zip 105 | * V40319-01.zip 106 | * V40324-01.zip 107 | 108 | Copy the necessary Oracle supplied zip files to the /tools folder. 109 | 110 | Run the build-endeca-3.1.2.sh shell script: 111 | 112 | ``` 113 | docker run -d -p 2222:22  -p 8006:8006 -p 8888:8888 -p 15000:15000 -p 15002:15002 -p 15010:15010 --name endeca-3.1.2 ets04uga/endeca:3.1.2 114 | ``` 115 | 116 | ## XE Database 117 | 118 | See the README notes on the xe database in the xe folder. I'm using an existing image. 119 | 120 | # Docker Compose 121 | 122 | There is a docker compose file that will start the following three images. I am still in the process of getting these integrated as a fully tested solution. 123 | * storefront 124 | * search 125 | * database 126 | 127 | # Various 128 | 129 | The following is still in draft. 130 | 131 | # Install Discover App in Endeca 132 | 133 | By default the build script installs the reference app 134 | 135 | ./apps/Discover/config/ifcr/configuration/tools/preview.json 136 | ./apps/Discover/config/script/WorkbenchConfig.xml 137 | ./apps/Discover/config/script/DataIngest.xml 138 | ./apps/Discover/config/script/LiveDgraphCluster.xml 139 | ./apps/Discover/config/script/ReportGeneration.xml 140 | ./apps/Discover/config/script/AuthoringDgraphCluster.xml 141 | ./apps/Discover/config/script/AppConfig.xml 142 | ./apps/Discover/config/editors_config/editors.xml 143 | ./apps/Discover/config/editors_config/services/dataservice.json 144 | ./apps/Discover/config/editors_config/services/endecaBrowserService.json 145 | ./apps/Discover/control/set_templates.sh 146 | ./apps/Discover/control/get_templates.sh 147 | 148 | 149 | -------------------------------------------------------------------------------- /atg-10.1.2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ets04uga/jboss:eap-5.1.2 2 | MAINTAINER Eric Stiles 3 | 4 | ####################################### 5 | # environment variables 6 | # 7 | 8 | # user information 9 | #ENV USER svc_atg 10 | #ENV USER_HOME_DIR /home/$USER 11 | 12 | # environment variable for local location 13 | ENV LOCAL_SCRIPTS scripts 14 | ENV LOCAL_TOOLS tools 15 | 16 | # environment variables for installables 17 | ENV BASE_TMP_INSTALL /tmp 18 | ENV BASE_TMP_PACKAGE_INSTALL $BASE_TMP_INSTALL/packages 19 | 20 | # environment variables for atg location 21 | ENV BASE_DIR /appl 22 | ENV SCRIPT_DIR /appl 23 | 24 | ####################################### 25 | # create directories for copying initial copy of packages 26 | RUN mkdir -p $BASE_TMP_PACKAGE_INSTALL 27 | 28 | # directory for final install of application created as part of script directory 29 | RUN mkdir -p $SCRIPT_DIR 30 | RUN chmod -R 755 $SCRIPT_DIR 31 | 32 | ####################################### 33 | # copy ATG 34 | ADD $LOCAL_TOOLS/V35852-01.zip $BASE_TMP_PACKAGE_INSTALL/V35852-01.zip 35 | 36 | # unzip oracle zip file for ATG to ATG10.1.2_200RCN.bin 37 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V35852-01.zip -d $BASE_TMP_INSTALL 38 | 39 | # make ATG10.1.2_200RCN.bin executable for install 40 | RUN chmod +x $BASE_TMP_INSTALL/ATG10.1.2_200RCN.bin 41 | 42 | ####################################### 43 | # copy jdbc driver to jboss location 44 | ADD $LOCAL_TOOLS/ojdbc6.jar /appl/jboss-eap-5.1.2/jboss-as/lib/ojdbc6.jar 45 | 46 | ####################################### 47 | # DONE 48 | 49 | ENV AUTHORIZED_KEYS **None** 50 | 51 | EXPOSE 22 52 | CMD ["/run.sh"] 53 | -------------------------------------------------------------------------------- /atg-10.1.2/scripts/modsudoers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | USER=svc_jboss 4 | 5 | useradd -p $(openssl passwd -1 $USER) $USER 6 | 7 | if [ ! -z "$1" ]; then 8 | echo "$USER ALL=(ALL) ALL" >> $1 9 | else 10 | export EDITOR=$0 11 | visudo 12 | fi -------------------------------------------------------------------------------- /atg-10.1.2/tools/README.md: -------------------------------------------------------------------------------- 1 | This is the folder location for necessary zip files in building the ATG-10.1.2 container. 2 | -------------------------------------------------------------------------------- /build-atg-10.1.2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -o pipefail 4 | 5 | FILE=./atg-10.1.2 6 | IMAGE=ets04uga/atg 7 | VERSION=10.1.2 8 | 9 | docker build -t ${IMAGE}:${VERSION} $FILE | tee build.log || exit 1 10 | ID=$(tail -1 build.log | awk '{print $3;}') 11 | 12 | #echo $ID 13 | #docker logs $ID 14 | 15 | -------------------------------------------------------------------------------- /build-endeca-3.1.1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -o pipefail 4 | 5 | FILE=./endeca-3.1.1 6 | IMAGE=ets04uga/endeca 7 | VERSION=3.1.1 8 | 9 | docker build -t ${IMAGE}:${VERSION} $FILE | tee build.log || exit 1 10 | ID=$(tail -1 build.log | awk '{print $3;}') 11 | 12 | #echo $ID 13 | #docker logs $ID 14 | 15 | -------------------------------------------------------------------------------- /build-endeca-3.1.2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -o pipefail 4 | 5 | FILE=endeca-3.1.2 6 | IMAGE=ets04uga/endeca 7 | VERSION=3.1.2 8 | 9 | docker build -t ${IMAGE}:${VERSION} $FILE | tee build.log || exit 1 10 | ID=$(tail -1 build.log | awk '{print $3;}') 11 | -------------------------------------------------------------------------------- /build-jboss-eap-5.1.2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -o pipefail 4 | 5 | IMAGE=ets04uga/jboss 6 | VERSION=eap-5.1.2 7 | 8 | docker build -t ${IMAGE}:${VERSION} ./jboss-eap-5.1.2 | tee build.log || exit 1 9 | ID=$(tail -1 build.log | awk '{print $3;}') 10 | 11 | #echo $ID 12 | #docker logs $ID 13 | 14 | -------------------------------------------------------------------------------- /build-oc-11.1-endeca.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -o pipefail 4 | 5 | #docker build -t ets04uga/atg:latest ./base 6 | #ID=$(docker build -t ets04uga/base:latest ./base) 7 | 8 | IMAGE=ets04uga/oc-11.1-endeca 9 | VERSION=latest 10 | 11 | docker build -t ${IMAGE}:${VERSION} ./oc-11.1 | tee build.log || exit 1 12 | ID=$(tail -1 build.log | awk '{print $3;}') 13 | 14 | #echo $ID 15 | #docker logs $ID 16 | 17 | -------------------------------------------------------------------------------- /build-oracle-enterprise-11.2.0.4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -o pipefail 4 | 5 | IMAGE=ets04uga/oracle 6 | VERSION=11.2.0.4 7 | 8 | docker build -t ${IMAGE}:${VERSION} ./oracle-enterprise-11.2.0.4 | tee build.log || exit 1 9 | ID=$(tail -1 build.log | awk '{print $3;}') 10 | 11 | #echo $ID 12 | #docker logs $ID 13 | 14 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | storefront: 2 | image: 3 | ets04uga/atg:10.1.2 4 | ports: 5 | - "2222:22" 6 | # The following are storefront ports 7 | - "9080:8080" 8 | - "9443:8443" 9 | - "9060:8860" 10 | - "9050:8850" 11 | - "9810:8810" 12 | - "9815:8815" 13 | - "10010:9010" 14 | - "10012:9012" 15 | # The following are publishing ports 16 | - "11012:9112" 17 | - "9180:8180" 18 | - "9543:8543" 19 | - "9860:9860" 20 | - "9850:9850" 21 | - "8910:8910" 22 | - "8915:8915" 23 | - "9110:9110" 24 | links: 25 | - search 26 | - database 27 | search: 28 | image: 29 | ets04uga/endeca:3.1.1 30 | ports: 31 | - "2223:22" 32 | - "8500:8500" 33 | - "8888:8888" 34 | 35 | database: 36 | image: 37 | alexeiled/docker-oracle-xe-11g 38 | ports: 39 | - "49160:22" 40 | - "49161:1521" 41 | - "49162:8080" 42 | -------------------------------------------------------------------------------- /endeca-3.1.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tutum/centos:centos5 2 | MAINTAINER Eric Stiles 3 | 4 | ####################################### 5 | # install necessary OS packages 6 | RUN yum -y install which && \ 7 | yum -y install libaio && \ 8 | yum -y install glibc.i686 && \ 9 | yum -y install sudo && \ 10 | yum -y install unzip.x86_64 11 | 12 | ####################################### 13 | # environment variables 14 | # 15 | # environment variable for local location 16 | ENV LOCAL_SCRIPTS scripts 17 | ENV LOCAL_TOOLS tools 18 | 19 | # environment variables for installables 20 | ENV BASE_TMP_INSTALL /tmp 21 | ENV BASE_TMP_ENDECA_INSTALL $BASE_TMP_INSTALL/endeca 22 | ENV BASE_TMP_PACKAGE_INSTALL $BASE_TMP_ENDECA_INSTALL/packages 23 | 24 | # environment variables for endeca location 25 | ENV BASE_DIR /appl 26 | ENV BASE_ENDECA_DIR $BASE_DIR/endeca 27 | ENV SCRIPT_DIR $BASE_DIR/bin 28 | 29 | ####################################### 30 | # create directories for copying initial endeca packages 31 | RUN mkdir -p $BASE_TMP_PACKAGE_INSTALL 32 | RUN chmod -R 777 $BASE_TMP_ENDECA_INSTALL 33 | 34 | # directory for final install of endeca created as part of script directory 35 | RUN mkdir -p $SCRIPT_DIR 36 | RUN chmod -R 755 $BASE_DIR 37 | 38 | 39 | ####################################### 40 | # Copy script that creates unique password for root and other scripts 41 | ADD $LOCAL_SCRIPTS/modsudoers.sh / 42 | ADD $LOCAL_SCRIPTS/setup*.sh / 43 | ADD $LOCAL_SCRIPTS/start.sh $SCRIPT_DIR/ 44 | ADD $LOCAL_SCRIPTS/shutdown.sh $SCRIPT_DIR/ 45 | ADD $LOCAL_SCRIPTS/captureEndecaLogs.sh $SCRIPT_DIR/ 46 | ADD $LOCAL_SCRIPTS/installDiscoverApp.sh $SCRIPT_DIR/ 47 | 48 | ####################################### 49 | # Set properties for scripts to be executable 50 | RUN chmod +x /*.sh 51 | RUN chmod +x $SCRIPT_DIR 52 | 53 | ####################################### 54 | #Run commands to create endeca user and modify sudoers 55 | RUN /setup.sh 56 | 57 | ####################################### 58 | # start copying across all endeca packages 59 | # 60 | #mdex_6.4.0.692722_x86_64pc-linux.sh 61 | #presAPI_6.4.0.692722_x86_64pc-linux.tgz 62 | ADD $LOCAL_TOOLS/V35742-01.zip $BASE_TMP_PACKAGE_INSTALL/V35742-01.zip 63 | 64 | #platformservices_613654721_x86_64pc-linux.sh 65 | ADD $LOCAL_TOOLS/V33316-01.zip $BASE_TMP_PACKAGE_INSTALL/V33316-01.zip 66 | 67 | #text file used for silent install of platform services 68 | ADD $LOCAL_TOOLS/platformservices-silent.txt $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt 69 | 70 | #cas-3.1.1-x86_64pc-linux.sh 71 | ADD $LOCAL_TOOLS/V35739-01.zip $BASE_TMP_PACKAGE_INSTALL/V35739-01.zip 72 | 73 | #text file used or silent install of platform services 74 | ADD $LOCAL_TOOLS/cas-silent.txt $BASE_TMP_ENDECA_INSTALL/cas-silent.txt 75 | 76 | #gs_3.1.1.6904_linux.zip 77 | ADD $LOCAL_TOOLS/V35740-01.zip $BASE_TMP_PACKAGE_INSTALL/V35740-01.zip 78 | 79 | #xmgr_3.1.1.6904_linux.zip 80 | ADD $LOCAL_TOOLS/V35744-01.zip $BASE_TMP_PACKAGE_INSTALL/V35744-01.zip 81 | 82 | #relevancy ranking tool 83 | ADD $LOCAL_TOOLS/V31171-01.zip $BASE_TMP_PACKAGE_INSTALL/V31171-01.zip 84 | 85 | ####################################### 86 | # Unzip all packages to get install scripts and files 87 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V33316-01.zip -d $BASE_TMP_ENDECA_INSTALL 88 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V35739-01.zip -d $BASE_TMP_ENDECA_INSTALL 89 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V35740-01.zip -d $BASE_TMP_ENDECA_INSTALL 90 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V35742-01.zip -d $BASE_TMP_ENDECA_INSTALL 91 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V35744-01.zip -d $BASE_TMP_ENDECA_INSTALL 92 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V31171-01.zip -d $BASE_TMP_ENDECA_INSTALL 93 | 94 | # set permissions of scripts to run 95 | RUN chmod +x $BASE_TMP_INSTALL/**/*.sh 96 | 97 | ####################################### 98 | # install mdex 99 | RUN $BASE_TMP_ENDECA_INSTALL/mdex_6.4.0.692722_x86_64pc-linux.sh --target $BASE_DIR 100 | 101 | # copy mdex environment variables to .bashrc 102 | RUN /setup2.sh 103 | 104 | # set mdex environment variables for rest of install 105 | ENV ENDECA_MDEX_ROOT $BASE_ENDECA_DIR/MDEX/6.4.0 106 | ENV PATH $ENDECA_MDEX_ROOT/bin:$PATH 107 | 108 | ####################################### 109 | # install platform services 110 | RUN $BASE_TMP_ENDECA_INSTALL/platformservices_613654721_x86_64pc-linux.sh --silent --target $BASE_DIR < $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt 111 | 112 | # copy platform services environment variables to .bashrc 113 | RUN /setup3.sh 114 | 115 | # set platform services variables for rest of install 116 | ENV VERSION 6.1.3 117 | ENV BUILD_VERSION 6.1.3.654721 118 | ENV ARCH_OS x86_64pc-linux 119 | ENV PRODUCT IAP 120 | ENV ENDECA_INSTALL_BASE /appl 121 | ENV ENDECA_ROOT $BASE_ENDECA_DIR/PlatformServices/6.1.3 122 | ENV PERLLIB $ENDECA_ROOT/lib/perl:$ENDECA_ROOT/lib/perl/Control:$ENDECA_ROOT/perl/lib:$ENDECA_ROOT/perl/lib/site_perl:$PERLLIB 123 | ENV PERL5LIB $ENDECA_ROOT/lib/perl:$ENDECA_ROOT/lib/perl/Control:$ENDECA_ROOT/perl/lib:$ENDECA_ROOT/perl/lib/site_perl:$PERL5LIB 124 | ENV PATH $ENDECA_ROOT/bin:$ENDECA_ROOT/perl/bin:$ENDECA_ROOT/utilities:$PATH 125 | ENV ENDECA_CONF $BASE_ENDECA_DIR/PlatformServices/workspace 126 | 127 | # ENDECA_REFERENCE_DIR points to the directory the reference implementations 128 | # are installed in. It is not required to run any Endeca software. 129 | ENV ENDECA_REFERENCE_DIR $BASE_ENDECA_DIR/PlatformServices/reference 130 | 131 | ####################################### 132 | # install Tools and Frameworks 133 | # 134 | # unip ToolsAndFrameworks 135 | RUN unzip $BASE_TMP_ENDECA_INSTALL/xmgr_3.1.1.6904_linux.zip -d $BASE_ENDECA_DIR 136 | 137 | # copy tools and frameworks environment variables to .bashrc 138 | RUN /setup4.sh 139 | 140 | # set tools and frameworks variables for rest of install 141 | ENV ENDECA_TOOLS_ROOT $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.1/ 142 | ENV ENDECA_TOOLS_CONF $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.1/server/workspace 143 | 144 | ####################################### 145 | # install CAS 146 | RUN $BASE_TMP_ENDECA_INSTALL/cas-3.1.1-x86_64pc-linux.sh --silent --target $BASE_DIR < $BASE_TMP_ENDECA_INSTALL/cas-silent.txt 147 | 148 | ####################################### 149 | # install relevancy evaluator 150 | RUN mv /tmp/endeca/Endeca/Solutions $BASE_ENDECA_DIR 151 | 152 | RUN cp $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.1/assembler/lib/endeca_navigation-6.4.0.jar $BASE_ENDECA_DIR/Solutions/relrankEvaluator-2.1.2/relrankEvaluator/WEB-INF/lib/endeca_navigation.jar 153 | 154 | # write context into relrankEvaluator.xml file 155 | RUN /setup5.sh 156 | 157 | # place correct extensions file 158 | ADD tools/ws-extensions.xml $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.1/server/workspace/conf/ws-extensions.xml 159 | 160 | # place correct menu items 161 | ADD tools/ws-mainMenu.xml $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.1/server/workspace/conf/ws-mainMenu.xml 162 | 163 | ####################################### 164 | # create apps directory 165 | RUN mkdir $BASE_ENDECA_DIR/apps 166 | 167 | ####################################### 168 | # set user and permissions to endeca 169 | RUN chown -R endeca.endeca $BASE_ENDECA_DIR/ 170 | 171 | ####################################### 172 | # install is done start cleanup to remove initial packages 173 | RUN rm -rf $BASE_TMP_ENDECA_INSTALL 174 | RUN rm setup*.sh 175 | 176 | EXPOSE 22 177 | EXPOSE 8500 178 | EXPOSE 8888 179 | CMD ["/run.sh"] 180 | -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/captureEndecaLogs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | function explain(){ 4 | echo "Aggregate all Endeca logs to a single output stream that have been touched since a given time period. Can > the stream to a file." 5 | echo " " 6 | echo "Usage:" 7 | echo " ./captureLogs.sh [directory] [time(minutes] [number of lines to tail]" 8 | echo " " 9 | echo " -d directory is a recursive search" 10 | echo " -m follows standard find logic" 11 | echo " -n number of lines to tail" 12 | echo " -h help" 13 | } 14 | 15 | #$1 - directory to search 16 | #$2 - time in minutes to check for file changes 17 | C="=" 18 | function separator (){ 19 | SEPARATOR="" 20 | i=1 21 | LENGTH=50 22 | if [ ! -z "$1" ]; then 23 | LENGTH=$1 24 | fi 25 | while [ "$i" -le "$LENGTH" ] 26 | do 27 | SEPARATOR=$SEPARATOR$C 28 | i=$(($i + 1)); 29 | done 30 | echo $SEPARATOR; 31 | } 32 | if [ "-h" = "$1" -o "$#" = 0 ]; then 33 | explain; 34 | exit 0; 35 | fi 36 | 37 | FILES=$( find $1 -mmin $2 \( -iname "*log*.*" -or -iname "*.log" -or -iname "*.out" \) -and \( ! -iname "*.dat" -and ! -iname "*.lck" -and ! -iname "*.ctrl" \) ); 38 | 39 | echo $FILES 40 | 41 | separator; 42 | echo "--> BEGINING AGGREGATION <--" 43 | separator; 44 | 45 | for i in $FILES 46 | do 47 | echo $i 48 | done 49 | separator; 50 | for i in $FILES 51 | do 52 | echo $i 53 | tail -n$3 $i 54 | echo " " 55 | separator; 56 | done 57 | 58 | -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/installDiscoverApp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Install Discover App with some tweaks 4 | # 5 | 6 | INTERNAL_IP=192.168.59.103 7 | 8 | # deploy app 9 | /appl/endeca/ToolsAndFrameworks/3.1.1/deployment_template/bin/deploy.sh --app /appl/endeca/ToolsAndFrameworks/3.1.1/reference/discover-data/deploy.xml 10 | 11 | # change logging level to see everything 12 | sed -i 's/\(INFO\|WARNING\|CONFIG\)/ALL/g' /appl/endeca/apps/Discover/config/script/logging.properties 13 | 14 | 15 | # change host to IP address 16 | HOST=`head -1 /etc/hosts | cut -f2` 17 | grep $HOST -rl . | xargs sed -i "s/$HOST/1$INTERNAL_IP/g" 18 | 19 | #check if services are running 20 | 21 | /appl/endeca/apps/Discover/control/initialize_services.sh 22 | /appl/endeca/apps/Discover/control/load_baseline_test_data.sh 23 | /appl/endeca/apps/Discover/control/baseline_update.sh 24 | /appl/endeca/apps/Discover/control/promote_content.sh 25 | -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/modsudoers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ ! -z "$1" ]; then 4 | echo "endeca ALL=(ALL) ALL" >> $1 5 | else 6 | export EDITOR=$0 7 | visudo 8 | fi -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 'Adding endeca user' 4 | useradd -p $(openssl passwd -1 endeca) endeca 5 | 6 | source ./modsudoers.sh -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/setup2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo 'ENDECA_MDEX_ROOT=/appl/endeca/MDEX/6.4.0' >> /home/endeca/.bashrc 3 | echo 'export ENDECA_MDEX_ROOT' >> /home/endeca/.bashrc 4 | echo 'PATH=$ENDECA_MDEX_ROOT/bin:$PATH' >> /home/endeca/.bashrc 5 | echo 'export PATH' >> /home/endeca/.bashrc 6 | source /home/endeca/.bashrc -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/setup3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cat /appl/endeca/PlatformServices/workspace/setup/installer_sh.ini >> /home/endeca/.bashrc 4 | source /home/endeca/.bashrc 5 | -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/setup4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 'ENDECA_TOOLS_ROOT=/appl/endeca/ToolsAndFrameworks/3.1.1/' >> /home/endeca/.bashrc 4 | echo 'ENDECA_TOOLS_CONF=/appl/endeca/ToolsAndFrameworks/3.1.1/server/workspace' >> /home/endeca/.bashrc 5 | source /home/endeca/.bashrc -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/setup5.sh: -------------------------------------------------------------------------------- 1 | echo "" > /appl/endeca/ToolsAndFrameworks/3.1.1/server/workspace/conf/Standalone/localhost/relrankEvaluator.xml -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/shutdown.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENDECA_LOCAL_ROOT="/appl/endeca" 4 | $ENDECA_LOCAL_ROOT/PlatformServices/6.1.3/tools/server/bin/shutdown.sh 5 | $ENDECA_LOCAL_ROOT/CAS/3.1.1/bin/cas-service-shutdown.sh 6 | $ENDECA_LOCAL_ROOT/ToolsAndFrameworks/3.1.1/server/bin/shutdown.sh -------------------------------------------------------------------------------- /endeca-3.1.1/scripts/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENDECA_LOCAL_ROOT="/appl/endeca" 4 | $ENDECA_LOCAL_ROOT/PlatformServices/6.1.3/tools/server/bin/startup.sh 5 | $ENDECA_LOCAL_ROOT/CAS/3.1.1/bin/cas-service.sh & 6 | $ENDECA_LOCAL_ROOT/ToolsAndFrameworks/3.1.1/server/bin/startup.sh -------------------------------------------------------------------------------- /endeca-3.1.1/tools/cas-silent.txt: -------------------------------------------------------------------------------- 1 | 8500 2 | 8506 3 | localhost -------------------------------------------------------------------------------- /endeca-3.1.1/tools/platformservices-silent.txt: -------------------------------------------------------------------------------- 1 | 8888 2 | 8090 3 | 8088 4 | Y 5 | /appl/endeca/MDEX/6.4.0 6 | Y -------------------------------------------------------------------------------- /endeca-3.1.1/tools/ws-extensions.xml: -------------------------------------------------------------------------------- 1 | 2 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /endeca-3.1.1/tools/ws-mainMenu.xml: -------------------------------------------------------------------------------- 1 | 2 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /endeca-3.1.2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tutum/centos:centos6 2 | MAINTAINER Eric Stiles 3 | 4 | ####################################### 5 | # install necessary OS packages 6 | RUN yum -y install which && \ 7 | yum -y install libaio && \ 8 | yum -y install glibc.i686 && \ 9 | yum -y install sudo && \ 10 | yum -y install tar && \ 11 | yum -y install unzip.x86_64 12 | 13 | ####################################### 14 | # environment variables 15 | 16 | # user information 17 | ENV USER endeca 18 | ENV USER_HOME_DIR /home/$USER 19 | 20 | # environment variable for local location 21 | ENV LOCAL_SCRIPTS scripts 22 | ENV LOCAL_TOOLS tools 23 | 24 | # environment variables for installables 25 | ENV BASE_TMP_INSTALL /tmp 26 | ENV BASE_TMP_ENDECA_INSTALL $BASE_TMP_INSTALL/endeca 27 | ENV BASE_TMP_PACKAGE_INSTALL $BASE_TMP_ENDECA_INSTALL/packages 28 | 29 | # environment variables for endeca location 30 | ENV BASE_DIR /appl 31 | ENV BASE_ENDECA_DIR $BASE_DIR/endeca 32 | ENV SCRIPT_DIR $BASE_ENDECA_DIR/bin 33 | 34 | # platform services silent install specific env variables 35 | ENV ENDECA_HTTP_SERVICE_PORT 8888 36 | ENV ENDECA_HTTP_SERVICE_SHUTDOWN_PORT 8090 37 | ENV ENDECA_CONTROL_SYSTEM_JCD_PORT 8088 38 | ENV RUN_EAC_CONTROLLER Y 39 | ENV ENDECA_MDEX_INSTALL_DIR $BASE_ENDECA_DIR/MDEX/6.4.1.2 40 | ENV INSTALL_REF_APPS Y 41 | 42 | # CAS silent install specific env variables 43 | ENV CAS_PORT 8500 44 | ENV CAS_SHUTDOWN_PORT 8506 45 | ENV CAS_HOST localhost 46 | 47 | ####################################### 48 | # create directories for copying initial endeca packages 49 | RUN mkdir -p $BASE_TMP_PACKAGE_INSTALL && \ 50 | chmod -R 777 $BASE_TMP_ENDECA_INSTALL 51 | 52 | # directory for final install of endeca created as part of script directory 53 | RUN mkdir -p $SCRIPT_DIR 54 | RUN chmod -R 755 $SCRIPT_DIR 55 | 56 | ####################################### 57 | # Copy script that creates unique password for root and other scripts 58 | ADD $LOCAL_SCRIPTS/modsudoers.sh / 59 | ADD $LOCAL_SCRIPTS/setup*.sh / 60 | ADD $LOCAL_SCRIPTS/start.sh $SCRIPT_DIR/ 61 | ADD $LOCAL_SCRIPTS/shutdown.sh $SCRIPT_DIR/ 62 | ADD $LOCAL_SCRIPTS/captureEndecaLogs.sh $SCRIPT_DIR/ 63 | ADD $LOCAL_SCRIPTS/installDiscoverApp.sh $SCRIPT_DIR/ 64 | 65 | ####################################### 66 | # Set properties for scripts to be executable 67 | RUN chmod +x /*.sh 68 | RUN chmod +x $SCRIPT_DIR 69 | 70 | ####################################### 71 | #Run commands to create endeca user and modify sudoers 72 | RUN /setup.sh 73 | 74 | ####################################### 75 | # start copying across all endeca packages 76 | # 77 | #mdex_6.4.1.2.763315_x86_64pc-linux.sh 78 | #presAPI_6.4.1.2.763315_x86_64pc-linux.tgz 79 | ADD $LOCAL_TOOLS/V40319-01.zip $BASE_TMP_PACKAGE_INSTALL/V40319-01.zip 80 | 81 | #platformservices_614734339_x86_64pc-linux.sh 82 | ADD $LOCAL_TOOLS/V40324-01.zip $BASE_TMP_PACKAGE_INSTALL/V40324-01.zip 83 | 84 | #ToolsAndFrameworks 85 | ADD $LOCAL_TOOLS/V37716-01.zip $BASE_TMP_PACKAGE_INSTALL/V37716-01.zip 86 | 87 | #cas-3.1.2.1-x86_64pc-linux.RC2.sh 88 | ADD $LOCAL_TOOLS/V40311-01.zip $BASE_TMP_PACKAGE_INSTALL/V40311-01.zip 89 | 90 | #relevancy ranking tool 91 | #ADD $LOCAL_TOOLS/V31171-01.zip $BASE_TMP_PACKAGE_INSTALL/V31171-01.zip 92 | 93 | ####################################### 94 | # Unzip all packages to get install scripts and files 95 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V40319-01.zip -d $BASE_TMP_ENDECA_INSTALL && \ 96 | unzip $BASE_TMP_PACKAGE_INSTALL/V40324-01.zip -d $BASE_TMP_ENDECA_INSTALL && \ 97 | unzip $BASE_TMP_PACKAGE_INSTALL/V40311-01.zip -d $BASE_TMP_ENDECA_INSTALL 98 | #RUN unzip $BASE_TMP_PACKAGE_INSTALL/V35744-01.zip -d $BASE_TMP_ENDECA_INSTALL 99 | #RUN unzip $BASE_TMP_PACKAGE_INSTALL/V31171-01.zip -d $BASE_TMP_ENDECA_INSTALL 100 | 101 | # set permissions of scripts to run 102 | RUN chmod +x $BASE_TMP_INSTALL/**/*.sh 103 | 104 | ####################################### 105 | # MDEX INSTALLATION FOLLOWS 106 | RUN $BASE_TMP_ENDECA_INSTALL/mdex_6.4.1.2.763315_x86_64pc-linux.sh --target $BASE_DIR 107 | 108 | # copy mdex environment variables to .bashrc 109 | RUN /setup2.sh 110 | 111 | # set mdex environment variables for rest of install 112 | ENV ENDECA_MDEX_ROOT $BASE_ENDECA_DIR/MDEX/6.4.1.2 113 | ENV PATH $ENDECA_MDEX_ROOT/bin:$PATH 114 | 115 | ####################################### 116 | # PLATFORM INSTALLATION FOLLOWS 117 | 118 | #create silent install text file 119 | RUN echo $ENDECA_HTTP_SERVICE_PORT > $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt && \ 120 | echo $ENDECA_HTTP_SERVICE_SHUTDOWN_PORT >> $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt && \ 121 | echo $ENDECA_CONTROL_SYSTEM_JCD_PORT >> $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt && \ 122 | echo $RUN_EAC_CONTROLLER >> $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt && \ 123 | echo $ENDECA_MDEX_INSTALL_DIR >> $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt && \ 124 | echo $INSTALL_REF_APPS >> $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt 125 | 126 | # install platform services 127 | RUN $BASE_TMP_ENDECA_INSTALL/platformservices_614734339_x86_64pc-linux.sh --silent --target $BASE_DIR < $BASE_TMP_ENDECA_INSTALL/platformservices-silent.txt 128 | 129 | RUN cat $BASE_ENDECA_DIR/PlatformServices/workspace/setup/installer_sh.ini >> $USER_HOME_DIR/.bashrc 130 | RUN source $USER_HOME_DIR/.bashrc 131 | 132 | #RUN SETUP 133 | 134 | # set platform services variables for rest of install 135 | ENV VERSION 6.1.4 136 | ENV BUILD_VERSION 6.1.4.734339 137 | ENV ARCH_OS x86_64pc-linux 138 | ENV PRODUCT IAP 139 | ENV ENDECA_INSTALL_BASE $BASE_DIR 140 | ENV ENDECA_ROOT $BASE_ENDECA_DIR/PlatformServices/6.1.4 141 | ENV PERLLIB $ENDECA_ROOT/lib/perl:$ENDECA_ROOT/lib/perl/Control:$ENDECA_ROOT/perl/lib:$ENDECA_ROOT/perl/lib/site_perl:$PERLLIB 142 | ENV PERL5LIB $ENDECA_ROOT/lib/perl:$ENDECA_ROOT/lib/perl/Control:$ENDECA_ROOT/perl/lib:$ENDECA_ROOT/perl/lib/site_perl:$PERL5LIB 143 | ENV PATH $ENDECA_ROOT/bin:$ENDECA_ROOT/perl/bin:$ENDECA_ROOT/utilities:$PATH 144 | ENV ENDECA_CONF $BASE_ENDECA_DIR/PlatformServices/workspace 145 | 146 | # ENDECA_REFERENCE_DIR points to the directory the reference implementations 147 | # are installed in. It is not required to run any Endeca software. 148 | ENV ENDECA_REFERENCE_DIR $BASE_ENDECA_DIR/PlatformServices/reference 149 | 150 | ####################################### 151 | # TOOLS AND FRAMEWORKS INSTALLATION FOLLOWS 152 | RUN unzip $BASE_TMP_PACKAGE_INSTALL/V37716-01.zip -d $BASE_ENDECA_DIR 153 | 154 | # set tools and frameworks variables for rest of install 155 | ENV ENDECA_TOOLS_ROOT $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.2/ 156 | ENV ENDECA_TOOLS_CONF $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.2/server/workspace 157 | 158 | RUN echo 'ENDECA_TOOLS_ROOT=$BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.2/' >> $USER_HOME_DIR/.bashrc 159 | RUN echo 'ENDECA_TOOLS_CONF=$BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.2/server/workspace' >> $USER_HOME_DIR/.bashrc 160 | RUN source $USER_HOME_DIR/.bashrc 161 | 162 | ####################################### 163 | # CAS INSTALLATION FOLLOWS 164 | 165 | #create silent install text file 166 | RUN echo $CAS_PORT > $BASE_TMP_ENDECA_INSTALL/cas-silent.txt && \ 167 | echo $CAS_SHUTDOWN_PORT >> $BASE_TMP_ENDECA_INSTALL/cas-silent.txt && \ 168 | echo $CAS_HOST >> $BASE_TMP_ENDECA_INSTALL/cas-silent.txt 169 | 170 | #install CAS 171 | RUN $BASE_TMP_ENDECA_INSTALL/cas-3.1.2.1-x86_64pc-linux.RC2.sh --silent --target $BASE_DIR < $BASE_TMP_ENDECA_INSTALL/cas-silent.txt 172 | 173 | ####################################### 174 | # 175 | # TODO TODO TODO TODO 176 | # 177 | # install relevancy evaluator 178 | #RUN mv /tmp/endeca/Endeca/Solutions $BASE_ENDECA_DIR 179 | 180 | #RUN cp $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.1/assembler/lib/endeca_navigation-6.4.0.jar $BASE_ENDECA_DIR/Solutions/relrankEvaluator-2.1.2/relrankEvaluator/WEB-INF/lib/endeca_navigation.jar 181 | 182 | # write context into relrankEvaluator.xml file 183 | #RUN /setup5.sh 184 | 185 | # place correct extensions file 186 | #ADD tools/ws-extensions.xml $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.1/server/workspace/conf/ws-extensions.xml 187 | 188 | # place correct menu items 189 | #ADD tools/ws-mainMenu.xml $BASE_ENDECA_DIR/ToolsAndFrameworks/3.1.1/server/workspace/conf/ws-mainMenu.xml 190 | 191 | ####################################### 192 | # create apps directory 193 | RUN mkdir $BASE_ENDECA_DIR/apps 194 | 195 | ####################################### 196 | # set user and permissions to endeca 197 | RUN chown -R endeca.endeca $BASE_ENDECA_DIR/ 198 | RUN chmod -R 755 $BASE_ENDECA_DIR/ 199 | 200 | ####################################### 201 | # install is done start cleanup to remove initial packages 202 | RUN rm -rf $BASE_TMP_ENDECA_INSTALL 203 | RUN rm /setup*.sh 204 | 205 | ENV AUTHORIZED_KEYS **None** 206 | 207 | EXPOSE 22 208 | CMD ["/run.sh"] -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/captureEndecaLogs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | function explain(){ 4 | echo "Aggregate all Endeca logs to a single output stream that have been touched since a given time period. Can > the stream to a file." 5 | echo " " 6 | echo "Usage:" 7 | echo " ./captureLogs.sh [directory] [time(minutes] [number of lines to tail]" 8 | echo " " 9 | echo " -d directory is a recursive search" 10 | echo " -m follows standard find logic" 11 | echo " -n number of lines to tail" 12 | echo " -h help" 13 | } 14 | 15 | #$1 - directory to search 16 | #$2 - time in minutes to check for file changes 17 | C="=" 18 | function separator (){ 19 | SEPARATOR="" 20 | i=1 21 | LENGTH=50 22 | if [ ! -z "$1" ]; then 23 | LENGTH=$1 24 | fi 25 | while [ "$i" -le "$LENGTH" ] 26 | do 27 | SEPARATOR=$SEPARATOR$C 28 | i=$(($i + 1)); 29 | done 30 | echo $SEPARATOR; 31 | } 32 | if [ "-h" = "$1" -o "$#" = 0 ]; then 33 | explain; 34 | exit 0; 35 | fi 36 | 37 | FILES=$( find $1 -mmin $2 \( -iname "*log*.*" -or -iname "*.log" -or -iname "*.out" \) -and \( ! -iname "*.dat" -and ! -iname "*.lck" -and ! -iname "*.ctrl" \) ); 38 | 39 | echo $FILES 40 | 41 | separator; 42 | echo "--> BEGINING AGGREGATION <--" 43 | separator; 44 | 45 | for i in $FILES 46 | do 47 | echo $i 48 | done 49 | separator; 50 | for i in $FILES 51 | do 52 | echo $i 53 | tail -n$3 $i 54 | echo " " 55 | separator; 56 | done 57 | 58 | -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/installDiscoverApp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Install Discover App with some tweaks 4 | # 5 | 6 | INTERNAL_IP=192.168.59.103 7 | 8 | # deploy app 9 | /appl/endeca/ToolsAndFrameworks/3.1.1/deployment_template/bin/deploy.sh --app /appl/endeca/ToolsAndFrameworks/3.1.1/reference/discover-data/deploy.xml 10 | 11 | # change logging level to see everything 12 | sed -i 's/\(INFO\|WARNING\|CONFIG\)/ALL/g' /appl/endeca/apps/Discover/config/script/logging.properties 13 | 14 | 15 | # change host to IP address 16 | HOST=`head -1 /etc/hosts | cut -f2` 17 | grep $HOST -rl . | xargs sed -i "s/$HOST/1$INTERNAL_IP/g" 18 | 19 | #check if services are running 20 | 21 | /appl/endeca/apps/Discover/control/initialize_services.sh 22 | /appl/endeca/apps/Discover/control/load_baseline_test_data.sh 23 | /appl/endeca/apps/Discover/control/baseline_update.sh 24 | /appl/endeca/apps/Discover/control/promote_content.sh 25 | -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/modsudoers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ ! -z "$1" ]; then 4 | echo "endeca ALL=(ALL) ALL" >> $1 5 | else 6 | export EDITOR=$0 7 | visudo 8 | fi -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 'Adding endeca user' 4 | useradd -p $(openssl passwd -1 endeca) endeca 5 | 6 | source ./modsudoers.sh -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/setup2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo 'ENDECA_MDEX_ROOT=/appl/endeca/MDEX/6.4..1.2' >> /home/endeca/.bashrc 3 | echo 'export ENDECA_MDEX_ROOT' >> /home/endeca/.bashrc 4 | echo 'PATH=$ENDECA_MDEX_ROOT/bin:$PATH' >> /home/endeca/.bashrc 5 | echo 'export PATH' >> /home/endeca/.bashrc 6 | source /home/endeca/.bashrc -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/setup3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cat /appl/endeca/PlatformServices/workspace/setup/installer_sh.ini >> /home/endeca/.bashrc 4 | source /home/endeca/.bashrc 5 | -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/setup4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 'ENDECA_TOOLS_ROOT=/appl/endeca/ToolsAndFrameworks/3.1.1/' >> /home/endeca/.bashrc 4 | echo 'ENDECA_TOOLS_CONF=/appl/endeca/ToolsAndFrameworks/3.1.1/server/workspace' >> /home/endeca/.bashrc 5 | source /home/endeca/.bashrc -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/setup5.sh: -------------------------------------------------------------------------------- 1 | echo "" > /appl/endeca/ToolsAndFrameworks/3.1.1/server/workspace/conf/Standalone/localhost/relrankEvaluator.xml -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/shutdown.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENDECA_LOCAL_ROOT="/appl/endeca" 4 | $ENDECA_LOCAL_ROOT/PlatformServices/6.1.3/tools/server/bin/shutdown.sh 5 | $ENDECA_LOCAL_ROOT/CAS/3.1.1/bin/cas-service-shutdown.sh 6 | $ENDECA_LOCAL_ROOT/ToolsAndFrameworks/3.1.1/server/bin/shutdown.sh -------------------------------------------------------------------------------- /endeca-3.1.2/scripts/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENDECA_LOCAL_ROOT="/appl/endeca" 4 | $ENDECA_LOCAL_ROOT/PlatformServices/6.1.3/tools/server/bin/startup.sh 5 | $ENDECA_LOCAL_ROOT/CAS/3.1.1/bin/cas-service.sh & 6 | $ENDECA_LOCAL_ROOT/ToolsAndFrameworks/3.1.1/server/bin/startup.sh -------------------------------------------------------------------------------- /endeca-3.1.2/tools/ws-extensions.xml: -------------------------------------------------------------------------------- 1 | 2 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /endeca-3.1.2/tools/ws-mainMenu.xml: -------------------------------------------------------------------------------- 1 | 2 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /jboss-eap-5.1.2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tutum/centos:centos5 2 | MAINTAINER Gary Deer 3 | 4 | ####################################### 5 | # install necessary OS packages 6 | RUN yum -y install wget && \ 7 | yum -y install sudo && \ 8 | yum -y install unzip 9 | 10 | ####################################### 11 | # environment variables 12 | # 13 | 14 | # user information 15 | #ENV USER svc_jboss 16 | #ENV USER_HOME_DIR /home/$USER 17 | 18 | # environment variable for local location 19 | ENV LOCAL_SCRIPTS scripts 20 | ENV LOCAL_TOOLS tools 21 | 22 | # environment variables for installables 23 | ENV BASE_TMP_INSTALL /tmp 24 | 25 | # environment variables for install location 26 | ENV BASE_DIR /appl 27 | 28 | ####################################### 29 | # create directories 30 | RUN mkdir $BASE_DIR 31 | RUN chmod 777 $BASE_DIR 32 | 33 | ####################################### 34 | # create user 35 | 36 | #Doesn't seem to work in docker 37 | #RUN useradd -p $(openssl passwd -1 $USER) $USER 38 | #RUN useradd -p '$1$G/7MztKx$k7Kfi52IKw4g9ZWsN/oYM.' $USER 39 | #RUN useradd -p testing $USER 40 | 41 | ADD $LOCAL_SCRIPTS/modsudoers.sh $BASE_TMP_INSTALL/modsudoers.sh 42 | 43 | # provide sudoers access to user 44 | RUN source $BASE_TMP_INSTALL/modsudoers.sh 45 | 46 | ####################################### 47 | # Download java from Oracle 48 | ENV JDK_URL http://download.oracle.com/otn-pub/java/jdk/6u38-b05/jdk-6u38-linux-x64-rpm.bin 49 | RUN wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" -P /tmp $JDK_URL 50 | RUN chmod a+x $BASE_TMP_INSTALL/jdk-6u38-linux-x64-rpm.bin* 51 | 52 | # Install jdk. home is /usr/java/jdk1.6.0_38/ 53 | RUN $BASE_TMP_INSTALL/jdk-6u38-linux-x64-rpm.bin* 54 | 55 | ####################################### 56 | # Install JBoss 57 | # 58 | # Add jboss package to container 59 | ADD $LOCAL_TOOLS/jboss-eap-5.1.2.zip $BASE_TMP_INSTALL/jboss-eap-5.1.2.zip 60 | 61 | # Unzip server to location 62 | RUN unzip -q $BASE_TMP_INSTALL/jboss-eap-5.1.2.zip -d $BASE_DIR 63 | 64 | # Create simple link for ease of use 65 | RUN ln -s $BASE_DIR/jboss-eap-5.1.2 $BASE_DIR/jboss 66 | 67 | RUN chown -R $USER:$USER $BASE_DIR 68 | 69 | ####################################### 70 | # Cleanup 71 | RUN rm -rf $BASE_TMP_INSTALL/* 72 | 73 | # Can delete yum installs but am not doing it for standards tools 74 | # used across images 75 | #RUN yum -y remove wget 76 | 77 | ####################################### 78 | # DONE 79 | 80 | ENV AUTHORIZED_KEYS **None** 81 | 82 | EXPOSE 22 83 | EXPOSE 8080 84 | 85 | CMD ["/run.sh"] 86 | 87 | 88 | -------------------------------------------------------------------------------- /jboss-eap-5.1.2/scripts/modsudoers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | USER=svc_jboss 4 | 5 | useradd -p $(openssl passwd -1 $USER) $USER 6 | 7 | if [ ! -z "$1" ]; then 8 | echo "$USER ALL=(ALL) ALL" >> $1 9 | else 10 | export EDITOR=$0 11 | visudo 12 | fi -------------------------------------------------------------------------------- /jboss-eap-5.1.2/scripts/shutdown.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericstiles/OracleCommerceOnDocker/6972d9e078cc7123546500d9479f4018090f4c25/jboss-eap-5.1.2/scripts/shutdown.sh -------------------------------------------------------------------------------- /jboss-eap-5.1.2/scripts/start.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | /appl/jboss-eap-5.1/jboss-as/bin/run.sh -c web -b 0.0.0.0 -------------------------------------------------------------------------------- /jboss-eap-5.1.2/tools/README.md: -------------------------------------------------------------------------------- 1 | This is the folder location for the necessary files to create the jboss-eap-5.1.2 container. 2 | -------------------------------------------------------------------------------- /oc-11.1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tutum/centos:centos6 2 | MAINTAINER Eric Stiles 3 | 4 | #WORKDIR /tmp/ 5 | 6 | ####################################### 7 | # 8 | # folders located outside the container to get necessary dependencies 9 | # 10 | ENV REMOTE_PACKAGES_PATH installables 11 | ENV REMOTE_SCRIPTS_PATH scripts 12 | ENV REMOTE_SUPPORTS_PATH support 13 | 14 | # folders for copying dependencies into initially 15 | ENV BASE_CONTAINER_TMP_PATH /tmp/endeca 16 | ENV BASE_CONTAINER_PACKAGES_PATH $BASE_CONTAINER_TMP_PATH/packages 17 | 18 | # folders for final installation of endeca programs 19 | ENV BASE_INSTALL_PATH /opt 20 | ENV BASE_ENDECA_PATH $BASE_INSTALL_PATH/endeca 21 | ENV BASE_INSTALL_CUSTOM_SCRIPT_PATH $BASE_ENDECA_PATH/bin 22 | 23 | ####################################### 24 | # install necessary OS packages 25 | RUN yum -y install openssh-server epel-release && \ 26 | yum -y install openssh-clients && \ 27 | yum -y install wget && \ 28 | yum -y install nc && \ 29 | yum -y install sudo && \ 30 | yum -y install which && \ 31 | yum -y install libaio && \ 32 | yum -y install pwgen && \ 33 | yum -y install glibc.i686 && \ 34 | yum -y install unzip.x86_64 && \ 35 | yum -y install tar && \ 36 | rm -f /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_rsa_key && \ 37 | ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_ecdsa_key && \ 38 | ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key && \ 39 | sed -i "s/#UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config && \ 40 | sed -i "s/UsePAM.*/UsePAM yes/g" /etc/ssh/sshd_config 41 | 42 | ####################################### 43 | # create directories for copying initial endeca packages 44 | RUN mkdir -p $BASE_CONTAINER_PACKAGES_PATH 45 | RUN chmod -R 755 $BASE_CONTAINER_TMP_PATH 46 | 47 | # directory for final install of endeca 48 | RUN mkdir -p $BASE_INSTALL_CUSTOM_SCRIPT_PATH 49 | #RUN chmod 755 /opt/endeca/bin/*.sh 50 | 51 | ####################################### 52 | # start copying across all endeca packages 53 | # 54 | #OCplatformservices11.1.0-Linux64.bin 55 | ADD $REMOTE_PACKAGES_PATH/V45999-01.zip $BASE_CONTAINER_PACKAGES_PATH/V45999-01.zip 56 | 57 | #OCmdex6.5.1-Linux64_829811.sh 58 | ADD $REMOTE_PACKAGES_PATH/V46002-01.zip $BASE_CONTAINER_PACKAGES_PATH/V46002-01.zip 59 | 60 | # Tools And Frameworks 61 | ADD $REMOTE_PACKAGES_PATH/V46389-01.zip $BASE_CONTAINER_PACKAGES_PATH/V46389-01.zip 62 | 63 | ####################################### 64 | # Copy script that creates unique password for root and other scripts 65 | ADD $REMOTE_SCRIPTS_PATH/setupEndecaUser.sh $BASE_CONTAINER_TMP_PATH/setupEndecaUser.sh 66 | RUN chmod +x $BASE_CONTAINER_TMP_PATH/setupEndecaUser.sh 67 | 68 | ####################################### 69 | # Copy silent install scripts 70 | ADD $REMOTE_SUPPORTS_PATH/platformservices-silent.txt $BASE_CONTAINER_TMP_PATH/platformservices-silent.txt 71 | 72 | ####################################### 73 | #Run commands to create endeca user and modify sudoers 74 | RUN $BASE_CONTAINER_TMP_PATH/setupEndecaUser.sh 75 | 76 | ####################################### 77 | # Unzip all packages to get install scripts and files 78 | RUN unzip $BASE_CONTAINER_PACKAGES_PATH/V45999-01.zip -d $BASE_CONTAINER_TMP_PATH 79 | RUN unzip $BASE_CONTAINER_PACKAGES_PATH/V46002-01.zip -d $BASE_CONTAINER_TMP_PATH 80 | RUN unzip $BASE_CONTAINER_PACKAGES_PATH/V46389-01.zip -d $BASE_CONTAINER_TMP_PATH 81 | 82 | ####################################### 83 | # Set scripts to be executable 84 | RUN chmod +x $BASE_CONTAINER_TMP_PATH/* 85 | 86 | ####################################### 87 | # Install mdex 6.5.1 88 | RUN $BASE_CONTAINER_TMP_PATH/OCmdex6.5.1-Linux64_829811.sh --silent --target $BASE_INSTALL_PATH 89 | 90 | RUN touch /home/endeca/.bashrc 91 | RUN cat $BASE_INSTALL_PATH/endeca/MDEX/6.5.1/mdex_setup_sh.ini >> /home/endeca/.bashrc 92 | RUN source /home/endeca/.bashrc 93 | 94 | # Variables needed to install other applications. List comes from previous mdex_setup_sh.ini script 95 | ENV ENDECA_MDEX_ROOT=/opt/endeca/endeca/MDEX/6.5.1 96 | 97 | ####################################### 98 | # Install platform services 99 | # 100 | #OCplatformservices11.1.0-Linux64.bin 101 | RUN $BASE_CONTAINER_TMP_PATH/OCplatformservices11.1.0-Linux64.bin --silent --target $BASE_INSTALL_PATH < $BASE_CONTAINER_TMP_PATH/platformservices-silent.txt 102 | 103 | RUN cat $BASE_INSTALL_PATH/endeca/PlatformServices/workspace/setup/installer_sh.ini >> /home/endeca/.bashrc 104 | #RUN source /home/endeca/.bashrc 105 | 106 | #RUN cat $BASE_INSTALL_PATH/endeca/PlatformServices/workspace/setup/installer_sh.ini 107 | 108 | # Variables needed to install other applications. List comes from previous mdex_setup_sh.ini script 109 | ENV VERSION=11.1.0 110 | ENV BUILD_VERSION=11.1.0.842407 111 | ENV ARCH_OS=x86_64pc-linux 112 | ENV PRODUCT=IAP 113 | ENV ENDECA_INSTALL_BASE=/opt 114 | 115 | # Environment variables required to run the Endeca Platform Services software. 116 | ENV ENDECA_ROOT=/opt/endeca/PlatformServices/11.1.0 117 | ENV PERLLIB=$ENDECA_ROOT/lib/perl:$ENDECA_ROOT/lib/perl/Control:$ENDECA_ROOT/perl/lib:$ENDECA_ROOT/perl/lib/site_perl:$PERLLIB 118 | ENV PERL5LIB=$ENDECA_ROOT/lib/perl:$ENDECA_ROOT/lib/perl/Control:$ENDECA_ROOT/perl/lib:$ENDECA_ROOT/perl/lib/site_perl:$PERL5LIB 119 | ENV ENDECA_CONF=/opt/endeca/PlatformServices/workspace 120 | 121 | # ENDECA_REFERENCE_DIR points to the directory the reference implementations 122 | # are installed in. It is not required to run any Oracle Commerce software. 123 | ENV ENDECA_REFERENCE_DIR=/opt/endeca/PlatformServices/reference 124 | 125 | ####################################### 126 | # install Tools and Frameworks 127 | # 128 | # set prerequisite environment variables. 129 | #ENV ENDECA_TOOLS_ROOT /usr/local/endeca/ToolsAndFrameworks/ 130 | #ENV ENDECA_TOOLS_CONF /usr/local/endeca/ToolsAndFrameworks//server/workspace 131 | 132 | #RUN dd if=/dev/zero of=/swapfile bs=1M count=1024 133 | #RUN mkswap /swapfile 134 | #RUN chown root:root /swapfile 135 | #RUN chmod 0600 /swapfile 136 | #RUN swapon /swapfile 137 | #RUN /swapfile swap swap defaults 0 0 138 | 139 | #RUN free -m 140 | 141 | #RUN chown -R endeca.endeca $ENDECA_INSTALL_BASE 142 | 143 | 144 | #Tools And Frameworks install 145 | RUN chmod -R 777 $BASE_INSTALL_PATH 146 | USER endeca 147 | RUN $BASE_CONTAINER_TMP_PATH/cd/Disk1/install/silent_install.sh $BASE_CONTAINER_TMP_PATH/cd/Disk1/install/silent_response.rsp ToolsAndFrameworks-ets $BASE_INSTALL_PATH/ToolsAndFrameworks-ets2 admin 148 | 149 | 150 | 151 | ############################################################################# 152 | 153 | 154 | #ADD scripts/setup*.sh / 155 | #ADD scripts/start.sh /appl/endeca/bin/ 156 | #ADD scripts/shutdown.sh /appl/endeca/bin/ 157 | #ADD scripts/captureEndecaLogs.sh /appl/endeca/bin/ 158 | #ADD scripts/installDiscoverApp.sh /appl/endeca/bin/ 159 | 160 | ####################################### 161 | # Set properties for scripts to be executable 162 | #RUN chmod +x /*.sh 163 | #RUN chmos +x /appl/endeca/bin/ 164 | 165 | 166 | 167 | 168 | 169 | #text file used for silent install of platform services 170 | #ADD tools/platformservices-silent.txt /tmp/endeca/platformservices-silent.txt 171 | 172 | #cas-3.1.1-x86_64pc-linux.sh 173 | #ADD tools/V35739-01.zip /tmp/endeca/packages/V35739-01.zip 174 | 175 | #text file used or silent install of platform services 176 | #ADD tools/cas-silent.txt /tmp/endeca/cas-silent.txt 177 | 178 | #gs_3.1.1.6904_linux.zip 179 | #ADD tools/V35740-01.zip /tmp/endeca/packages/V35740-01.zip 180 | 181 | #mdex_6.4.0.692722_x86_64pc-linux.sh 182 | #presAPI_6.4.0.692722_x86_64pc-linux.tgz 183 | #ADD tools/V35742-01.zip /tmp/endeca/packages/V35742-01.zip 184 | 185 | #xmgr_3.1.1.6904_linux.zip 186 | #ADD tools/V35744-01.zip /tmp/endeca/packages/V35744-01.zip 187 | 188 | #relevancy ranking tool 189 | #ADD tools/V31171-01.zip /tmp/endeca/packages/V31171-01.zip 190 | 191 | ####################################### 192 | # Unzip all packages to get install scripts and files 193 | #RUN unzip /tmp/endeca/packages/V45999-01.zip -d /tmp/endeca 194 | #RUN unzip /tmp/endeca/packages/V35739-01.zip -d /tmp/endeca 195 | #RUN unzip /tmp/endeca/packages/V35740-01.zip -d /tmp/endeca 196 | #RUN unzip /tmp/endeca/packages/V35742-01.zip -d /tmp/endeca 197 | #RUN unzip /tmp/endeca/packages/V35744-01.zip -d /tmp/endeca 198 | #RUN unzip /tmp/endeca/packages/V31171-01.zip -d /tmp/endeca 199 | 200 | # set permissions of scripts to run 201 | #RUN chmod +x /tmp/**/*.sh 202 | 203 | ####################################### 204 | # install mdex 205 | #RUN /tmp/endeca/mdex_6.4.0.692722_x86_64pc-linux.sh --target /appl 206 | 207 | # copy mdex environment variables to .bashrc 208 | #RUN /setup2.sh 209 | 210 | # set mdex environment variables for rest of install 211 | #ENV ENDECA_MDEX_ROOT=/appl/endeca/MDEX/6.4.0 212 | #ENV PATH=$ENDECA_MDEX_ROOT/bin:$PATH 213 | 214 | ####################################### 215 | # install platform services 216 | #RUN /tmp/endeca/platformservices_613654721_x86_64pc-linux.sh --silent --target /appl < /tmp/endeca/platformservices-silent.txt 217 | 218 | # copy platform services environment variables to .bashrc 219 | #RUN /setup3.sh 220 | 221 | # set platform services variables for rest of install 222 | #ENV VERSION=6.1.3 223 | #ENV BUILD_VERSION=6.1.3.654721 224 | #ENV ARCH_OS=x86_64pc-linux 225 | #ENV PRODUCT=IAP 226 | #ENV ENDECA_INSTALL_BASE=/appl 227 | #ENV ENDECA_ROOT=/appl/endeca/PlatformServices/6.1.3 228 | #ENV PERLLIB=$ENDECA_ROOT/lib/perl:$ENDECA_ROOT/lib/perl/Control:$ENDECA_ROOT/perl/lib:$ENDECA_ROOT/perl/lib/site_perl:$PERLLIB 229 | #ENV PERL5LIB=$ENDECA_ROOT/lib/perl:$ENDECA_ROOT/lib/perl/Control:$ENDECA_ROOT/perl/lib:$ENDECA_ROOT/perl/lib/site_perl:$PERL5LIB 230 | #ENV PATH=$ENDECA_ROOT/bin:$ENDECA_ROOT/perl/bin:$ENDECA_ROOT/utilities:$PATH 231 | #ENV ENDECA_CONF=/appl/endeca/PlatformServices/workspace 232 | 233 | # ENDECA_REFERENCE_DIR points to the directory the reference implementations 234 | # are installed in. It is not required to run any Endeca software. 235 | #ENV ENDECA_REFERENCE_DIR=/appl/endeca/PlatformServices/reference 236 | 237 | ####################################### 238 | # install Tools and Frameworks 239 | # 240 | # unip ToolsAndFrameworks 241 | #RUN unzip /tmp/endeca/xmgr_3.1.1.6904_linux.zip -d /appl/endeca/ 242 | 243 | # copy tools and frameworks environment variables to .bashrc 244 | #RUN /setup4.sh 245 | 246 | # set tools and frameworks variables for rest of install 247 | #ENV ENDECA_TOOLS_ROOT=/appl/endeca/ToolsAndFrameworks/3.1.1/ 248 | #ENV ENDECA_TOOLS_CONF=/appl/endeca/ToolsAndFrameworks/3.1.1/server/workspace 249 | #echo 'ENDECA_TOOLS_ROOT=/appl/endeca/ToolsAndFrameworks/3.1.1/' >> /home/endeca/.bashrc 250 | #echo 'ENDECA_TOOLS_CONF=/appl/endeca/ToolsAndFrameworks/3.1.1/server/workspace' >> /home/endeca/.bashrc 251 | 252 | ####################################### 253 | # install CAS 254 | #RUN /tmp/endeca/cas-3.1.1-x86_64pc-linux.sh --silent --target /appl < /tmp/endeca/cas-silent.txt 255 | 256 | ####################################### 257 | # install relevancy evaluator 258 | #RUN mv /tmp/endeca/Endeca/Solutions /appl/endeca 259 | 260 | #RUN cp /appl/endeca/ToolsAndFrameworks/3.1.1/assembler/lib/endeca_navigation-6.4.0.jar /appl/endeca/Solutions/relrankEvaluator-2.1.2/relrankEvaluator/WEB-INF/lib/endeca_navigation.jar 261 | 262 | # write context into relrankEvaluator.xml file 263 | #RUN /setup5.sh 264 | 265 | # place correct extensions file 266 | #ADD tools/ws-extensions.xml /appl/endeca/ToolsAndFrameworks/3.1.1/server/workspace/conf/ws-extensions.xml 267 | 268 | # place correct menu items 269 | #ADD tools/ws-mainMenu.xml /appl/endeca/ToolsAndFrameworks/3.1.1/server/workspace/conf/ws-mainMenu.xml 270 | 271 | ####################################### 272 | # create apps directory 273 | #RUN mkdir /appl/endeca/apps 274 | 275 | ####################################### 276 | # set user and permissions to endeca 277 | #RUN chown -R endeca.endeca /appl/endeca/ 278 | 279 | ####################################### 280 | # install is done start cleanup to remove initial packages 281 | #RUN rm -rf /tmp/endeca 282 | ##RUN rm setup*.sh 283 | 284 | #RUN printenv 285 | 286 | #ENV AUTHORIZED_KEYS **None** 287 | 288 | #EXPOSE 22 289 | USER root 290 | CMD ["/run.sh"] 291 | -------------------------------------------------------------------------------- /oc-11.1/scripts/setupEndecaUser.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #echo 'Adding grpEndeca' 4 | 5 | #groupadd grpEndeca 6 | 7 | echo 'Adding endeca user' 8 | #useradd endeca 9 | #passwd endeca 10 | useradd -p $(openssl passwd -1 endeca) -g grpEndeca endeca2 11 | 12 | 13 | if [ ! -z "$1" ]; then 14 | echo "endeca ALL=(ALL) ALL" >> $1 15 | else 16 | export EDITOR=$0 17 | visudo 18 | fi -------------------------------------------------------------------------------- /oc-11.1/support/platformservices-silent.txt: -------------------------------------------------------------------------------- 1 | 8888 2 | 8090 3 | Y 4 | /usr/local/endeca/MDEX/6.5.1 5 | Y -------------------------------------------------------------------------------- /oracle-enterprise-11.2.0.4/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tutum/centos:centos5 2 | MAINTAINER Eric Stiles 3 | 4 | ####################################### 5 | # install necessary OS packages 6 | RUN yum -y install wget && \ 7 | yum -y install sudo && \ 8 | yum -y install unzip 9 | 10 | ####################################### 11 | # environment variables 12 | # 13 | 14 | # user information 15 | #ENV USER svc_oracle 16 | #ENV USER_HOME_DIR /home/$USER 17 | 18 | # environment variable for local location 19 | ENV LOCAL_SCRIPTS scripts 20 | ENV LOCAL_TOOLS tools 21 | 22 | # environment variables for installables 23 | ENV BASE_TMP_INSTALL /tmp 24 | 25 | # environment variables for install location 26 | ENV BASE_DIR /appl 27 | 28 | ####################################### 29 | # create directories 30 | RUN mkdir $BASE_DIR 31 | RUN chmod 777 $BASE_DIR 32 | 33 | ####################################### 34 | # create user 35 | 36 | ADD $LOCAL_SCRIPTS/modsudoers.sh $BASE_TMP_INSTALL/modsudoers.sh 37 | 38 | # provide sudoers access to user 39 | RUN source $BASE_TMP_INSTALL/modsudoers.sh 40 | 41 | ####################################### 42 | # Copy Oracle files 43 | ADD $LOCAL_TOOLS/p13390677_112040_Linux-x86-64_1of7.zip $BASE_TMP_INSTALL/p13390677_112040_Linux-x86-64_1of7.zip 44 | ADD $LOCAL_TOOLS/p13390677_112040_Linux-x86-64_2of7.zip $BASE_TMP_INSTALL/p13390677_112040_Linux-x86-64_2of7.zip 45 | 46 | # Unzip server to location 47 | RUN unzip -q $BASE_TMP_INSTALL/p13390677_112040_Linux-x86-64_1of7.zip -d $BASE_DIR 48 | RUN unzip -q $BASE_TMP_INSTALL/p13390677_112040_Linux-x86-64_2of7.zip -d $BASE_DIR 49 | 50 | RUN chown -R $USER:$USER $BASE_DIR 51 | 52 | ####################################### 53 | # Cleanup 54 | RUN rm -rf $BASE_TMP_INSTALL/* 55 | 56 | # Can delete yum installs but am not doing it for standards tools 57 | # used across images 58 | #RUN yum -y remove wget 59 | 60 | ####################################### 61 | # DONE 62 | 63 | ENV AUTHORIZED_KEYS **None** 64 | 65 | EXPOSE 22 66 | EXPOSE 8080 67 | 68 | CMD ["/run.sh"] 69 | 70 | 71 | -------------------------------------------------------------------------------- /oracle-enterprise-11.2.0.4/scripts/modsudoers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | USER=svc_jboss 4 | 5 | useradd -p $(openssl passwd -1 $USER) $USER 6 | 7 | if [ ! -z "$1" ]; then 8 | echo "$USER ALL=(ALL) ALL" >> $1 9 | else 10 | export EDITOR=$0 11 | visudo 12 | fi -------------------------------------------------------------------------------- /oracle-xe/README: -------------------------------------------------------------------------------- 1 | The notes below were copied from alex eiled 2 | 3 | # Oracle xe install 4 | 5 | # Running Container 6 | 7 | Run with 22, 1521 and 8080 ports opened: 8 | 9 | docker run -d -p 49160:22 -p 49161:1521 -p 49162:8080 alexeiled/docker-oracle-xe-11g 10 | 11 | # Administration 12 | 13 | https://registry.hub.docker.com/u/alexeiled/docker-oracle-xe-11g/ 14 | 15 | Connect database with following setting: 16 | * hostname: localhost 17 | * port: 49161 18 | * sid: xe 19 | * username: system 20 | * password: oracle 21 | 22 | Password for SYS 23 | * oracle 24 | 25 | Connect to Oracle Application Express web management console with following settings: 26 | * url: http://localhost:49162/apex 27 | * workspace: INTERNAL 28 | * user: ADMIN 29 | * password: oracle 30 | 31 | Login by SSH 32 | * ssh root@localhost -p 49160 33 | * password: admin 34 | -------------------------------------------------------------------------------- /run-complete--environment.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | YML_FILE='./docker-compose.yml' 4 | 5 | # Need to start existing containers, otherwise create new. 6 | 7 | docker-compose -f $YML_FILE start 8 | 9 | --------------------------------------------------------------------------------