-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruler.sh
More file actions
executable file
·23 lines (16 loc) · 880 Bytes
/
ruler.sh
File metadata and controls
executable file
·23 lines (16 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
docker build -f Dockerfile.ruler --target ruler-dev -t ruler-dev . > /dev/null
DEVSIZE=$(docker inspect ruler-dev | jq '.[0].Size')
OSSIZE=$(docker inspect alpine |jq '.[0].Size')
docker history --format="{{.CreatedBy}} --> {{.Size}}" ruler-dev | grep -v '#(nop)\|0B$'
echo "RULER-OS-SIZE: $OSSIZE"
echo "RULER-DEV-SIZE: $(expr $DEVSIZE - $OSSIZE)"
docker build -f Dockerfile.ruler -t ruler-run . > /dev/null
RUNSIZE=$(docker inspect ruler-run | jq '.[0].Size')
echo "RULER-RUN-SIZE: $RUNSIZE"
docker history --format="{{.CreatedBy}} --> {{.Size}}" ruler-run | grep -v '#(nop)\|0B$'
echo "RULER-LINES-DOC: $(cat README.md index.html example/*.html | wc -l)"
echo "RULER-BYTES-DOC: $(cat README.md index.html example/*.html | wc -c)"
echo "RULER-LINES-FUNC: $(cat src/*.css | wc -l)"
echo "RULER-BYTES-FUNC: $(cat src/*.css | wc -c)"
echo "RULER-LINES-TEST: 0"