forked from foundriesio/lmp-manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (42 loc) · 1.68 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
47
48
49
FROM ubuntu:20.04
# bitbake requires a utf8 filesystem encoding
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ARG DEBIAN_FRONTEND=noninteractive
ARG DEV_USER_NAME=Builder
ARG DEV_USER=builder
ARG DEV_USER_PASSWD=builder
# FIO PPA for additional dependencies and newer packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& add-apt-repository ppa:fio-maintainers/ppa \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
android-sdk-libsparse-utils android-sdk-ext4-utils ca-certificates \
chrpath cpio diffstat file gawk g++ iproute2 iputils-ping less libmagickwand-dev \
libmath-prime-util-perl libsdl1.2-dev libssl-dev locales \
openjdk-11-jre openssh-client perl-modules python3 python3-requests \
make patch repo sudo texinfo vim-tiny wget whiptail libelf-dev git-lfs screen \
socket corkscrew curl xz-utils tcl libtinfo5 device-tree-compiler python3-pip python3-dev \
tmux libncurses-dev vim zstd liblz4-tool \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& pip3 --no-cache-dir install jsonFormatter \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& locale-gen en_US.UTF-8
# Create the user which will run the SDK binaries.
RUN useradd -c $DEV_USER_NAME \
-d /home/$DEV_USER \
-G sudo,dialout,floppy,plugdev,users \
-m \
-s /bin/bash \
$DEV_USER
# Add default password for the SDK user (useful with sudo)
RUN echo $DEV_USER:$DEV_USER_PASSWD | chpasswd
# Initialize development environment for $DEV_USER.
RUN sudo -u $DEV_USER -H git config --global credential.helper 'cache --timeout=3600'