-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from julianu/master
- automatic docker build - removing deprecated cached compiler
- Loading branch information
Showing
11 changed files
with
107 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,5 +52,3 @@ log/ | |
logs/ | ||
target/ | ||
.idea/ | ||
/docker/ | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM eclipse-temurin:8-jre-focal | ||
|
||
LABEL MAINTAINERS="Julian Uszkoreit <[email protected]>"\ | ||
description="Docker image for command line execution of PIA - Protein Inference Algorithms" | ||
|
||
# prepare zip and wget | ||
RUN apt-get update; \ | ||
apt-get install -y unzip wget; \ | ||
apt-get clean | ||
|
||
#preparing directories | ||
RUN mkdir -p /data/in; mkdir -p /data/out; mkdir -p /opt/pia; | ||
|
||
# download latest PIA zip and uncompress | ||
RUN cd /opt/pia; \ | ||
curl -s https://api.github.com/repos/mpc-bioinformatics/pia/releases/latest | grep -oP '"browser_download_url": "\K(.*pia.*.zip)(?=")' | wget -qi - -O pia.zip; \ | ||
unzip pia.zip; \ | ||
rm pia.zip; \ | ||
mv pia*.jar pia.jar; | ||
|
||
# cleanup | ||
RUN apt-get remove -y unzip wget; | ||
|
||
ENTRYPOINT ["java", "-jar", "/opt/pia/pia.jar"] | ||
CMD ["--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# the building container | ||
FROM maven:3-eclipse-temurin-8 AS builder | ||
|
||
RUN mkdir -p /tmp/pia | ||
COPY . /tmp/pia/ | ||
RUN mvn -f /tmp/pia/pom.xml -Dmaven.test.skip --settings /tmp/pia/.mvn/unblock-mirrors.xml package | ||
|
||
|
||
# start the real container | ||
FROM eclipse-temurin:8-jre-focal | ||
|
||
LABEL MAINTAINERS="Julian Uszkoreit <[email protected]>"\ | ||
description="Docker image for command line execution of PIA - Protein Inference Algorithms" | ||
|
||
# prepare zip and wget | ||
RUN apt-get update; \ | ||
apt-get install -y unzip wget; \ | ||
apt-get clean | ||
|
||
#preparing directories | ||
RUN mkdir -p /data/in; mkdir -p /data/out; mkdir -p /opt/pia; | ||
|
||
# copy just build PIA zip and uncompress | ||
COPY --from=builder /tmp/pia/target/pia*.zip /opt/pia/pia.zip | ||
RUN cd /opt/pia; \ | ||
unzip pia.zip; \ | ||
rm pia.zip; \ | ||
mv pia*.jar pia.jar; | ||
|
||
# cleanup | ||
RUN apt-get remove -y unzip wget; | ||
|
||
ENTRYPOINT ["java", "-jar", "/opt/pia/pia.jar"] | ||
CMD ["--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.