-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·46 lines (36 loc) · 1.06 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
FROM uwaedu/mytardis_app
EXPOSE 22
#ENTRYPOINT ["/docker-entrypoint.sh"]
#ENTRYPOINT ["tail","-f","/dev/null"]
# SSHd
RUN apt-get update && apt-get -y install \
openssh-server \
sssd-common \
&& apt-get clean
# Missing privilege separation directory: /var/run/sshd
RUN mkdir -p /var/run/sshd
# MyTardisFS
RUN apt-get update && apt-get -y install \
fuse \
libfuse-dev \
pkg-config \
python-fdsend \
&& apt-get clean
RUN python -m pip install -U --no-cache-dir \
fuse-python \
configparser \
python-dateutil \
requests
COPY ./mytardisfs/ /tmp/mytardisfs
RUN wd=$(cwd); cd /tmp/mytardisfs/ && python setup.py install && cd ${cwd} && rm -rf /tmp/mytardisfs/
COPY ./mytardisfs.cnf /etc/mytardisfs.cnf
# Suppress run error massage looking for this directory
RUN mkdir -p /srv/mytardis/eggs
ENV PYTHONPATH=/usr/lib/python2.7/dist-packages/
# Set up mytardis user for access
RUN apt-get update && apt-get -y install \
sudo \
&& apt-get clean
COPY ./sudoers_mytardis /etc/sudoers.d/mytardis
RUN useradd mytardis
ENTRYPOINT ["/usr/sbin/sshd","-4","-D"]