Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions android-ubuntu-24.04/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
FROM ubuntu:24.04

RUN \
apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
bc \
bison \
bsdmainutils \
build-essential \
chrpath \
cpio \
diffstat \
file \
flex \
g++-multilib \
gawk \
gcc-multilib \
git-core \
gnupg \
iputils-ping \
less \
libegl1-mesa-dev \
libgmp-dev \
libmpc-dev \
libncurses-dev \
libsdl1.2-dev \
libssl-dev \
locales \
lz4 \
openssh-client \
pylint \
python3 \
python3-git \
python3-jinja2 \
python3-pexpect \
python3-pip \
python-is-python3 \
socat \
sudo \
texinfo \
tmux \
unzip \
vim \
wget \
xterm \
zstd \
&& rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN \
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* && \
wget -O /usr/local/bin/phyLinux https://download.phytec.de/Software/Linux/Yocto/Tools/phyLinux && \
chmod a+x /usr/local/bin/phyLinux && \
wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && \
chmod a+x /usr/local/bin/repo

# Additional Android packages
RUN \
apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
curl \
dwarves \
fontconfig \
git-core \
lib32z1-dev \
libc6-dev-i386 \
libelf-dev \
libgl1-mesa-dev \
libtinfo6 \
libx11-dev \
libxml2-utils \
rsync \
swig \
python3-dev \
x11proto-core-dev \
xsltproc \
zip \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8

# Android requires libncurses5 and libtinfo5 but Ubuntu doesn't provide them anymore
RUN ln -s /usr/lib/x86_64-linux-gnu/libncurses.so.6 /usr/lib/x86_64-linux-gnu/libncurses.so.5
RUN ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smk-embedded this is a little bit hacky but Android still requires libncurses and libtinfo 5. Do you know a better way to install those older versions? There are no apt packages anymore. I think one solution is to manually download them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this hack is fine, we do not need to fix all use-cases here

52 changes: 26 additions & 26 deletions python-ubuntu-22.04/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@ FROM ubuntu:22.04

ENV DEBIAN_FRONTEND noninteractive
RUN \
apt-get update -y && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
build-essential \
curl \
git \
libbz2-dev \
libedit-dev \
libeditreadline-dev \
libffi-dev \
liblzma-dev \
libncurses5-dev \
libsqlite3-dev \
libssl-dev \
lzma-dev \
make \
openssh-client \
tk-dev \
tox \
&& rm -rf /var/lib/apt/lists/*
apt-get update -y && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
build-essential \
curl \
git \
libbz2-dev \
libedit-dev \
libeditreadline-dev \
libffi-dev \
liblzma-dev \
libncurses5-dev \
libsqlite3-dev \
libssl-dev \
lzma-dev \
make \
openssh-client \
tk-dev \
tox \
&& rm -rf /var/lib/apt/lists/*

ENV LANGUAGE='en_US:en'

# Install ``pyenv``.
ENV PYENV_ROOT "/root/.pyenv"
RUN git clone https://github.com/pyenv/pyenv $PYENV_ROOT \
&& cd $PYENV_ROOT \
&& src/configure \
&& make -C src
&& cd $PYENV_ROOT \
&& src/configure \
&& make -C src

ARG PYTHON_VERSIONS="3.8 3.9 3.10 3.11 3.12"

ENV PATH "$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
# Install pyhon versions
RUN echo "install python start" \
&& pyenv install ${PYTHON_VERSIONS} \
&& pyenv global `pyenv versions --bare` \
&& pyenv rehash \
&& pyenv install ${PYTHON_VERSIONS} \
&& pyenv global `pyenv versions --bare` \
&& pyenv rehash \
20 changes: 10 additions & 10 deletions yocto-debian-12/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
FROM debian:bookworm-20230814

RUN \
apt-get clean && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y -q --no-install-recommends \
apt-get clean && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y -q --no-install-recommends \
build-essential \
chrpath \
cpio \
Expand Down Expand Up @@ -35,14 +35,14 @@ RUN \
wget \
xz-utils \
zstd \
&& rm -rf /var/lib/apt/lists/* && \
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && \
locale-gen
&& rm -rf /var/lib/apt/lists/* && \
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && \
locale-gen

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN \
wget -O /usr/local/bin/phyLinux https://download.phytec.de/Software/Linux/Yocto/Tools/phyLinux && \
chmod a+x /usr/local/bin/phyLinux && \
wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && \
chmod a+x /usr/local/bin/repo
wget -O /usr/local/bin/phyLinux https://download.phytec.de/Software/Linux/Yocto/Tools/phyLinux && \
chmod a+x /usr/local/bin/phyLinux && \
wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && \
chmod a+x /usr/local/bin/repo
70 changes: 35 additions & 35 deletions yocto-ubuntu-16.04/Containerfile
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
FROM ubuntu:16.04

RUN \
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
build-essential \
chrpath \
cpio \
diffstat \
file \
g++-multilib \
gawk \
gcc-multilib \
git-core \
locales \
openssh-client \
python \
python3 \
rsync \
socat \
sudo \
texinfo \
tmux \
unzip \
vim \
wget \
&& rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
build-essential \
chrpath \
cpio \
diffstat \
file \
g++-multilib \
gawk \
gcc-multilib \
git-core \
locales \
openssh-client \
python \
python3 \
rsync \
socat \
sudo \
texinfo \
tmux \
unzip \
vim \
wget \
&& rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN \
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* && \
wget -O /usr/local/bin/phyLinux https://download.phytec.de/Software/Linux/Yocto/Tools/phyLinux && \
chmod a+x /usr/local/bin/phyLinux && \
wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && \
chmod a+x /usr/local/bin/repo
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* && \
wget -O /usr/local/bin/phyLinux https://download.phytec.de/Software/Linux/Yocto/Tools/phyLinux && \
chmod a+x /usr/local/bin/phyLinux && \
wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && \
chmod a+x /usr/local/bin/repo
72 changes: 36 additions & 36 deletions yocto-ubuntu-18.04/Containerfile
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
FROM ubuntu:18.04

RUN \
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
build-essential \
chrpath \
cpio \
diffstat \
file \
g++-multilib \
gawk \
gcc-multilib \
git-core \
locales \
openssh-client \
python \
python3 \
python3-distutils \
rsync \
socat \
sudo \
texinfo \
tmux \
unzip \
vim \
wget \
&& rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
build-essential \
chrpath \
cpio \
diffstat \
file \
g++-multilib \
gawk \
gcc-multilib \
git-core \
locales \
openssh-client \
python \
python3 \
python3-distutils \
rsync \
socat \
sudo \
texinfo \
tmux \
unzip \
vim \
wget \
&& rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

RUN \
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* && \
wget -O /usr/local/bin/phyLinux https://download.phytec.de/Software/Linux/Yocto/Tools/phyLinux && \
chmod a+x /usr/local/bin/phyLinux && \
wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && \
chmod a+x /usr/local/bin/repo
apt-get update && \
apt-get install -y -q --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* && \
wget -O /usr/local/bin/phyLinux https://download.phytec.de/Software/Linux/Yocto/Tools/phyLinux && \
chmod a+x /usr/local/bin/phyLinux && \
wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && \
chmod a+x /usr/local/bin/repo
Loading