forked from korseby/container-nmrml
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
39 lines (27 loc) · 1.64 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ubuntu:16.04
LABEL software=nmrmlconv
LABEL software.version=1.1b
LABEL version=0.5
LABEL Description="Convert NMR-RAW vendor files to nmrML."
ENV REVISION="6486b3c0d78cfd6c04d5e96236146ba312b2eb2d"
MAINTAINER PhenoMeNal-H2020 Project <phenomenal-h2020-users@googlegroups.com>
# Update, install, clean up
RUN apt-get -y update && apt-get -y install --no-install-recommends build-essential software-properties-common byobu curl git subversion vim man unzip zip wget perl-base openjdk-8-jre
# Install relevant nmrML binary files from their repo
RUN mkdir -p mkdir /usr/local/share/nmrML && \
curl -o /usr/local/share/nmrML/converter.jar https://raw.githubusercontent.com/nmrML/nmrML/$REVISION/tools/Parser_and_Converters/Java/converter/bin/converter.jar && \
curl -o /usr/local/bin/nmrMLcreate https://raw.githubusercontent.com/nmrML/nmrML/$REVISION/tools/Parser_and_Converters/Java/converter/bin/nmrMLcreate && \
curl -o /usr/local/bin/nmrMLproc https://raw.githubusercontent.com/nmrML/nmrML/$REVISION/tools/Parser_and_Converters/Java/converter/bin/nmrMLproc && \
chmod 755 /usr/local/share/nmrML/converter.jar && \
chmod 755 /usr/local/bin/nmrML*
# Cleanup
RUN apt-get -y --purge --auto-remove remove subversion git && \
apt-get -y clean && apt-get -y autoremove && rm -rf /var/lib/{cache,log}/ /var/cache/oracle-jdk7-installer /usr/src/nmr* /tmp/* /var/tmp/*
# Add scripts
ADD runTest1.sh /usr/local/bin/runTest1.sh
ADD nmrmlconv.sh /usr/local/bin/nmrmlconv.sh
# Define data directory
RUN mkdir /data
WORKDIR /data
#ENTRYPOINT [ "/usr/local/bin/nmrmlconv.sh" ]
#ENTRYPOINT [ "java", "-jar", "/usr/local/share/nmrML/converter.jar" ]