mirror of
https://github.com/Fishwaldo/yoctobuilder.git
synced 2025-03-15 19:51:46 +00:00
Initial Version
This commit is contained in:
commit
8f8defda83
3 changed files with 27 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
12
entrypoint.sh
Executable 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
1
sudoers.usersetup
Normal file
|
@ -0,0 +1 @@
|
|||
yoctouser ALL=(ALL) NOPASSWD:ALL
|
Loading…
Add table
Reference in a new issue