Skip to content

Commit cb2fc98

Browse files
authored
Merge pull request #566 from overture-stack/rc/3.1.1
Rc/3.1.1
2 parents 746dff6 + 60cc8d7 commit cb2fc98

File tree

13 files changed

+25
-23
lines changed

13 files changed

+25
-23
lines changed

.env

-2
This file was deleted.

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ FROM openjdk:11-jre-stretch as client
1010

1111
ENV SONG_CLIENT_HOME /song-client
1212
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
1514

1615
COPY --from=builder /srv/song-client/target/song-client-*-dist.tar.gz /song-client.tar.gz
1716

Dockerfile.dev

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FROM openjdk:11-jre-stretch as client
55

66
ENV SONG_CLIENT_HOME /song-client
77
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
89

910
COPY song-client/target/song-client-*-dist.tar.gz /song-client.tar.gz
1011
RUN tar zxvf song-client.tar.gz -C /tmp \

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LOG_DIRS := $(SCORE_SERVER_LOGS_DIR) $(SCORE_CLIENT_LOGS_DIR) $(SONG_SERVER_LOGS
5151
DOCKER_COMPOSE_CMD := echo "*********** DEMO_MODE = $(DEMO_MODE) **************" \
5252
&& echo "*********** FORCE = $(FORCE) **************" \
5353
&& 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
5555
SCORE_CLIENT_CMD := $(DOCKER_COMPOSE_CMD) run --rm -u $(THIS_USER) score-client bin/score-client
5656
DC_UP_CMD := $(DOCKER_COMPOSE_CMD) up -d --build
5757
MVN_CMD := $(MVN_EXE) -f $(ROOT_DIR)/pom.xml
@@ -238,8 +238,8 @@ get-analysis-id:
238238
test-submit: start-song-server _ping_song_server
239239
@echo $(YELLOW)$(INFO_HEADER) "Submitting payload /data/submit/exampleVariantCall.json" $(END)
240240
@$(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)
243243

244244
test-manifest: test-submit
245245
@echo $(YELLOW)$(INFO_HEADER) "Creating manifest at /song-client/output" $(END)

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ services:
8989
- "./docker/scratch/score-client-logs:/score-client/logs"
9090
- "./docker/scratch/song-client-output:/song-client/output"
9191
command: bin/score-client
92+
user: "$MY_UID:$MY_GID"
9293
song-db:
9394
image: "postgres:9.6"
9495
environment:
@@ -123,6 +124,7 @@ services:
123124
- "./docker/scratch/song-client-logs:/song-client/logs"
124125
- "./docker/scratch/song-client-output:/song-client/output"
125126
command: bin/sing
127+
user: "$MY_UID:$MY_GID"
126128
song-server:
127129
build:
128130
context: ./

docker/tools/song-client-demo

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ DOCKERFILE_NAME=Dockerfile \
88
MY_GID=$(id -g) \
99
docker-compose \
1010
-f ${BASH_SCRIPT_DIR}/../../docker-compose.yml \
11-
run --rm song-client bin/sing $@
11+
run --rm song-client sing $@

docker/tools/song-client-dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ DOCKERFILE_NAME=Dockerfile.dev \
88
MY_GID=$(id -g) \
99
docker-compose \
1010
-f ${BASH_SCRIPT_DIR}/../..//docker-compose.yml \
11-
run --rm song-client bin/sing $@
11+
run --rm song-client sing $@

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<groupId>bio.overture</groupId>
2222
<artifactId>song</artifactId>
2323
<packaging>pom</packaging>
24-
<version>3.1.0</version>
24+
<version>3.1.1</version>
2525
<modules>
2626
<module>song-core</module>
2727
<module>song-java-sdk</module>

song-client/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<parent>
1919
<artifactId>song</artifactId>
2020
<groupId>bio.overture</groupId>
21-
<version>3.1.0</version>
21+
<version>3.1.1</version>
2222
</parent>
2323
<modelVersion>4.0.0</modelVersion>
2424

@@ -35,12 +35,12 @@
3535
<dependency>
3636
<groupId>bio.overture</groupId>
3737
<artifactId>song-java-sdk</artifactId>
38-
<version>3.1.0</version>
38+
<version>3.1.1</version>
3939
</dependency>
4040
<dependency>
4141
<groupId>bio.overture</groupId>
4242
<artifactId>song-core</artifactId>
43-
<version>3.1.0</version>
43+
<version>3.1.1</version>
4444
</dependency>
4545

4646
<!-- CLI -->

song-client/src/main/bin/sing

+8-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then
2929
# echo Found Java in JAVA_HOME
3030
_java="$JAVA_HOME/bin/java"
3131
else
32-
echo "Java not found. Sing requires JDK 1.8"
32+
echo "Java not found. Sing requires Java 11."
3333
exit 1
3434
fi
3535

@@ -42,11 +42,13 @@ if [[ "$_java" ]]; then
4242
fi
4343
fi
4444

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
5052

5153
java --illegal-access=deny \
5254
-Dlog.name=song \

song-core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>song</artifactId>
2121
<groupId>bio.overture</groupId>
22-
<version>3.1.0</version>
22+
<version>3.1.1</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525

song-java-sdk/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<parent>
1919
<artifactId>song</artifactId>
2020
<groupId>bio.overture</groupId>
21-
<version>3.1.0</version>
21+
<version>3.1.1</version>
2222
</parent>
2323
<modelVersion>4.0.0</modelVersion>
2424

song-server/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>song</artifactId>
2121
<groupId>bio.overture</groupId>
22-
<version>3.1.0</version>
22+
<version>3.1.1</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525

@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>bio.overture</groupId>
3939
<artifactId>song-core</artifactId>
40-
<version>3.1.0</version>
40+
<version>3.1.1</version>
4141
</dependency>
4242

4343
<!-- Spring -->

0 commit comments

Comments
 (0)