-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathomtd-component-executor-uima.dockerfile
40 lines (28 loc) · 1.38 KB
/
omtd-component-executor-uima.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:14.04
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
#ENV LANG C.UTF-8
# Install java.
# -- -- --- - -- -- -- --- - --
RUN apt-get update && apt-get -y upgrade && apt-get -y install software-properties-common && add-apt-repository ppa:webupd8team/java -y && apt-get update
RUN (echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections) && apt-get install -y oracle-java8-installer oracle-java8-set-default
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENV PATH $JAVA_HOME/bin:$PATH
# Install xmlstarlet
# RUN apt-get -y install xmlstarlet
# Install omtd-component-executor.
# -- -- --- - -- -- -- --- - --
# Create target dir.
RUN mkdir /opt/omtd-component-executor/
# Copy everything to target dir.
COPY . /opt/omtd-component-executor/
# Copy UIMA executor script to /usr/bin/
COPY ./scripts/Linux_runUIMA.sh /usr/bin/
# Set working dir.
WORKDIR /opt/omtd-component-executor/scripts/
# Create repo dir
# RUN /bin/bash -c "ln -s /opt/omtd-component-executor/TDMlocalRepo/ /opt/"
# Fetch Dependencies of coordinates listed in ../TDMCoordinatesList.txt
# and store them to /opt/TDMlocalRepo/. Also store the classpath of each component at ./TDMClasspathLists/
#RUN bash FetchDependencies.sh ../TDMCoordinatesList.txt ../TDMClasspathLists/ /opt/TDMlocalRepo/
# -- -- --- - -- -- -- --- - --