File tree 13 files changed +25
-23
lines changed
13 files changed +25
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ FROM openjdk:11-jre-stretch as client
10
10
11
11
ENV SONG_CLIENT_HOME /song-client
12
12
ENV CLIENT_DIST_DIR /song-client-dist
13
-
14
- ENV TARBALL $DCC_HOME/download.tar.gz
13
+ ENV PATH /usr/local/openjdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$SONG_CLIENT_HOME/bin
15
14
16
15
COPY --from=builder /srv/song-client/target/song-client-*-dist.tar.gz /song-client.tar.gz
17
16
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ FROM openjdk:11-jre-stretch as client
5
5
6
6
ENV SONG_CLIENT_HOME /song-client
7
7
ENV CLIENT_DIST_DIR /song-client-dist
8
+ ENV PATH /usr/local/openjdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$SONG_CLIENT_HOME/bin
8
9
9
10
COPY song-client/target/song-client-*-dist.tar.gz /song-client.tar.gz
10
11
RUN tar zxvf song-client.tar.gz -C /tmp \
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ LOG_DIRS := $(SCORE_SERVER_LOGS_DIR) $(SCORE_CLIENT_LOGS_DIR) $(SONG_SERVER_LOGS
51
51
DOCKER_COMPOSE_CMD := echo "*********** DEMO_MODE = $(DEMO_MODE ) **************" \
52
52
&& echo "*********** FORCE = $(FORCE ) **************" \
53
53
&& DOCKERFILE_NAME=$(DOCKERFILE_NAME ) MY_UID=$(MY_UID ) MY_GID=$(MY_GID ) $(DOCKER_COMPOSE_EXE ) -f $(ROOT_DIR ) /docker-compose.yml
54
- SONG_CLIENT_CMD := $(DOCKER_COMPOSE_CMD ) run --rm -u $(THIS_USER ) song-client bin/ sing
54
+ SONG_CLIENT_CMD := $(DOCKER_COMPOSE_CMD ) run --rm -u $(THIS_USER ) song-client sing
55
55
SCORE_CLIENT_CMD := $(DOCKER_COMPOSE_CMD ) run --rm -u $(THIS_USER ) score-client bin/score-client
56
56
DC_UP_CMD := $(DOCKER_COMPOSE_CMD ) up -d --build
57
57
MVN_CMD := $(MVN_EXE ) -f $(ROOT_DIR ) /pom.xml
@@ -238,8 +238,8 @@ get-analysis-id:
238
238
test-submit : start-song-server _ping_song_server
239
239
@echo $(YELLOW )$(INFO_HEADER ) " Submitting payload /data/submit/exampleVariantCall.json" $(END )
240
240
@$(SONG_CLIENT_CMD ) submit -f /data/submit/exampleVariantCall.json | tee $(SONG_CLIENT_SUBMIT_RESPONSE_FILE )
241
- @cat $(SONG_CLIENT_SUBMIT_RESPONSE_FILE ) | grep analysisId | sed ' s/ .*:// ' | sed ' s/"\|,//g ' > $(SONG_CLIENT_ANALYSIS_ID_FILE )
242
- @echo $(YELLOW )$(INFO_HEADER ) " Successfully submitted. Cached analysisId: " $$($(GET_ANALYSIS_ID_CMD ) ) $(END )
241
+ @cat $(SONG_CLIENT_SUBMIT_RESPONSE_FILE ) | grep analysisId | sed -e ' s# .*:[^"]*"\([^"]*\)".*#\1# ' > $(SONG_CLIENT_ANALYSIS_ID_FILE )
242
+ @echo $(YELLOW )$(INFO_HEADER ) " Successfully submitted. Cached analysisId: ' " $$($(GET_ANALYSIS_ID_CMD ) ) " ' " $(END )
243
243
244
244
test-manifest : test-submit
245
245
@echo $(YELLOW )$(INFO_HEADER ) " Creating manifest at /song-client/output" $(END )
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ services:
89
89
- " ./docker/scratch/score-client-logs:/score-client/logs"
90
90
- " ./docker/scratch/song-client-output:/song-client/output"
91
91
command : bin/score-client
92
+ user : " $MY_UID:$MY_GID"
92
93
song-db :
93
94
image : " postgres:9.6"
94
95
environment :
@@ -123,6 +124,7 @@ services:
123
124
- " ./docker/scratch/song-client-logs:/song-client/logs"
124
125
- " ./docker/scratch/song-client-output:/song-client/output"
125
126
command : bin/sing
127
+ user : " $MY_UID:$MY_GID"
126
128
song-server :
127
129
build :
128
130
context : ./
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ DOCKERFILE_NAME=Dockerfile \
8
8
MY_GID=$( id -g) \
9
9
docker-compose \
10
10
-f ${BASH_SCRIPT_DIR} /../../docker-compose.yml \
11
- run --rm song-client bin/ sing $@
11
+ run --rm song-client sing $@
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ DOCKERFILE_NAME=Dockerfile.dev \
8
8
MY_GID=$( id -g) \
9
9
docker-compose \
10
10
-f ${BASH_SCRIPT_DIR} /../..//docker-compose.yml \
11
- run --rm song-client bin/ sing $@
11
+ run --rm song-client sing $@
Original file line number Diff line number Diff line change 21
21
<groupId >bio.overture</groupId >
22
22
<artifactId >song</artifactId >
23
23
<packaging >pom</packaging >
24
- <version >3.1.0 </version >
24
+ <version >3.1.1 </version >
25
25
<modules >
26
26
<module >song-core</module >
27
27
<module >song-java-sdk</module >
Original file line number Diff line number Diff line change 18
18
<parent >
19
19
<artifactId >song</artifactId >
20
20
<groupId >bio.overture</groupId >
21
- <version >3.1.0 </version >
21
+ <version >3.1.1 </version >
22
22
</parent >
23
23
<modelVersion >4.0.0</modelVersion >
24
24
35
35
<dependency >
36
36
<groupId >bio.overture</groupId >
37
37
<artifactId >song-java-sdk</artifactId >
38
- <version >3.1.0 </version >
38
+ <version >3.1.1 </version >
39
39
</dependency >
40
40
<dependency >
41
41
<groupId >bio.overture</groupId >
42
42
<artifactId >song-core</artifactId >
43
- <version >3.1.0 </version >
43
+ <version >3.1.1 </version >
44
44
</dependency >
45
45
46
46
<!-- CLI -->
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then
29
29
# echo Found Java in JAVA_HOME
30
30
_java=" $JAVA_HOME /bin/java"
31
31
else
32
- echo " Java not found. Sing requires JDK 1.8 "
32
+ echo " Java not found. Sing requires Java 11. "
33
33
exit 1
34
34
fi
35
35
@@ -42,11 +42,13 @@ if [[ "$_java" ]]; then
42
42
fi
43
43
fi
44
44
45
- current_dir=$PWD
46
- fn=$0
47
- sing_home=$current_dir /` dirname $fn ` /../
48
-
49
- # -Dspring.config.location="$sing_home/conf/" \
45
+ here=$( dirname $0 )
46
+ if [ " $here " == " ." ]; then
47
+ # This is the case, when the user runs this script from the ./bin directory
48
+ sing_home=../
49
+ else
50
+ sing_home=${here%/ bin}
51
+ fi
50
52
51
53
java --illegal-access=deny \
52
54
-Dlog.name=song \
Original file line number Diff line number Diff line change 19
19
<parent >
20
20
<artifactId >song</artifactId >
21
21
<groupId >bio.overture</groupId >
22
- <version >3.1.0 </version >
22
+ <version >3.1.1 </version >
23
23
</parent >
24
24
<modelVersion >4.0.0</modelVersion >
25
25
Original file line number Diff line number Diff line change 18
18
<parent >
19
19
<artifactId >song</artifactId >
20
20
<groupId >bio.overture</groupId >
21
- <version >3.1.0 </version >
21
+ <version >3.1.1 </version >
22
22
</parent >
23
23
<modelVersion >4.0.0</modelVersion >
24
24
Original file line number Diff line number Diff line change 19
19
<parent >
20
20
<artifactId >song</artifactId >
21
21
<groupId >bio.overture</groupId >
22
- <version >3.1.0 </version >
22
+ <version >3.1.1 </version >
23
23
</parent >
24
24
<modelVersion >4.0.0</modelVersion >
25
25
37
37
<dependency >
38
38
<groupId >bio.overture</groupId >
39
39
<artifactId >song-core</artifactId >
40
- <version >3.1.0 </version >
40
+ <version >3.1.1 </version >
41
41
</dependency >
42
42
43
43
<!-- Spring -->
You can’t perform that action at this time.
0 commit comments