Skip to content

Commit 1075495

Browse files
committed
Update apt package list
1 parent 7429373 commit 1075495

File tree

6 files changed

+140
-30
lines changed

6 files changed

+140
-30
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.git/
2+
/.github/
3+
/LICENSE.md
4+
/README.md
5+
/SECURITY.md

Dockerfile

Lines changed: 60 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,73 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
LABEL org.opencontainers.image.title="grinn-yocto"
4-
LABEL org.opencontainers.image.description="Grinn Yocto Image"
4+
LABEL org.opencontainers.image.description="Grinn Yocto Build Environment"
5+
LABEL org.opencontainers.image.authors="Grinn <office@grinn-global.com>"
6+
LABEL org.opencontainers.image.url="https://github.com/grinn-global/grinn-yocto-container"
57

6-
ENV LANG=en_US.UTF-8
7-
ENV DEBIAN_FRONTEND=noninteractive
8+
ENV LANG=en_US.UTF-8 \
9+
LANGUAGE=en_US:en \
10+
LC_ALL=en_US.UTF-8 \
11+
DEBIAN_FRONTEND=noninteractive
812

13+
COPY yoctouser /etc/sudoers.d/yoctouser
14+
15+
# https://docs.yoctoproject.org/ref-manual/system-requirements.html
916
RUN apt-get update && \
10-
apt-get install -y --no-install-recommends \
11-
dumb-init \
12-
gawk \
13-
wget \
14-
git \
15-
diffstat \
16-
unzip \
17-
texinfo \
18-
build-essential \
19-
chrpath \
20-
socat \
21-
python3 \
22-
python3-pip \
23-
xz-utils \
24-
locales \
25-
cpio \
26-
sudo && \
17+
apt-get install --yes --no-install-recommends \
18+
bash-completion \
19+
build-essential \
20+
chrpath \
21+
command-not-found \
22+
cpio \
23+
curl \
24+
debianutils \
25+
diffstat \
26+
dumb-init \
27+
file \
28+
gawk \
29+
gcc \
30+
gcc-multilib \
31+
git \
32+
iputils-ping \
33+
iputils-ping \
34+
libacl1 \
35+
liblz4-tool \
36+
locales \
37+
locales \
38+
lsb-release \
39+
net-tools \
40+
python3 \
41+
python3-git \
42+
python3-jinja2 \
43+
python3-pexpect \
44+
python3-pip \
45+
python3-subunit \
46+
rsync \
47+
socat \
48+
sudo \
49+
texinfo \
50+
tzdata \
51+
unzip \
52+
vim-tiny \
53+
wget \
54+
xz-utils \
55+
zstd && \
56+
apt-get clean && \
57+
rm -rf /var/lib/apt/lists/* && \
2758
\
28-
locale-gen en_US.UTF-8 && \
59+
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
60+
locale-gen && \
2961
\
30-
echo 'dash dash/sh boolean false' | debconf-set-selections && \
31-
dpkg-reconfigure -f noninteractive dash && \
62+
chmod 0440 /etc/sudoers.d/yoctouser && \
3263
\
64+
userdel -r ubuntu && \
3365
useradd -m -s /bin/bash yoctouser && \
34-
chmod 0440 /etc/sudoers.d/yoctouser && \
66+
usermod -aG sudo yoctouser && \
3567
\
36-
apt-get clean && \
37-
rm -rf /var/lib/apt/lists/*
38-
39-
COPY sudoers-yoctouser /etc/sudoers.d/yoctouser
68+
touch /home/yoctouser/.sudo_as_admin_successful && \
69+
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' /home/yoctouser/.bashrc && \
70+
echo '\nexport PS1="🐢 $PS1"' >> /home/yoctouser/.bashrc
4071

4172
USER yoctouser
4273
WORKDIR /home/yoctouser

LICENSE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# The MIT License (MIT)
2+
3+
Copyright © 2025 Grinn sp. z o.o.
4+
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the “Software”), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# Grinn Yocto Container
22

3+
The `grinn-yocto-container` is a container image built on Ubuntu, specifically designed to support Yocto development. It comes preconfigured with essential build tools, libraries, and settings required to efficiently compile Yocto-based projects.
4+
5+
## Prerequisites
6+
7+
Ensure that Docker is installed on your system by following the official installation guide [here](https://docs.docker.com/get-docker/).
8+
Alternatively, Podman is also supported; installation instructions are available [here](https://podman.io/getting-started/installation).
9+
10+
## Building the Container
11+
12+
To build the container image, clone this repository and navigate to the directory containing the Dockerfile. Then, run the following command:
13+
14+
```bash
15+
docker build -t grinn-yocto-container .
16+
```
17+
or if you are using Podman:
18+
19+
```bash
20+
podman build -t grinn-yocto-container .
21+
```
22+
23+
## Pulling the Pre-built Container
24+
25+
If you prefer not to build the container yourself, you can pull a pre-built version from the GitHub Container Registry. Use the following command:
26+
27+
```bash
28+
docker pull ghcr.io/grinn-global/grinn-yocto-container
29+
```
30+
or if you are using Podman:
31+
32+
```bash
33+
podman pull ghcr.io/grinn-global/grinn-yocto-container
334
```
4-
$ docker run -it --volume=$(pwd):$(pwd) --workdir=$(pwd) ghcr.io/grinn-global/grinn-yocto-container
35+
36+
This command will download the latest version of the container image, which is maintained and updated by the Grinn team.
37+
38+
## Running the Container
39+
40+
The container can be run interactively:
41+
42+
```bash
43+
docker run -it grinn-yocto-container
544
```
45+
46+
This will start the container with a bash shell, where you can begin using the Yocto development tools.
47+
48+
## Usage
49+
50+
Upon entering the container, you will be greeted with a prompt, featuring a happy turtle icon. The environment is pre-configured with a user `yoctouser`, who has sudo privileges. This user can be utilized to carry out any required installations or system configurations.

SECURITY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Security Policy
2+
3+
If you find a security issue, please email us at [office@grinn-global.com>](mailto:office@grinn-global.com). Do **not** open a public issue.
4+
5+
We aim to respond as quickly as possible, but please understand that we may not be able to provide a fix immediately. We will keep you updated on our progress.
File renamed without changes.

0 commit comments

Comments
 (0)