-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.Dockerfile
36 lines (32 loc) · 1.46 KB
/
build.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
# Build SDK
FROM debian:bookworm-slim AS build
WORKDIR /uima-cpp
RUN apt-get update && apt-get -y install --no-install-suggests libapr1-dev libxerces-c-dev libicu-dev openjdk-17-jdk-headless build-essential pkgconf autoconf file libtool m4 automake swig4.0 libpython3-dev libperl-dev libuima-core-java
COPY . .
RUN ./autogen.sh
RUN mkdir /usr/local/uimacpp
RUN mkdir /usr/local/uimacpp/ae
RUN mkdir /usr/local/uimacpp/desc
RUN mkdir /usr/local/uimacpp/scripts
RUN ./configure --prefix=/usr/local/uimacpp --without-activemq --with-jdk=/usr/lib/jvm/java-17-openjdk-amd64/
RUN make -j4
RUN make install
# run tests
RUN make check
# build pythonator
RUN echo '/usr/local/uimacpp/lib' >> /etc/ld.so.conf.d/uimacpp.conf && ldconfig
WORKDIR /uima-cpp/scriptators/python
RUN UIMACPP_HOME=/usr/local/uimacpp make
RUN cp _pythonnator.so /usr/local/uimacpp/lib; cd /usr/local/uimacpp/scripts; ln -s ../lib/_pythonnator.so .
RUN cd /usr/local/uimacpp/lib; ln -s ../scripts/_pythonnator.so ./libpythonnator.so
RUN cp Pythonnator.xml /usr/local/uimacpp/desc/
RUN cp ae.py pythonnator.py /usr/local/uimacpp/scripts/
# perltator
WORKDIR /uima-cpp/scriptators/perl
RUN UIMACPP_HOME=/usr/local/uimacpp make
RUN cp perltator.so /usr/local/uimacpp/lib; cd /usr/local/uimacpp/lib; ln -s perltator.so libperltator.so
RUN cp Perltator.xml /usr/local/uimacpp/desc/
RUN cp ae.pl perltator.pm /usr/local/uimacpp/scripts/
# dev
RUN apt-get install -y --no-install-recommends emacs-nox gdb less
ENTRYPOINT ["/bin/bash"]