<commit_before>#cloud-config

packages:
- java-1.6.0-openjdk

runcmd:
 - [sh, -xc, "echo $(date) ': cloudinit runcmd begin'"]
 - [cd, /opt]
 - [wget, "http://nexus.sonatype.org/downloads/nexus-oss-webapp-1.9.2.2-bundle.tar.gz"]
 - [tar, xvfz, nexus-oss-webapp-1.9.2.2-bundle.tar.gz]
 - [cd, /etc/init.d]
 - [sh, -xc, "echo 'NEXUS_HOME=/opt/nexus-oss-webapp-1.9.2.2' >> nexus"]
 - [sh, -xc, "echo 'PLATFORM=linux-x86-32' >> nexus"]
 - [sh, -xc, "cat /opt/nexus-oss-webapp-1.9.2.2/bin/jsw/linux-x86-32/nexus >> nexus"]
 - [sed, -i, 's/PIDDIR=.*/PIDDIR=\/var\/run/', nexus]
 - [sed, -i, 's/WRAPPER_CMD=.*/WRAPPER_CMD=$\{NEXUS_HOME\}\/bin\/jsw\/$\{PLATFORM\}\/wrapper/', nexus]
 - [sed, -i, 's/WRAPPER_CONF=.*/WRAPPER_CONF=$\{NEXUS_HOME\}\/bin\/jsw\/conf\/wrapper\.conf/', nexus]
 - [chmod, 755, nexus]<commit_msg>Amazon Cloud Config for continuous deployment: improves Nexus script<commit_after>#cloud-config

packages:
- java-1.6.0-openjdk

runcmd:
 - [sh, -xc, "echo $(date) ': cloudinit runcmd begin'"]
 - [cd, /opt]
 - [wget, "http://nexus.sonatype.org/downloads/nexus-oss-webapp-1.9.2.2-bundle.tar.gz"]
 - [tar, xvfz, nexus-oss-webapp-1.9.2.2-bundle.tar.gz]
# see "Configuring Nexus as a Service": http://www.sonatype.com/books/nexus-book/reference/ch03s06.html
# TODO: create a user "nexus"
 - [sh, -xc, "echo 'NEXUS_HOME=/opt/nexus-oss-webapp-1.9.2.2' >> /etc/init.d/nexus"]
 - [sh, -xc, "echo 'PLATFORM=linux-x86-32' >> /etc/init.d/nexus"]
 - [sh, -xc, "cat /opt/nexus-oss-webapp-1.9.2.2/bin/jsw/linux-x86-32/nexus >> /etc/init.d/nexus"]
 - [sed, -i, 's/PIDDIR=.*/PIDDIR=\/var\/run/', /etc/init.d/nexus]
 - [sed, -i, 's/WRAPPER_CMD=.*/WRAPPER_CMD=$\{NEXUS_HOME\}\/bin\/jsw\/$\{PLATFORM\}\/wrapper/', /etc/init.d/nexus]
 - [sed, -i, 's/WRAPPER_CONF=.*/WRAPPER_CONF=$\{NEXUS_HOME\}\/bin\/jsw\/conf\/wrapper\.conf/', /etc/init.d/nexus]
 - [chmod, 755, /etc/init.d/nexus]
 - [cd, /etc/init.d]
{'fraction_non_alphanumeric': 0.2620179609086107, 'fraction_numerical': 0.03380876914949815, 'mean_word_length': 3.1626373626373625, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3396708', 'n_tokens_mistral': 951, 'n_tokens_neox': 905, 'n_words': 119}