Skip to content

Commit 82a5024

Browse files
committed
Add Dockerfile
Signed-off-by: Octavian Purdila <[email protected]>
0 parents  commit 82a5024

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM ubuntu:16.04
2+
LABEL authors="Octavian Purdila <[email protected]>"
3+
4+
RUN apt-get update && \
5+
apt-get install -y software-properties-common && \
6+
add-apt-repository ppa:git-core/ppa && \
7+
apt-get update && \
8+
apt-get install -y sudo make git python python-pip ditaa && \
9+
rm -rf /var/lib/apt/lists/*
10+
11+
RUN useradd -ms /bin/bash ubuntu && adduser ubuntu sudo && echo -n 'ubuntu:ubuntu' | chpasswd
12+
13+
# Enable passwordless sudo for users under the "sudo" group
14+
RUN sed -i.bkp -e \
15+
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \
16+
/etc/sudoers
17+
18+
USER ubuntu
19+
WORKDIR /home/ubuntu/
20+
21+
ENV PATH ${PATH}:/home/ubuntu/.local
22+
23+
RUN git clone git://github.com/linux-kernel-labs/linux-kernel-labs.github.io.git
24+
25+
RUN git clone git://github.com/linux-kernel-labs/linux.git
26+
27+
RUN pip install -r linux/tools/labs/requirements.txt

0 commit comments

Comments
 (0)