Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rc/5.8.4 #360

Merged
merged 16 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN cd score-client/target \
FROM ubuntu:18.04 as client

ENV CLIENT_DIST_DIR /score-client-dist
ENV JDK_DOWNLOAD_URL https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz
ENV JDK_DOWNLOAD_URL https://download.java.net/openjdk/jdk17/ri/openjdk-17+35_linux-x64_bin.tar.gz
ENV SCORE_CLIENT_HOME /score-client
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$SCORE_CLIENT_HOME/bin
ENV SCORE_USER score
Expand All @@ -51,20 +51,20 @@ RUN useradd $SCORE_USER \
# Copy client dist from previous docker build staget
COPY --from=builder $CLIENT_DIST_DIR/ $SCORE_CLIENT_HOME

# Install Open JDK 11, and remove unused things at runtime
# Install Open JDK 17, and remove unused things at runtime
RUN mkdir /usr/lib/jvm \
&& cd /usr/lib/jvm \
&& wget $JDK_DOWNLOAD_URL -O openjdk11.tar.gz \
&& tar zxvf openjdk11.tar.gz \
&& rm -rf openjdk11.tar.gz \
&& echo 'PATH=$PATH:/usr/lib/jvm/jdk-11/bin' >> /etc/environment \
&& echo 'JAVA_HOME=/usr/lib/jvm/jdk-11' >> /etc/environment \
&& rm -rf /usr/lib/jvm/jdk-11/jmods \
&& rm -rf /usr/lib/jvm/jdk-11/lib/src.zip \
&& update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-11/bin/java" 0 \
&& update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-11/bin/javac" 0 \
&& update-alternatives --set java /usr/lib/jvm/jdk-11/bin/java \
&& update-alternatives --set javac /usr/lib/jvm/jdk-11/bin/javac \
&& wget $JDK_DOWNLOAD_URL -O openjdk17.tar.gz \
&& tar zxvf openjdk17.tar.gz \
&& rm -rf openjdk17.tar.gz \
&& echo 'PATH=$PATH:/usr/lib/jvm/jdk-17/bin' >> /etc/environment \
&& echo 'JAVA_HOME=/usr/lib/jvm/jdk-17' >> /etc/environment \
&& rm -rf /usr/lib/jvm/jdk-17/jmods \
&& rm -rf /usr/lib/jvm/jdk-17/lib/src.zip \
&& update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-17/bin/java" 0 \
&& update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-17/bin/javac" 0 \
&& update-alternatives --set java /usr/lib/jvm/jdk-17/bin/java \
&& update-alternatives --set javac /usr/lib/jvm/jdk-17/bin/javac \
&& update-alternatives --list java \
&& update-alternatives --list javac \
&& java -version \
Expand Down
26 changes: 13 additions & 13 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
FROM ubuntu:18.04 as client

ENV CLIENT_DIST_DIR /score-client-dist
ENV JDK_DOWNLOAD_URL https://download.java.net/openjdk/jdk11/ri/openjdk-11+28_linux-x64_bin.tar.gz
ENV JDK_DOWNLOAD_URL https://download.java.net/openjdk/jdk17/ri/openjdk-17+35_linux-x64_bin.tar.gz
ENV SCORE_CLIENT_HOME /score-client
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$SCORE_CLIENT_HOME/bin
ENV SCORE_USER score
Expand All @@ -19,20 +19,20 @@ RUN useradd $SCORE_USER \

COPY score-client/target/score-client-*-dist.tar.gz /score-client.tar.gz

# Install Open JDK 11, and remove unused things at runtime
# Install Open JDK 17, and remove unused things at runtime
RUN mkdir /usr/lib/jvm \
&& cd /usr/lib/jvm \
&& wget $JDK_DOWNLOAD_URL -O openjdk11.tar.gz \
&& tar zxvf openjdk11.tar.gz \
&& rm -rf openjdk11.tar.gz \
&& echo 'PATH=$PATH:/usr/lib/jvm/jdk-11/bin' >> /etc/environment \
&& echo 'JAVA_HOME=/usr/lib/jvm/jdk-11' >> /etc/environment \
&& rm -rf /usr/lib/jvm/jdk-11/jmods \
&& rm -rf /usr/lib/jvm/jdk-11/lib/src.zip \
&& update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-11/bin/java" 0 \
&& update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-11/bin/javac" 0 \
&& update-alternatives --set java /usr/lib/jvm/jdk-11/bin/java \
&& update-alternatives --set javac /usr/lib/jvm/jdk-11/bin/javac \
&& wget $JDK_DOWNLOAD_URL -O openjdk17.tar.gz \
&& tar zxvf openjdk17.tar.gz \
&& rm -rf openjdk17.tar.gz \
&& echo 'PATH=$PATH:/usr/lib/jvm/jdk-17/bin' >> /etc/environment \
&& echo 'JAVA_HOME=/usr/lib/jvm/jdk-17' >> /etc/environment \
&& rm -rf /usr/lib/jvm/jdk-17/jmods \
&& rm -rf /usr/lib/jvm/jdk-17/lib/src.zip \
&& update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-17/bin/java" 0 \
&& update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-17/bin/javac" 0 \
&& update-alternatives --set java /usr/lib/jvm/jdk-17/bin/java \
&& update-alternatives --set javac /usr/lib/jvm/jdk-17/bin/javac \
&& update-alternatives --list java \
&& update-alternatives --list javac \
&& java -version
Expand Down
11 changes: 8 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ spec:
value: tcp://localhost:2375
- name: HOME
value: /home/jenkins/agent
- name: curl
image: curlimages/curl
command:
- cat
tty: true
securityContext:
runAsUser: 1000
volumes:
Expand Down Expand Up @@ -352,7 +357,7 @@ pipeline {
credentialsId: 'OvertureSlackJenkinsWebhookURL',
variable: 'fixed_slackChannelURL'
)]) {
container('node') {
container('curl') {
script {
if (env.BRANCH_NAME ==~ /(develop|master|test\S*)/) {
sh "curl \
Expand All @@ -374,7 +379,7 @@ pipeline {
credentialsId: 'OvertureSlackJenkinsWebhookURL',
variable: 'success_slackChannelURL'
)]) {
container('node') {
container('curl') {
script {
if (env.BRANCH_NAME ==~ /(test\S*)/) {
sh "curl \
Expand All @@ -396,7 +401,7 @@ pipeline {
credentialsId: 'OvertureSlackJenkinsWebhookURL',
variable: 'failed_slackChannelURL'
)]) {
container('node') {
container('curl') {
script {
if (env.BRANCH_NAME ==~ /(develop|master|test\S*)/) {
sh "curl \
Expand Down
55 changes: 49 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S

<groupId>bio.overture</groupId>
<artifactId>score</artifactId>
<version>5.8.2</version>
<version>5.8.4</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>${project.name}</description>
Expand All @@ -34,11 +34,54 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S
</modules>

<repositories>
<!-- DCC -->
<repository>
<id>dcc-release</id>
<url>https://artifacts.oicr.on.ca/artifactory/dcc-release</url>
</repository>
<repository>
<id>spring-releases</id>
<name>Spring Releases</name>
<url>https://repo.spring.io/release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<!-- DCC -->
<repository>
<id>dcc-release</id>
<url>https://artifacts.oicr.on.ca/artifactory/dcc-release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>dcc-snapshot</id>
<url>https://artifacts.oicr.on.ca/artifactory/dcc-snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>conjars.org</id>
<url>https://conjars.wensel.net/repo/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>

</repositories>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion score-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S
<parent>
<groupId>bio.overture</groupId>
<artifactId>score</artifactId>
<version>5.8.2</version>
<version>5.8.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ private void validateParms() {
checkParameter(
Stream.of(!objectId.isEmpty(), manifestResource != null,analysisId != null && programId != null).
filter(i -> i == Boolean.TRUE).count() == 1,
"Only one of --object-id, --manifest, or --analysisId may be specified. "
+ "--studyId may only be used together with --analysisId, and is required if analysisId is specified.");
"Only one of --object-id, --manifest, or --analysis-id may be specified. "
+ "--study-id may only be used together with --analysis-id, and is required if analysis-id is specified.");
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,18 @@ public Optional<Entity> getIndexEntity(Entity entity) {
}

private static boolean isIndexFile(Entity e, String fileName) {
return isBaiFile(e, fileName) || isTbiFile(e, fileName) || isIdxFile(e, fileName);
return isCraiFile(e, fileName) || isBaiFile(e, fileName) || isTbiFile(e, fileName) || isIdxFile(e, fileName);
}

private static boolean isTbiFile(Entity e, String fileName) {
return isMatch(e, fileName + ".tbi");
}

private static boolean isCraiFile(Entity e, String fileName) {
return isMatch(e, fileName + ".crai");
}


private static boolean isIdxFile(Entity e, String fileName) {
return isMatch(e, fileName + ".idx");
}
Expand Down
2 changes: 1 addition & 1 deletion score-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S
<parent>
<groupId>bio.overture</groupId>
<artifactId>score</artifactId>
<version>5.8.2</version>
<version>5.8.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion score-fs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S
<parent>
<groupId>bio.overture</groupId>
<artifactId>score</artifactId>
<version>5.8.2</version>
<version>5.8.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion score-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S
<parent>
<groupId>bio.overture</groupId>
<artifactId>score</artifactId>
<version>5.8.2</version>
<version>5.8.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion score-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF S
<parent>
<groupId>bio.overture</groupId>
<artifactId>score</artifactId>
<version>5.8.2</version>
<version>5.8.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down