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
function forwardLabelToAsana() { | |
var asana_email = 'x+FirstNumber@mail.asana.com'; | |
var domain = '@company.com'; | |
var inbound_label = GmailApp.getUserLabelByName('recruiting/recruiting-inbound'); | |
var destination_label = GmailApp.getUserLabelByName('recruiting'); | |
var threads = inbound_label.getThreads(); | |
for (var i = 0; i < threads.length; i++) { | |
// We only care about the first message in a thread | |
var messages = threads[i].getMessages(); |
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
FROM <your private Docker repository>/python-base | |
MAINTAINER Mike Clarke <mike@standardtreasury.com> | |
ADD . /opt/app | |
RUN virtualenv --no-site-packages /opt/app/venv | |
RUN /opt/app/venv/bin/pip install -r /opt/app/requirements.txt | |
WORKDIR /opt/app | |
ENTRYPOINT ["/opt/app/env.sh"] |
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
FROM ubuntu | |
MAINTAINER Mike Clarke <mike@standardtreasury.com> | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y language-pack-en | |
ENV LANGUAGE en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 |
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
container_commands: | |
sync_db: | |
command: "docker run --env DATABASE_URL=`/opt/elasticbeanstalk/bin/get-config environment | jq -r .DATABASE_URL` aws_beanstalk/current-app:latest lein lobos migrate" | |
leader_only: true |
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
#!/bin/bash | |
sudo docker build -t $JOB_NAME/$BUILD_NUMBER . | |
DB_NAME="/$JOB_NAME-$BUILD_NUMBER-db" | |
DB_CONTAINER=$(sudo docker run -d -name $DB_NAME <private repository URL>/database-schema) | |
sudo docker run -link $DB_NAME:db -t $JOB_NAME/$BUILD_NUMBER nosetests | |
sudo docker tag $JOB_NAME/$BUILD_NUMBER <private repository URL>/${JOB_NAME}-master | |
sudo docker push <private repository URL>/${JOB_NAME}-master >/dev/null | |
sudo docker kill ... | |
sudo docker rm ... | |
sudo docker rmi ... |
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
#!/bin/bash | |
# Docker doesn't have a great way to set runtime environment variables, | |
# so use this script to prepare the execution environnment for later processes. | |
export SQLALCHEMY_DATABASE_URI="postgresql://${DB_PORT_5432_TCP_ADDR}:5432/database_name" | |
# Execute the commands passed to this script | |
# e.g. "./env.sh venv/bin/nosetests --with-xunit | |
exec "$@" |
OlderNewer