-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.lisa
38 lines (33 loc) · 1.12 KB
/
Dockerfile.lisa
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
#
# Dockerfile.ubuntu-dev: General Ubuntu dev eenvironment w/ sudo rights
#
FROM ubuntu:16.04
MAINTAINER John Stultz <[email protected]>
ENV TERM xterm
# Update the image to the lastest updates
RUN apt-get update && apt-get -y dist-upgrade && apt-get clean && apt-get -y autoremove
# Get tools
RUN apt-get update && apt-get install -y \
bc \
gcc \
libncurses5-dev \
make \
python \
sudo \
build-essential autoconf automake libtool pkg-config \
trace-cmd sshpass kernelshark \
nmap net-tools tree \
python-matplotlib python-numpy libfreetype6-dev libpng12-dev python-nose \
python-pip python-dev \
git adb
RUN pip install --upgrade trappy bart-py devlib psutil
RUN apt-get -y remove ipython ipython-notebook
RUN pip install ipython jupyter
EXPOSE 8888
# make username a variable, so the script is portable
# add '--build-arg user_name=$USER' to the docker build command
ARG --description="user name for container" user_name=docker
# Add $user_name user
RUN useradd -m $user_name && echo "$user_name:docker" | chpasswd && adduser $user_name sudo
USER $user_name
RUN cd ~/ && git clone https://github.com/ARM-software/lisa.git