-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile.apptainer
48 lines (35 loc) · 1.08 KB
/
Dockerfile.apptainer
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
FROM ubuntu:18.04
#maintainer information
LABEL maintainer="Christian Muise ([email protected])"
# update the apt package manager
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get update && apt-get -y install locales
# install common packages
RUN apt-get install -y \
build-essential \
vim \
git \
bison \
flex \
bc
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y expect
# install python and related
RUN apt-get install -y python3 python3-dev python3-pip python3-venv
RUN pip3 install --upgrade pip
# Get the PDKB library
RUN mkdir /MEP
WORKDIR /MEP
RUN git clone https://github.com/QuMuLab/pdkb-planning.git
WORKDIR /MEP/pdkb-planning
RUN chmod 777 pdkb/planners/*
RUN python3 setup.py install
WORKDIR /MEP
RUN mkdir bin
RUN echo "#!/bin/bash" >> /MEP/bin/rpmep
RUN echo "python3 -m pdkb.planner \$@" >> /MEP/bin/rpmep
# Update the PATH variable and permissions
ENV PATH="/MEP/bin:${PATH}"
RUN chmod -R 777 /MEP/bin
# default command to execute when container starts
ENTRYPOINT [ "/MEP/bin/rpmep" ]