forked from keeferrourke/rhpman-sim
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (31 loc) · 1.45 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
ARG BUILD_PROFILE=debug
FROM marshallasch/ns3:3.32-${BUILD_PROFILE}
LABEL org.opencontainers.version="v1.0.0"
LABEL org.opencontainers.image.authors="Marshall Asch <[email protected]> (https://marshallasch.ca)"
LABEL org.opencontainers.image.url="https://github.com/MarshallAsch/rhpman.git"
LABEL org.opencontainers.image.source="https://github.com/MarshallAsch/rhpman.git"
LABEL org.opencontainers.image.vendor="Marshall Asch"
LABEL org.opencontainers.image.licenses="ISC"
LABEL org.opencontainers.image.title="RHPMAN Data Storage Scheme"
LABEL org.opencontainers.image.description="ns-3 simulation of the RHPMAN data storage scheme for Marshall Asch's Masters research"
ENV BUILD_PROFILE=$BUILD_PROFILE
ENTRYPOINT [ "contrib/rhpman/entrypoint.sh" ]
VOLUME [ "/results" ]
ENV RESULTS_DIR=/results \
NS3_EXPERIMENT=rhpman \
NUM_THREADS=0
# install protobuf
RUN apt-get update && apt-get install -y --no-install-recommends \
protobuf-compiler \
libprotobuf-dev \
python3-pip
COPY requirements.txt contrib/rhpman/requirements.txt
RUN pip install -r contrib/rhpman/requirements.txt
COPY . contrib/rhpman/
RUN ./waf configure --enable-examples --enable-tests --build-profile=${BUILD_PROFILE} && ./waf build
# these two labels will change every time the container is built
# put them at the end because of layer caching
ARG VCS_REF
LABEL org.opencontainers.image.revision="${VCS_REF}"
ARG BUILD_DATE
LABEL org.opencontainers.image.created="${BUILD_DATE}"