forked from APSL/docker-thumbor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder
executable file
·32 lines (29 loc) · 1.32 KB
/
builder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Build wheels for all projects
export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $THUMBOR_VERSION; fi`
echo "TAG: $TAG"
echo "TRAVIS_BRANCH: $TRAVIS_BRANCH"
echo "THUMBOR_VERSION: $THUMBOR_VERSION"
docker build -t builder -f Dockerfile.build .
mkdir -p wheelhouse
docker run --rm -v "$(pwd)"/wheelhouse:/wheelhouse builder
mv wheelhouse thumbor/wheelhouse
echo "--> BUILDING apsl/thumbor"
docker build -f thumbor/Dockerfile -t apsl/thumbor thumbor/
echo "--> TAGGING apsl/thumbor:$TAG"
docker tag apsl/thumbor apsl/thumbor:$TAG
mv thumbor/wheelhouse thumbor-multiprocess/wheelhouse
echo "--> BUILDING apsl/thumbor-multiprocess"
docker build -f thumbor-multiprocess/Dockerfile -t apsl/thumbor-multiprocess thumbor-multiprocess/
echo "--> TAGGING apsl/thumbor-multiprocess:$TAG"
docker tag apsl/thumbor-multiprocess apsl/thumbor-multiprocess:$TAG
echo "--> BUILDING apsl/thumbor-nginx"
docker build -f nginx/Dockerfile -t apsl/thumbor-nginx nginx/
echo "--> TAGGING apsl/thumbor-nginx:$TAG"
docker tag apsl/thumbor-nginx apsl/thumbor-nginx:$TAG
mv thumbor-multiprocess/wheelhouse remotecv/wheelhouse
echo "--> BUILDING apsl/remotecv"
docker build -f remotecv/Dockerfile -t apsl/remotecv remotecv/
echo "--> TAGGING apsl/remotecv:$TAG"
docker tag apsl/remotecv apsl/remotecv:$TAG
mv remotecv/wheelhouse wheelhouse