This file contains hidden or 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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
echo "Installing docker.." | |
sudo apt-get -y install \ |
This file contains hidden or 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
FROM openjdk:8u121-jre | |
WORKDIR /tmp | |
RUN echo "Install OS dependencies.." && \ | |
apt-get update && \ | |
apt-get -y install python python-dev python-pip && \ | |
echo "Fixing pip packaging with manual update.." && \ | |
apt-get purge -y python-pip && \ | |
wget https://bootstrap.pypa.io/get-pip.py && \ |
This file contains hidden or 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
'use strict'; | |
const aws = require('aws-sdk'); | |
const s3 = new aws.S3({ apiVersion: '2006-03-01' }); | |
exports.handler = (event, context, callback) => { | |
const key = decodeURIComponent(event.Records[0].s3.object.key); | |
const meta = key.split('/'); |