Skip to content

Commit

Permalink
INFRA-541 Combine main methods for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ned Leitch committed Sep 6, 2024
1 parent b7db00a commit 26f4032
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cuppa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ADD target/cuppa-$VERSION-jar-with-dependencies.jar /usr/share/hartwig/cuppa.jar
RUN cd /opt/tools && jar xvf /usr/share/hartwig/cuppa.jar pycuppa
RUN pip3 install --upgrade pip && pip3 install /opt/tools/pycuppa

ENTRYPOINT ["java", "-cp", "/usr/share/hartwig/cuppa.jar", "com.hartwig.hmftools.cup.prep.CuppaDataPrep"]
ENTRYPOINT ["java", "-jar", "/usr/share/hartwig/cuppa.jar"]
2 changes: 1 addition & 1 deletion cuppa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.hartwig.hmftools.cup.CupAnalyser
<mainClass>com.hartwig.hmftools.cup.cli.PrepPlusPredictionMain
</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.hartwig.hmftools.cup.cli;

import com.hartwig.hmftools.cup.prep.CuppaDataPrep;

public class PrepPlusPredictionMain {
public static void main(String[] args) {
try {
CuppaDataPrep.main(args);
PredictionRunner.main(args);
System.exit(0);
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
}
}

0 comments on commit 26f4032

Please sign in to comment.