Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfb9f2a2 authored by Nishith  Khanna's avatar Nishith Khanna Committed by Mohammed Althaf T
Browse files

Update ubuntu image to 24.04

parent a2132740
Loading
Loading
Loading
Loading
+9 −19
Original line number Diff line number Diff line
FROM ubuntu:20.04
FROM ubuntu:24.04
MAINTAINER Romain Hunault <romain.hunault@e.email>

# Environment variables
@@ -194,29 +194,19 @@ RUN mkdir -p $USERSCRIPTS_DIR
RUN apt-get -qq update
RUN apt-get -qqy upgrade

RUN apt-get install -y bc bison bsdmainutils build-essential ccache cgpt clang cron \
      curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick img2simg kmod jq \
      lib32ncurses5-dev libncurses5 lib32readline-dev lib32z1-dev libtinfo5 liblz4-tool \
      libncurses5-dev libsdl1.2-dev libssl-dev libxml2 \
      libxml2-utils lsof lzop maven openjdk-8-jdk pngcrush \
      procps python python3 rsync schedtool simg2img squashfs-tools software-properties-common wget xdelta3 xsltproc xxd yasm \
RUN apt-get install -y android-sdk-libsparse-utils bc bison bsdmainutils build-essential ccache cgpt clang cron \
      curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick kmod jq \
      lib32readline-dev lib32z1-dev liblz4-tool \
      libsdl1.2-dev libssl-dev libxml2 \
      libxml2-utils lsof lzop maven pngcrush \
      procps python3 python-is-python3 rsync schedtool squashfs-tools software-properties-common wget xdelta3 xsltproc xxd yasm \
      zip zlib1g-dev

RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo
RUN chmod a+x /usr/local/bin/repo
RUN ln -fs /usr/bin/python3 /usr/bin/python

# Use adoptopenjdk.net to be able to use OpeJDK8 on debian:buster
RUN curl -q https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
RUN add-apt-repository --yes https://packages.adoptium.net/artifactory/deb
RUN apt-get -qq update && apt-get install -y temurin-8-jdk
RUN update-alternatives --set java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java


# Fix jack server SSL issue during build for openjdk (adoptopenjdk won't work for nougat and oreo)
RUN perl -0777 -i -p -e 's/(jdk.tls.disabledAlgorithms=.*?), TLSv1, TLSv1\.1/$1/g' \
      /etc/java-8-openjdk/security/java.security

RUN wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb && dpkg -i libtinfo5_6.3-2_amd64.deb && rm -f libtinfo5_6.3-2_amd64.deb
RUN wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2_amd64.deb && dpkg -i libncurses5_6.3-2_amd64.deb && rm -f libncurses5_6.3-2_amd64.deb

# Set the work directory
########################
+7 −11
Original line number Diff line number Diff line
FROM ubuntu:20.04
FROM ubuntu:24.04
MAINTAINER Romain Hunault <romain.hunault@e.email>

# Environment variables
@@ -177,23 +177,19 @@ RUN mkdir -p $USERSCRIPTS_DIR
RUN apt-get -qq update
RUN apt-get -qqy upgrade

RUN apt-get install -y bc bison bsdmainutils build-essential ccache cgpt clang cron \
RUN apt-get install -y android-sdk-libsparse-utils bc bison bsdmainutils build-essential ccache cgpt clang cron \
      curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick kmod jq \
      lib32ncurses5-dev libncurses5 lib32readline-dev lib32z1-dev libtinfo5 liblz4-tool \
      libncurses5-dev libsdl1.2-dev libssl-dev libxml2 \
      lib32readline-dev lib32z1-dev liblz4-tool \
      libsdl1.2-dev libssl-dev libxml2 \
      libxml2-utils lsof lzop maven pngcrush \
      procps python python3 rsync schedtool squashfs-tools software-properties-common wget xdelta3 xsltproc xxd yasm \
      procps python3 python-is-python3 rsync schedtool squashfs-tools software-properties-common wget xdelta3 xsltproc xxd yasm \
      zip zlib1g-dev

RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo
RUN chmod a+x /usr/local/bin/repo
RUN ln -fs /usr/bin/python3 /usr/bin/python

# Use adoptopenjdk.net to be able to use OpeJDK8 on debian:buster
RUN curl -q https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
RUN add-apt-repository --yes https://packages.adoptium.net/artifactory/deb
RUN apt-get -qq update && apt-get install -y temurin-8-jdk
RUN update-alternatives --set java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java
RUN wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb && dpkg -i libtinfo5_6.3-2_amd64.deb && rm -f libtinfo5_6.3-2_amd64.deb
RUN wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2_amd64.deb && dpkg -i libncurses5_6.3-2_amd64.deb && rm -f libncurses5_6.3-2_amd64.deb

# Set the work directory
########################