Initial Version

This commit is contained in:
Justin Hammond 2023-06-20 16:26:42 +08:00
commit 8f8defda83
3 changed files with 27 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM ghcr.io/crops/yocto:ubuntu-20.04-base
LABEL maintainer="Justin Hammond <justin@dynam.ac>"
USER root
COPY sudoers.usersetup /etc/
COPY entrypoint.sh /
RUN echo "#include /etc/sudoers.usersetup" >> /etc/sudoers && \
apt -y install git-lfs joe mc
USER yoctouser
ENTRYPOINT ["/entrypoint.sh"]

12
entrypoint.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
# Copyright (C) 2019-2021 Intel Corporation
#
# SPDX-License-Identifier: GPL-2.0-only
#
if [ -e ${HOME}/setup.sh ]; then
# Buildtools has been installed so enable it
. ${HOME}/setup.sh || exit 1
fi
exec "/bin/bash"

1
sudoers.usersetup Normal file
View file

@ -0,0 +1 @@
yoctouser ALL=(ALL) NOPASSWD:ALL