-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 852 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 852 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
FROM ubuntu:16.04
LABEL authors="Octavian Purdila <tavi@cs.pub.ro>"
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:git-core/ppa && \
apt-get update && \
apt-get install -y sudo make git python python-pip ditaa && \
rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash ubuntu && adduser ubuntu sudo && echo -n 'ubuntu:ubuntu' | chpasswd
# Enable passwordless sudo for users under the "sudo" group
RUN sed -i.bkp -e \
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \
/etc/sudoers
USER ubuntu
WORKDIR /home/ubuntu/
ENV PATH ${PATH}:/home/ubuntu/.local
RUN git clone git://github.com/linux-kernel-labs/linux-kernel-labs.github.io.git
RUN git clone git://github.com/linux-kernel-labs/linux.git
RUN pip install -r linux/tools/labs/requirements.txt