-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 960 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 960 Bytes
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
FROM python:3.6-stretch
MAINTAINER Ezra Kissel <ezkissel@indiana.edu>
RUN apt-get update
RUN apt-get -y install sudo cmake gcc python-setuptools python-pip
RUN export uid=1000 gid=1000 && \
mkdir -p /home/dlt && \
echo "dlt:x:${uid}:${gid}:WILDFIRE-DLN,,,:/home/dlt:/bin/bash" >> /etc/passwd && \
echo "dlt:x:${uid}:" >> /etc/group && \
echo "dlt ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/dlt && \
chmod 0440 /etc/sudoers.d/dlt && \
chown ${uid}:${gid} -R /home/dlt && \
chown ${uid}:${gid} -R /opt
USER dlt
ENV HOME /home/dlt
WORKDIR $HOME
RUN git clone -b develop https://github.com/periscope-ps/unisrt
RUN git clone -b master https://github.com/periscope-ps/lace
RUN git clone -b develop https://github.com/datalogistics/libdlt
ADD build.sh .
RUN bash ./build.sh
RUN mkdir $HOME/.periscope
ADD depots $HOME/.depots
ADD .rtcache $HOME/.periscope/.rtcache/
ADD .cache $HOME/.periscope/.cache/
ADD doc.txt .
CMD cat doc.txt