Created
March 8, 2017 05:10
-
-
Save jorke/e45919724650603516c3c733ffa83426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
apt_update: true | |
apt_upgrade: false | |
apt_preserve_sources_list: true | |
packages: | |
- openjdk-7-jre-headless | |
- awscli | |
- git | |
- zip | |
- python | |
- nginx | |
write_files: | |
- content: | | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name localhost; | |
location / { | |
proxy_pass http://127.0.0.1:9000; | |
} | |
} | |
path: /etc/nginx/sites-enabled/default | |
runcmd: | |
- service nginx stop | |
- wget http://downloads.typesafe.com/releases/play-1.2.5.zip -P /opt | |
- unzip /opt/play-1.2.5.zip -d /opt | |
- cd /opt && git clone https://github.com/conveyal/gtfs-editor.git | |
- cd /opt/gtfs-editor && cp conf/application.conf.template conf/application.conf | |
- sed -i 's/# http.address=127.0.0.1/http.address=127.0.0.1/g' /opt/gtfs-editor/conf/application.conf | |
- sed -i 's/# http.port=9000/http.port=9000/g' /opt/gtfs-editor/conf/application.conf | |
- cd /opt/gtfs-editor && /opt/play-1.2.5/play dependencies | |
- cd /opt/gtfs-editor && /opt/play-1.2.5/play start | |
- service nginx start | |
output: {all: '| tee -a /var/log/cloud-init-output.log'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment