Block a user
nw-yocto (sha256:ce1619aad632566077b68cad7157811c97f0bec4c00792e1aff18d7816eb045b)
Published 2024-08-27 10:35:32 +00:00 by netwave
Installation
docker pull git2.tzimako.nl/netwave/nw-yocto@sha256:ce1619aad632566077b68cad7157811c97f0bec4c00792e1aff18d7816eb045bsha256:ce1619aad632566077b68cad7157811c97f0bec4c00792e1aff18d7816eb045bImage Layers
| ADD file:0d5bdf84bbcdfa95d42190537e3cad2c0a5876f9127fae6a1d1c485d3539c77d in / |
| CMD ["bash"] |
| /bin/sh -c echo 'deb http://deb.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/backports.list |
| ENV TERM=xterm-color |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get -y install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm git-lfs bison rsync bc xxd tree procps curl lsb-release software-properties-common jq tmux vim apt-transport-https zstd liblz4-tool libssl-dev file # buildkit |
| RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get -y install locales sudo # buildkit |
| RUN /bin/sh -c curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" && apt-get update && apt-get install -y docker-ce # buildkit |
| RUN /bin/sh -c which dash &> /dev/null && ( echo "dash dash/sh boolean false" | debconf-set-selections && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash) || echo "Skipping dash reconfigure (not applicable)" # buildkit |
| ADD https://storage.googleapis.com/git-repo-downloads/repo /usr/local/bin/ # buildkit |
| RUN /bin/sh -c chmod 755 /usr/local/bin/repo # buildkit |
| RUN /bin/sh -c echo "LC_ALL=en_US.UTF-8" >> /etc/environment && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && echo "LANG=en_US.UTF-8" > /etc/locale.conf && locale-gen en_US.UTF-8 # buildkit |
| ENV USER_NAME=builder |
| RUN /bin/sh -c echo "${USER_NAME} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${USER_NAME} && chmod 0440 /etc/sudoers.d/${USER_NAME} # buildkit |
| ARG host_uid=1001 |
| ARG host_gid=1001 |
| RUN |2 host_uid=1000 host_gid=1000 /bin/sh -c groupadd -g $host_gid $USER_NAME && useradd -g $host_gid -m -s /bin/bash -u $host_uid $USER_NAME # buildkit |
| RUN |2 host_uid=1000 host_gid=1000 /bin/sh -c adduser ${USER_NAME} docker # buildkit |
| RUN |2 host_uid=1000 host_gid=1000 /bin/sh -c mkdir -p /opt/work; chown ${USER_NAME}:${USER_NAME} /opt/work # buildkit |
| RUN |2 host_uid=1000 host_gid=1000 /bin/sh -c sh -c 'touch /host_work_dir; chown ${USER_NAME}:${USER_NAME} /host_work_dir' # buildkit |
| USER builder |
| RUN |2 host_uid=1000 host_gid=1000 /bin/sh -c mkdir -p /home/${USER_NAME}/.ssh # buildkit |
| COPY work_dir.sh /home/builder/bin/ # buildkit |
| RUN |2 host_uid=1000 host_gid=1000 /bin/sh -c ls -altr /home/${USER_NAME}/.ssh # buildkit |
| RUN |2 host_uid=1000 host_gid=1000 /bin/sh -c ssh-keyscan -t rsa bitbucket.org >> /home/${USER_NAME}/.ssh/known_hosts # buildkit |
| COPY aliases /home/builder/.bash_aliases # buildkit |
| WORKDIR /opt/work |
Details
2024-08-27 10:35:32 +00:00
Versions (1)
View all
Container
5
OCI / Docker
linux/amd64
640 MiB
bookworm-backports
2024-08-27