-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·36 lines (24 loc) · 829 Bytes
/
run-tests.sh
File metadata and controls
executable file
·36 lines (24 loc) · 829 Bytes
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
#!/bin/bash
set -eu
echo "[*] Building images for the first time."
docker-compose build
docker build -t composecache testcase
echo -e "\n[*] Changing some file."
date > testcase/src/somefile
echo -e "\n[*] Rebuilding with compose."
docker-compose build
echo -e "\n[*] Rebuilding with docker build."
docker build -t composecache testcase
echo -e "\n[*] Adding Dockerfile to .dockerignore."
echo Dockerfile > testcase/.dockerignore
echo -e "\n[*] Rebuilding with compose."
docker-compose build
echo -e "\n[*] Rebuilding with docker build."
docker build -t composecache testcase
echo -e "\n[*] Changing some file."
date > testcase/src/somefile
echo -e "\n[*] Rebuilding with compose."
docker-compose build
echo -e "\n[*] Rebuilding with docker build."
docker build -t composecache testcase
echo > testcase/.dockerignore