-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (61 loc) · 1.63 KB
/
Dockerfile
File metadata and controls
69 lines (61 loc) · 1.63 KB
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
FROM ubuntu:22.04
# used in configure.ac
ARG FLUX_VERSION=0.42.0
ENV FLUX_VERSION=${FLUX_VERSION}
ENV DEBIAN_FRONTEND=noninteractive
# from root:
# docker build -t ghcr.io/flux-framework/flux-python -f src/bindings/python/Dockerfile .
# docker run -it ghcr.io/flux-framework/flux-python
RUN apt-get update \
&& apt-get -qq install -y --no-install-recommends \
automake \
libsodium-dev \
libzmq3-dev \
libczmq-dev \
libjansson-dev \
libmunge-dev \
libncursesw5-dev \
lua5.4 \
liblua5.4-dev \
liblz4-dev \
libsqlite3-dev \
uuid-dev \
libhwloc-dev \
libmpich-dev \
libs3-dev \
libevent-dev \
libarchive-dev \
python3 \
python3-dev \
python3-pip \
python3-sphinx \
libtool \
git \
build-essential \
# Flux security
libjson-glib-1.0.0 \
libjson-glib-dev \
libpam-dev && \
ldconfig && \
rm -rf /var/lib/apt/lists/*
WORKDIR /code
# Add flux-security directory
RUN git clone https://github.com/flux-framework/flux-security /code/security && \
cd /code/security && \
./autogen.sh && \
./configure --prefix=/usr/local && \
make && \
make install && \
ldconfig
COPY . /code
RUN chmod +x etc/gen-cmdhelp.py && \
./autogen.sh && \
./configure --prefix=/usr/local && \
make && \
make install && \
ldconfig
# Here is how to install Python manually (and see README there)
# WORKDIR /code/src/bindings/python
# RUN python3 setup.py install && ldconfig
WORKDIR /code
ENTRYPOINT ["/bin/bash"]