Commit 8c686ca 1 parent 6f316fc commit 8c686ca Copy full SHA for 8c686ca
File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ The following instructions assume you're running Ubuntu 18.04 and Bash.
21
21
### Building (from source)
22
22
``` bash
23
23
$ cd /path/to/irods_client_nfsrods
24
- $ bash build_jar.sh
24
+ $ bash build_jar.sh # Consider passing --non-interactive if building in an environment without TTY support.
25
25
$ docker build -t local/nfsrods .
26
26
```
27
27
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ usage () {
4
+ cat << _EOF_
5
+ USAGE: bash build_jar.sh [OPTIONS]
6
+
7
+ Builds a runnable NFSRODS JAR file based on the currently checked out source.
8
+
9
+ Options:
10
+ --non-interactive Launches docker container without -i and -t.
11
+ -h, --help Shows this message.
12
+ _EOF_
13
+ exit
14
+ }
15
+
16
+ docker_run_iteractive_options=" -it"
17
+
18
+ while [ -n " $1 " ]; do
19
+ case " $1 " in
20
+ --non-interactive) shift ; unset docker_run_iteractive_options;;
21
+ -h|--help) usage;;
22
+ esac
23
+ shift
24
+ done
25
+
3
26
# Compiles an executable JAR file from the local repository and
4
27
# stores all build artifacts in local_maven_repo.
5
28
#
6
29
# The local_maven_repo directory keeps your personal maven repository
7
30
# (i.e. $HOME/.m2) clean and safe from the "root" user.
8
- docker run -it --rm --name nfsrods_builder \
31
+ docker run ${docker_run_iteractive_options} --rm --name nfsrods_builder \
9
32
-v $PWD /local_maven_repo:/root/.m2 \
10
33
-v $PWD :/irods_client_nfsrods \
11
34
-w /irods_client_nfsrods \
You can’t perform that action at this time.
0 commit comments