-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathbuild-docker-images.sh
More file actions
executable file
·104 lines (92 loc) · 3.23 KB
/
Copy pathbuild-docker-images.sh
File metadata and controls
executable file
·104 lines (92 loc) · 3.23 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
if [ -z $1 ]; then
echo "Usage:";
echo "./build-docker-images.sh $MAJOR $MINOR";
exit 1;
fi
if [ -z $2 ]; then
echo "Usage:";
echo "./build-docker-images.sh $MAJOR $MINOR";
exit 1;
fi
MAJOR=$1
MINOR=$2
COMPONENT=$3
if [ -z $COMPONENT ] || [ $COMPONENT = "document-analyzer" ]; then
echo "📦 Building DocIntel.Services.DocumentAnalyzer"
docker build -t docintelapp/document-analyzer:latest \
-t docintelapp/document-analyzer:$MAJOR \
-t docintelapp/document-analyzer:$MINOR \
-f ./DocIntel.Services.DocumentAnalyzer/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "document-indexer" ]; then
echo "📦 Building DocIntel.Services.DocumentIndexer"
docker build -t docintelapp/document-indexer:latest \
-t docintelapp/document-indexer:$MAJOR \
-t docintelapp/document-indexer:$MINOR \
-f ./DocIntel.Services.DocumentIndexer/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "importer" ]; then
echo "📦 Building DocIntel.Services.Importer"
docker build -t docintelapp/importer:latest \
-t docintelapp/importer:$MAJOR \
-t docintelapp/importer:$MINOR \
-f ./DocIntel.Services.Importer/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "newsletter" ]; then
echo "📦 Building DocIntel.Services.Newsletters"
docker build -t docintelapp/newsletter:latest \
-t docintelapp/newsletter:$MAJOR \
-t docintelapp/newsletter:$MINOR \
-f ./DocIntel.Services.Newsletters/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "scraper" ]; then
echo "📦 Building DocIntel.Services.Scraper"
docker build -t docintelapp/scraper:latest \
-t docintelapp/scraper:$MAJOR \
-t docintelapp/scraper:$MINOR \
-f ./DocIntel.Services.Scraper/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "source-indexer" ]; then
echo "📦 Building DocIntel.Services.SourceIndexer"
docker build -t docintelapp/source-indexer:latest \
-t docintelapp/source-indexer:$MAJOR \
-t docintelapp/source-indexer:$MINOR \
-f ./DocIntel.Services.SourceIndexer/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "tag-indexer" ]; then
echo "📦 Building DocIntel.Services.TagIndexer"
docker build -t docintelapp/tag-indexer:latest \
-t docintelapp/tag-indexer:$MAJOR \
-t docintelapp/tag-indexer:$MINOR \
-f ./DocIntel.Services.TagIndexer/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "thumbnailer" ]; then
echo "📦 Building DocIntel.Services.Thumbnailer"
docker build -t docintelapp/thumbnailer:latest \
-t docintelapp/thumbnailer:$MAJOR \
-t docintelapp/thumbnailer:$MINOR \
-f ./DocIntel.Services.Thumbnailer/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "cron" ]; then
echo "📦 Building DocIntel.Services.Cron"
docker build -t docintelapp/cron:latest \
-t docintelapp/cron:$MAJOR \
-t docintelapp/cron:$MINOR \
-f ./DocIntel.Services.Cron/Dockerfile .
echo ""
fi
if [ -z $COMPONENT ] || [ $COMPONENT = "webapp" ]; then
echo "📦 Building DocIntel.WebApp"
docker build -t docintelapp/webapp:latest \
-t docintelapp/webapp:$MAJOR \
-t docintelapp/webapp:$MINOR \
-f ./DocIntel.WebApp/Dockerfile .
fi