From bf56f3f4ed0f4c12c7024ea20c18aa0615937ae9 Mon Sep 17 00:00:00 2001 From: Chirag Shilwant <115738422+cshilwant@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:28:40 +0530 Subject: [PATCH] ubuntu-distro: Update Dockerfile - Add user tisdk with gid & uid as 786. - Add necessary local settings needed for yocto builds. Signed-off-by: Chirag Shilwant --- ubuntu-distro/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ubuntu-distro/Dockerfile b/ubuntu-distro/Dockerfile index 0c8f877..a387445 100644 --- a/ubuntu-distro/Dockerfile +++ b/ubuntu-distro/Dockerfile @@ -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