-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (33 loc) · 1.12 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
FROM ubuntu:16.04
USER root
RUN apt-get update && \
apt-get install -y cmake \
libssl-dev \
libcurl4-openssl-dev \
libboost-all-dev \
libopenblas-base \
openssh-server \
python \
lsof \
sudo \
sssd \
sssd-tools \
vim \
git \
wget \
zip \
g++ \
gcc \
zsh
RUN if [ ! -d /var/run/sshd ]; then mkdir /var/run/sshd; chmod 0755 /var/run/sshd; fi
RUN for user in {'jhuber6','thuber1','mgoin','tdixon12'}; do \
useradd -m -s /bin/zsh $user; \
echo "$user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers; done
RUN git clone https://github.com/ornl-qci/xacc && \
mkdir -p xacc/build && \
cd xacc/build && \
cmake .. && make -j2 install
COPY /audris/eecsCA_v3.crt /etc/ssl/
COPY /audris/sssd.conf /etc/sssd/
COPY /audris/common* /etc/pam.d/
RUN chmod 0600 /etc/sssd/sssd.conf /etc/pam.d/common*