-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
28 lines (23 loc) · 671 Bytes
/
Copy pathbuild.sh
File metadata and controls
28 lines (23 loc) · 671 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
#!/bin/bash
echo
echo "+================================"
echo "| START: Vector Service"
echo "+================================"
echo
datehash=`date | md5sum | cut -d" " -f1`
abbrvhash=${datehash: -8}
echo
echo "Building container using tag ${abbrvhash}"
echo
docker build -t graboskyc/vectorservice:latest -t graboskyc/vectorservice:${abbrvhash} .
echo
echo "Starting container"
echo
docker stop vectorservice
docker rm vectorservice
docker run -t -i -d -p 80:80 --name vectorservice --restart unless-stopped graboskyc/vectorservice:latest
echo
echo "+================================"
echo "| END: Vector Service"
echo "+================================"
echo