From 7a8f5e10fdbe03fd890a54ff36f964f3df805642 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Tue, 23 Sep 2014 10:17:14 -0700 Subject: [PATCH] Add wercker.yml Changed Dockerfile to run as root so it has access to /var/run/docker.sock. Signed-off-by: Ben Firshman --- Dockerfile | 4 ---- wercker.yml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 wercker.yml diff --git a/Dockerfile b/Dockerfile index 17e384612..a45af726d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ FROM ubuntu:14.04 RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git -RUN useradd -d /home/user -m -s /bin/bash user WORKDIR /code/ @@ -12,6 +11,3 @@ RUN pip install -r requirements-dev.txt ADD . /code/ RUN python setup.py install - -RUN chown -R user /code/ -USER user diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 000000000..b013c2a41 --- /dev/null +++ b/wercker.yml @@ -0,0 +1,15 @@ +box: wercker-labs/docker +build: + steps: + - script: + name: validate DCO + code: script/validate-dco + - script: + name: build + code: docker build -t fig . + - script: + name: flake8 + code: docker run -v /var/run/docker.sock:/var/run/docker.sock fig flake8 fig + - script: + name: run tests + code: docker run -v /var/run/docker.sock:/var/run/docker.sock fig nosetests