Skip to content

Instantly share code, notes, and snippets.

View rjerrems's full-sized avatar

Rohan Jerrems rjerrems

  • Sydney, Australia
View GitHub Profile
--gcs-location: gs://<INSERT_PATH_TO_TEMPLATE>
--subnetwork: https://www.googleapis.com/compute/v1/projects/<INSERT_PROJECT_HERE>/regions/<INSERT_REGION>/subnetworks/<INSERT_VPC_NAME>
--parameters:
inputLocations: >-
{"location1":"Path to file in GCS or BQ table name"}
outputLocations: >-
{"location1":"Path to file in GCS or BQ table name","location2":"gs://<INSERT_GCS_PATH_HERE>/.profiler/profilerTypeCheckHistograms.json/file","location3":"gs:///<INSERT_GCS_PATH_HERE>/.profiler/profilerValidValueHistograms.json/file"}
@rjerrems
rjerrems / install-node.sh
Last active November 16, 2016 01:21
Automatically install custom Node version in Elastic Beanstalk for your Meteor app
#!/bin/bash
#Lightweight script to automatically detect and install the required Node version for Meteor in Elastic Beanstalk
#This does this by parsing the MIN_NODE_VERSION from {APP}/programs/server/boot.js
#To run the script, you must supply the path to the Meteor application like this ./install-node.sh "/tmp/deployment/application/bundle"
#To see more details about the script, see the blog post here https://thesauceco.de/blog/Automatically-install-custom-Node-for-Meteor-in-Elastic-Beanstalk/
APP_DIR=$1
WORKING_DIR=/tmp/deployment
DEST_DIR=/opt/elasticbeanstalk/node-install