Skip to content

Commit

Permalink
ubuntu-distro: Update Dockerfile
Browse files Browse the repository at this point in the history
- Add user tisdk with gid & uid as 786.
- Add necessary local settings needed for yocto builds.

Signed-off-by: Chirag Shilwant <c-shilwant@ti.com>
  • Loading branch information
cshilwant authored Jan 24, 2024
1 parent 1988c56 commit bf56f3f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ubuntu-distro/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@ RUN export DEBIAN_FRONTEND=noninteractive; apt-get update && \
apt-get install -y --no-install-recommends file build-essential autoconf automake bison flex libssl-dev bc u-boot-tools swig python3 python3-pip wget device-tree-compiler python3-dev dosfstools fdisk sudo && \
pip3 install jsonschema pyelftools PyYAML Mako && \
apt-get -f -y install git diffstat texinfo gawk chrpath socat doxygen dos2unix mono-devel mono-complete curl python3-distutils repo pseudo python3-sphinx \
g++-multilib libc6-dev-i386 jq git-lfs pigz zstd liblz4-tool cpio file zstd lz4 && \
g++-multilib libc6-dev-i386 jq git-lfs pigz zstd liblz4-tool cpio file zstd lz4 locales && \
locale-gen en_US en_US.UTF-8 && \
echo "dash dash/sh boolean false" | debconf-set-selections && \
dpkg-reconfigure dash && addgroup --gid 786 tisdk && \
adduser --disabled-password --uid 786 --gid 786 --gecos "" --home /home/tisdk --shell /bin/bash tisdk && \
adduser tisdk sudo && usermod -aG sudo tisdk && echo "tisdk ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
export LC_ALL="en_US.UTF-8" && export LC_CTYPE="en_US.UTF-8" && export LC_NUMERIC="en_US.UTF-8" && \
rm -rf /var/lib/apt/lists/*
USER tisdk

0 comments on commit bf56f3f

Please sign in to comment.