Skip to content

Commit

Permalink
Ubuntu: add 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
moto-timo committed Aug 3, 2024
1 parent 50ee6bd commit f361612
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
opensuse-15.5,
ubuntu-18.04,
ubuntu-20.04,
ubuntu-22.04
ubuntu-22.04,
ubuntu-24.04
]
targetplatform: [
linux/amd64
Expand Down
72 changes: 72 additions & 0 deletions dockerfiles/ubuntu/ubuntu-24.04/ubuntu-24.04-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# ubuntu-24.04-base
# Copyright (C) 2020-2021 Intel Corporation
# Copyright (C) 2022-2024 Konsulko Group
#
# SPDX-License-Identifier: GPL-2.0-only
#

FROM ubuntu:24.04

ARG TARGETPLATFORM

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
gawk \
wget \
git-core \
subversion \
diffstat \
unzip \
sysstat \
texinfo \
build-essential \
chrpath \
socat \
python3 \
python3-pip \
python3-pexpect \
python3-virtualenv \
xz-utils \
locales \
cpio \
screen \
tmux \
sudo \
iputils-ping \
python3-git \
python3-jinja2 \
libegl1-mesa \
libsdl1.2-dev \
pylint \
xterm \
iproute2 \
fluxbox \
tightvncserver \
lz4 \
zstd \
file && \
case ${TARGETPLATFORM} in \
"linux/amd64") \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
gcc-multilib \
g++-multilib \
;; \
esac && \
cp -af /etc/skel/ /etc/vncskel/ && \
echo "export DISPLAY=1" >>/etc/vncskel/.bashrc && \
mkdir /etc/vncskel/.vnc && \
echo "" | vncpasswd -f > /etc/vncskel/.vnc/passwd && \
chmod 0600 /etc/vncskel/.vnc/passwd && \
useradd -U -m yoctouser && \
/usr/sbin/locale-gen en_US.UTF-8 && \
echo 'dash dash/sh boolean false' | debconf-set-selections && \
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash

COPY build-install-dumb-init.sh /
RUN bash /build-install-dumb-init.sh && \
rm /build-install-dumb-init.sh && \
apt-get clean

USER yoctouser
WORKDIR /home/yoctouser
CMD /bin/bash

0 comments on commit f361612

Please sign in to comment.