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

Commit aa801de

Browse files
committed
Builder prepared for travis?
1 parent 889ca5a commit aa801de

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

builder

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ docker run --rm -v "$(pwd)"/wheelhouse:/wheelhouse builder
77

88
echo "Launch Pypiserver"
99
docker-compose -f docker-compose-travis.yml up -d pypiserver
10+
docker ps -a
11+
12+
export DOCKERHOST=$(ip route | awk '/docker/ { print $NF }')
1013

1114
echo "--> BUILDING apsl/thumbor"
12-
docker build -f thumbor/Dockerfile -t apsl/thumbor thumbor/
15+
docker build --build-arg DOCKERHOST=$DOCKERHOST -f thumbor/Dockerfile -t apsl/thumbor thumbor/
1316
echo "--> TAGGING apsl/thumbor:$THUMBOR_VERSION"
1417
docker tag apsl/thumbor apsl/thumbor:$THUMBOR_VERSION
1518
docker tag apsl/thumbor apsl/thumbor:latest
1619

1720
echo "--> BUILDING apsl/thumbor-multiprocess"
18-
docker build -f thumbor-multiprocess/Dockerfile -t apsl/thumbor-multiprocess thumbor-multiprocess/
21+
docker build --build-arg DOCKERHOST=$DOCKERHOST -f thumbor-multiprocess/Dockerfile -t apsl/thumbor-multiprocess thumbor-multiprocess/
1922
echo "--> TAGGING apsl/thumbor-multiprocess:$THUMBOR_VERSION"
2023
docker tag apsl/thumbor-multiprocess apsl/thumbor-multiprocess:$THUMBOR_VERSION
2124
docker tag apsl/thumbor-multiprocess apsl/thumbor-multiprocess:latest
@@ -27,7 +30,7 @@ docker tag apsl/thumbor-nginx apsl/thumbor-nginx:$THUMBOR_VERSION
2730
docker tag apsl/thumbor-nginx apsl/thumbor-nginx:latest
2831

2932
echo "--> BUILDING apsl/remotecv"
30-
docker build -f remotecv/Dockerfile -t apsl/remotecv remotecv/
33+
docker build --build-arg DOCKERHOST=$DOCKERHOST -f remotecv/Dockerfile -t apsl/remotecv remotecv/
3134
echo "--> TAGGING apsl/remotecv:$THUMBOR_VERSION"
3235
docker tag apsl/remotecv apsl/remotecv:$THUMBOR_VERSION
3336
docker tag apsl/remotecv apsl/remotecv:latest

remotecv/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ ENV SHELL bash
1818
ENV WORKON_HOME /usr/src/app
1919
WORKDIR /usr/src/app
2020

21+
ARG DOCKERHOST=172.17.0.1
22+
ENV DOCKERHOST ${DOCKERHOST}
2123
COPY requirements.txt /usr/src/app/requirements.txt
2224
RUN pip install --trusted-host None --no-cache-dir --use-wheel \
23-
--extra-index-url http://172.17.0.1:9009/simple/ \
24-
--trusted-host 172.17.0.1 \
25+
--extra-index-url http://${DOCKERHOST}:9009/simple/ \
26+
--trusted-host ${DOCKERHOST} \
2527
-r /usr/src/app/requirements.txt
2628

2729
RUN \

thumbor-multiprocess/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ FROM apsl/thumbor
22

33
MAINTAINER Edu Herraiz <[email protected]>
44

5+
ARG DOCKERHOST=172.17.0.1
6+
ENV DOCKERHOST ${DOCKERHOST}
57
COPY requirements.txt /usr/src/app/requirements.txt
68
RUN pip install --trusted-host None --no-cache-dir --use-wheel \
7-
--extra-index-url http://172.17.0.1:9009/simple/ \
8-
--trusted-host 172.17.0.1 \
9+
--extra-index-url http://${DOCKERHOST}:9009/simple/ \
10+
--trusted-host ${DOCKERHOST} \
911
-r /usr/src/app/requirements.txt
1012

1113
ADD conf/circus.ini.tpl /etc/

thumbor/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ ENV SHELL bash
1818
ENV WORKON_HOME /usr/src/app
1919
WORKDIR /usr/src/app
2020

21+
ARG DOCKERHOST=172.17.0.1
22+
ENV DOCKERHOST ${DOCKERHOST}
2123
COPY requirements.txt /usr/src/app/requirements.txt
2224
RUN pip install --trusted-host None --no-cache-dir --use-wheel \
23-
--extra-index-url http://172.17.0.1:9009/simple/ \
24-
--trusted-host 172.17.0.1 \
25+
--extra-index-url http://${DOCKERHOST}:9009/simple/ \
26+
--trusted-host ${DOCKERHOST} \
2527
-r /usr/src/app/requirements.txt
2628

2729
COPY conf/thumbor.conf.tpl /usr/src/app/thumbor.conf.tpl

0 commit comments

Comments
 (0)