-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
74 lines (60 loc) · 1.63 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM debian:11
LABEL Name="libhkl-phoenix"
USER root
WORKDIR /home
CMD ["/bin/bash"]
ENV HKL_GIT_URL=https://repo.or.cz/hkl.git
ENV HKL_TAG=master
# ------------------------------ docker developer UI
ENV EDITOR="nano"
ENV PROMPT_DIRTRIM=3
RUN echo "alias ll='ls -lAFh '" >> /root/.bashrc
RUN echo "alias ls='ls --color=auto '" >> /root/.bashrc
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y less
RUN DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
apt-utils \
autoconf \
autoconf-archive \
automake \
build-essential \
git \
gobject-introspection \
gtk-doc-tools \
libcairo2-dev\
libgirepository1.0-dev \
libglib2.0-dev \
libgsl-dev \
libgslcblas0 \
libtool \
m4 \
make \
pkg-config \
python3-full python3-dev \
wget
RUN git clone "${HKL_GIT_URL}"
WORKDIR hkl
RUN git config pull.rebase true
RUN git fetch
RUN git checkout "${HKL_TAG}"
RUN git pull origin "${HKL_TAG}"
RUN bash ./autogen.sh
RUN ./configure \
--prefix="/opt/hkl" \
--disable-static \
--disable-binoculars \
--disable-gui \
--disable-hkl-doc \
--enable-introspection=yes
RUN make -j "${CPU_COUNT:-1}"
RUN make install
WORKDIR /opt/hkl
RUN tar czf /opt/libhkl.tar.gz */
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Test in venv with same code used for conda test VM.
RUN python3 -m venv /opt/test
RUN /opt/test/bin/pip install pygobject
COPY try_libhkl.py /home/
RUN tar -xzf /opt/libhkl.tar.gz -C /usr
RUN /opt/test/bin/python /home/try_libhkl.py