-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild_docker.sh
executable file
·21 lines (18 loc) · 1.1 KB
/
build_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# The sample script and documentation are provided AS IS and are not supported by
# the author or the author's employer, unless otherwise agreed in writing. You bear
# all risk relating to the use or performance of the sample script and documentation.
# The author and the author's employer disclaim all express or implied warranties
# (including, without limitation, any warranties of merchantability, title, infringement
# or fitness for a particular purpose). In no event shall the author, the author's employer
# or anyone else involved in the creation, production, or delivery of the scripts be liable
# for any damages whatsoever arising out of the use or performance of the sample script and
# documentation (including, without limitation, damages for loss of business profits,
# business interruption, loss of business information, or other pecuniary loss), even if
# such person has been advised of the possibility of such damages.
if [ -d "./build" ]
then
rm -rf ./build
fi
docker build --tag rest-2-client-generator -f Dockerfile .
docker run -t -v $(pwd)/build:/build rest-2-client-generator $@