Public | Automated Build

Last pushed: a month ago
Short Description
Automatic build for emailgate-docker-worker
Full Description

gulp-es6-webpack-example

docker kill emailgate-worker
docker rm emailgate-worker
docker build -t emailgate-worker .
docker run -t -i --env-file ./.env emailgate-worker /bin/bash

docker run -t -i -v /Users/nmajor/dev/emailgate-worker/:/var/host --env-file ./.env emailgate-worker /bin/bash

TODOs

  • Download the emails and stuff using manta instead of http requests.

phantomjs-prebuilt@2.1.7 install /var/app/node_modules/phantomjs-prebuilt
node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1//phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /var/app/node_modules/phantomjs-prebuilt/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...

Tasks

  • Generate Email pdfs
  • Generate Page pdfs
  • Generate Page Number pdfs
  • Compile the whole compilation document

Docker Notes

  • This will give the env variables to connect to the docker-machine
    $ docker-machine env default

export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/nmajor/.docker/machine/machines/default"
export DOCKER_MACHINE_NAME="default"

Run this command to configure your shell:

eval "$(docker-machine env default)"

curl https://192.168.99.100:2376/images/json \
--cert ~/.docker/machine/machines/default/cert.pem \
--key ~/.docker/machine/machines/default/key.pem \
--cacert ~/.docker/machine/machines/default/ca.pem

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

Demo tasks for .env file

build-email-pdfs (5emails) TASK=eyJuYW1lIjoiYnVpbGQtZW1haWwtcGRmcyIsInByb3BzIjp7ImVtYWlsSWRzIjpbInJKWFF2bHpVZSIsIkh5R0pfM1ZsIiwiSGtkSnUzNGUiLCJySjdEbGZVZyIsInIxbFh3bHpMbCJdLCJjb21waWxhdGlvbklkIjoiSGtCMGlyTWcifX0=

build-page-pdfs TASK=eyJuYW1lIjoiYnVpbGQtcGFnZS1wZGZzIiwicHJvcHMiOnsicGFnZUlkcyI6WyJTMVdTMG9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