Skip to content

Commit

Permalink
Update base image to ubuntu:22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
dimonzozo committed May 13, 2024
1 parent e667c92 commit 1fa715a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
branches:
- 'master'

env:
TEST_TAG: enapter/rockamalg:latest
jobs:
docker:
runs-on: ubuntu-latest
Expand Down
27 changes: 9 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
#
# Docker image to build Yocto 4.2
# Docker image to build Yocto 5.0
#
FROM ubuntu:20.04
FROM ubuntu:22.04

# Keep the dependency list as short as reasonable
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y bc bison bsdmainutils build-essential curl locales \
flex g++-multilib gcc-multilib git gnupg gperf lib32ncurses-dev \
lib32z1-dev libncurses5-dev git-lfs \
libsdl1.2-dev libxml2-utils lzop \
openjdk-8-jdk lzop wget unzip \
genisoimage sudo socat xterm gawk cpio texinfo \
gettext vim diffstat chrpath \
python-mako libusb-1.0-0-dev exuberant-ctags \
pngcrush schedtool xsltproc zip zlib1g-dev libswitch-perl \
screen rsync jq python3-pip docker.io parted liblz4-tool zstd \
mtools && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
gawk wget git diffstat unzip texinfo gcc build-essential chrpath \
socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
iputils-ping python3-git python3-jinja2 python3-subunit zstd \
liblz4-tool file locales libacl1 bc bison curl flex gnupg gperf \
lzop wget unzip sudo socat gettext zip screen rsync jq parted liblz4-tool \
zstd mtools && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN pip3 install yq

ADD https://commondatastorage.googleapis.com/git-repo-downloads/repo /usr/local/bin/
RUN chmod 755 /usr/local/bin/*

RUN groupadd --gid 1000 build && \
useradd --uid 1000 --gid 1000 --create-home build && \
echo "build ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/build && \
Expand All @@ -40,7 +33,5 @@ ENV TMPDIR /home/build/tmp
ENV HOME /home/build
ENV USER build

ENV PATH="$PATH:/home/build/.local/bin"

USER build
WORKDIR /home/build

0 comments on commit 1fa715a

Please sign in to comment.