-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathbuild.sh
executable file
·56 lines (32 loc) · 957 Bytes
/
build.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
#!/bin/bash
print_info() {
lightgreen='\e[92m'
nocolor='\033[0m'
echo -e "${lightgreen}[*] $1${nocolor}"
}
print_info "Making all bash scripts executable"
find . -type f -iname "*.sh" -exec chmod +x {} \;
# Select the version you prefer, or both (16.04 18.04)
for VERSION in 18.04
do
print_info "Building base image"
cd ubuntu$VERSION-base
docker build -t devopsubuntu$VERSION:latest .
cd ..
print_info "Building Python image"
cd ubuntu$VERSION-python
docker build -t devopsubuntu$VERSION-python:latest .
cd ..
print_info "Building Docker inception image"
cd ubuntu$VERSION-docker
docker build -t devopsubuntu$VERSION-docker:latest .
cd ..
print_info "Building .NET Core image"
cd ubuntu$VERSION-dotnet
docker build -t devopsubuntu$VERSION-dotnet:latest .
cd ..
print_info "Building Node.js image"
cd ubuntu$VERSION-nodejs
docker build -t devopsubuntu$VERSION-nodejs:latest .
cd ..
done