-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathbuildbase.sh
51 lines (35 loc) · 1.59 KB
/
buildbase.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
VERSION=v1
set -e
# buildpack-deps
docker build -t floydhub/buildpack-deps:${VERSION} -f ./base/buildpack-deps/Dockerfile .
docker push floydhub/buildpack-deps:${VERSION}
docker build -t floydhub/buildpack-deps:${VERSION}-gpu -f ./base/buildpack-deps/Dockerfile.gpu .
docker push floydhub/buildpack-deps:${VERSION}-gpu
# dl-deps
floydker build ./base/dl-deps/${VERSION}/Dockerfile-py2
docker push floydhub/dl-deps:${VERSION}-py2
floydker build ./base/dl-deps/${VERSION}/Dockerfile-py3
docker push floydhub/dl-deps:${VERSION}-py3
floydker build ./base/dl-deps/${VERSION}/Dockerfile-py2.gpu
docker push floydhub/dl-deps:${VERSION}-gpu-py2
floydker build ./base/dl-deps/${VERSION}/Dockerfile-py3.gpu
docker push floydhub/dl-deps:${VERSION}-gpu-py3
# dl-python
floydker build ./dl/dl-python/${VERSION}/Dockerfile-py2
docker push floydhub/dl-python:${VERSION}-py2
floydker build ./dl/dl-python/${VERSION}/Dockerfile-py3
docker push floydhub/dl-python:${VERSION}-py3
floydker build ./dl/dl-python/${VERSION}/Dockerfile-py2.gpu
docker push floydhub/dl-python:${VERSION}-gpu-py2
floydker build ./dl/dl-python/${VERSION}/Dockerfile-py3.gpu
docker push floydhub/dl-python:${VERSION}-gpu-py3
# dl-base
floydker build ./dl/dl-base/${VERSION}/Dockerfile-py2
docker push floydhub/dl-base:${VERSION}-py2
floydker build ./dl/dl-base/${VERSION}/Dockerfile-py3
docker push floydhub/dl-base:${VERSION}-py3
floydker build ./dl/dl-base/${VERSION}/Dockerfile-py2.gpu
docker push floydhub/dl-base:${VERSION}-gpu-py2
floydker build ./dl/dl-base/${VERSION}/Dockerfile-py3.gpu
docker push floydhub/dl-base:${VERSION}-gpu-py3