Skip to content

Instantly share code, notes, and snippets.

@edwardotis
edwardotis / 05-java-7-oraclejdk.config
Created April 11, 2016 10:37
Elastic Beanstalk / Java deployment -- Installing Oracle Java 7 via .ebextensions in your WAR file. This file should be in the src/main/webapp/.ebextensions directory of your WAR file, and Elastic Beanstalk will deploy Oracle Java 7 during configuration of the running node. The file is prefixed with "05-" to control the execution order of these …
commands:
00_download_jdk7:
command: wget --no-cookies --no-check-certificate --header "Cookie:gpw_e24=xxx" "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.rpm" -O /etc/tomcat7/jdk7-oracle.rpm
test: test ! -f /etc/tomcat7/oracle-jdk7-installed.txt
01_install_oracle_jdk7:
command: yum -y install jdk7-oracle.rpm
cwd: /etc/tomcat7
test: test ! -f /etc/tomcat7/oracle-jdk7-installed.txt
#!/usr/bin/env python
#
# Copyright 2012 by Jeff Laughlin Consulting LLC
#
# 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: