Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Builder prepared for travis?
Browse files Browse the repository at this point in the history
  • Loading branch information
psyduck787 committed Jul 26, 2016
1 parent 889ca5a commit aa801de
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions builder
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ docker run --rm -v "$(pwd)"/wheelhouse:/wheelhouse builder

echo "Launch Pypiserver"
docker-compose -f docker-compose-travis.yml up -d pypiserver
docker ps -a

export DOCKERHOST=$(ip route | awk '/docker/ { print $NF }')

echo "--> BUILDING apsl/thumbor"
docker build -f thumbor/Dockerfile -t apsl/thumbor thumbor/
docker build --build-arg DOCKERHOST=$DOCKERHOST -f thumbor/Dockerfile -t apsl/thumbor thumbor/
echo "--> TAGGING apsl/thumbor:$THUMBOR_VERSION"
docker tag apsl/thumbor apsl/thumbor:$THUMBOR_VERSION
docker tag apsl/thumbor apsl/thumbor:latest

echo "--> BUILDING apsl/thumbor-multiprocess"
docker build -f thumbor-multiprocess/Dockerfile -t apsl/thumbor-multiprocess thumbor-multiprocess/
docker build --build-arg DOCKERHOST=$DOCKERHOST -f thumbor-multiprocess/Dockerfile -t apsl/thumbor-multiprocess thumbor-multiprocess/
echo "--> TAGGING apsl/thumbor-multiprocess:$THUMBOR_VERSION"
docker tag apsl/thumbor-multiprocess apsl/thumbor-multiprocess:$THUMBOR_VERSION
docker tag apsl/thumbor-multiprocess apsl/thumbor-multiprocess:latest
Expand All @@ -27,7 +30,7 @@ docker tag apsl/thumbor-nginx apsl/thumbor-nginx:$THUMBOR_VERSION
docker tag apsl/thumbor-nginx apsl/thumbor-nginx:latest

echo "--> BUILDING apsl/remotecv"
docker build -f remotecv/Dockerfile -t apsl/remotecv remotecv/
docker build --build-arg DOCKERHOST=$DOCKERHOST -f remotecv/Dockerfile -t apsl/remotecv remotecv/
echo "--> TAGGING apsl/remotecv:$THUMBOR_VERSION"
docker tag apsl/remotecv apsl/remotecv:$THUMBOR_VERSION
docker tag apsl/remotecv apsl/remotecv:latest
6 changes: 4 additions & 2 deletions remotecv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ ENV SHELL bash
ENV WORKON_HOME /usr/src/app
WORKDIR /usr/src/app

ARG DOCKERHOST=172.17.0.1
ENV DOCKERHOST ${DOCKERHOST}
COPY requirements.txt /usr/src/app/requirements.txt
RUN pip install --trusted-host None --no-cache-dir --use-wheel \
--extra-index-url http://172.17.0.1:9009/simple/ \
--trusted-host 172.17.0.1 \
--extra-index-url http://${DOCKERHOST}:9009/simple/ \
--trusted-host ${DOCKERHOST} \
-r /usr/src/app/requirements.txt

RUN \
Expand Down
6 changes: 4 additions & 2 deletions thumbor-multiprocess/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ FROM apsl/thumbor

MAINTAINER Edu Herraiz <ghark@gmail.com>

ARG DOCKERHOST=172.17.0.1
ENV DOCKERHOST ${DOCKERHOST}
COPY requirements.txt /usr/src/app/requirements.txt
RUN pip install --trusted-host None --no-cache-dir --use-wheel \
--extra-index-url http://172.17.0.1:9009/simple/ \
--trusted-host 172.17.0.1 \
--extra-index-url http://${DOCKERHOST}:9009/simple/ \
--trusted-host ${DOCKERHOST} \
-r /usr/src/app/requirements.txt

ADD conf/circus.ini.tpl /etc/
Expand Down
6 changes: 4 additions & 2 deletions thumbor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ ENV SHELL bash
ENV WORKON_HOME /usr/src/app
WORKDIR /usr/src/app

ARG DOCKERHOST=172.17.0.1
ENV DOCKERHOST ${DOCKERHOST}
COPY requirements.txt /usr/src/app/requirements.txt
RUN pip install --trusted-host None --no-cache-dir --use-wheel \
--extra-index-url http://172.17.0.1:9009/simple/ \
--trusted-host 172.17.0.1 \
--extra-index-url http://${DOCKERHOST}:9009/simple/ \
--trusted-host ${DOCKERHOST} \
-r /usr/src/app/requirements.txt

COPY conf/thumbor.conf.tpl /usr/src/app/thumbor.conf.tpl
Expand Down

0 comments on commit aa801de

Please sign in to comment.