-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
remove-docker-images.sh
executable file
·95 lines (63 loc) · 1.75 KB
/
remove-docker-images.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
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
#!/usr/bin/env bash
source my-functions.sh
check_script_input_parameter $1
if [ "$1" = "string-producer-service" ] ||
[ "$1" = "string-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/string-producer-service:1.0.0
fi
if [ "$1" = "string-consumer-service" ] ||
[ "$1" = "string-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/string-consumer-service:1.0.0
fi
if [ "$1" = "json-producer-service" ] ||
[ "$1" = "json-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/json-producer-service:1.0.0
fi
if [ "$1" = "json-consumer-service" ] ||
[ "$1" = "json-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/json-consumer-service:1.0.0
fi
if [ "$1" = "avro-producer-service" ] ||
[ "$1" = "avro-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/avro-producer-service:1.0.0
fi
if [ "$1" = "avro-consumer-service" ] ||
[ "$1" = "avro-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/avro-consumer-service:1.0.0
fi
if [ "$1" = "avro-2-producer-service" ] ||
[ "$1" = "avro-2-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/avro-2-producer-service:1.0.0
fi
if [ "$1" = "avro-2-consumer-service" ] ||
[ "$1" = "avro-2-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/avro-2-consumer-service:1.0.0
fi
if [ "$1" = "avro-3-producer-service" ] ||
[ "$1" = "avro-3-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/avro-3-producer-service:1.0.0
fi
if [ "$1" = "avro-3-consumer-service" ] ||
[ "$1" = "avro-3-de-serialization" ] ||
[ "$1" = "all" ];
then
docker rmi ivanfranchin/avro-3-consumer-service:1.0.0
fi