From 4a9657f36ccf1d9639fcb2a32e78f38764b70ec5 Mon Sep 17 00:00:00 2001 From: Edoardo Paganoni Date: Thu, 26 Sep 2024 09:22:29 +0000 Subject: [PATCH] Releases MATLAB R2024b Dependencies for Ubuntu 24.04 --- .../matlab-deps-r2024b-ubuntu24.04.yml | 30 +++++++++++ matlab-deps/r2024b/ubuntu24.04/Dockerfile | 50 +++++++++++++++++ .../r2024b/ubuntu24.04/base-dependencies.txt | 54 +++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 .github/workflows/matlab-deps-r2024b-ubuntu24.04.yml create mode 100644 matlab-deps/r2024b/ubuntu24.04/Dockerfile create mode 100644 matlab-deps/r2024b/ubuntu24.04/base-dependencies.txt diff --git a/.github/workflows/matlab-deps-r2024b-ubuntu24.04.yml b/.github/workflows/matlab-deps-r2024b-ubuntu24.04.yml new file mode 100644 index 0000000..b983577 --- /dev/null +++ b/.github/workflows/matlab-deps-r2024b-ubuntu24.04.yml @@ -0,0 +1,30 @@ +# Copyright 2024 The MathWorks, Inc. +# Build & Publish matlab-deps/r2024b/ubuntu24.04 +name: matlab-deps-r2024b-ubuntu24.04 + +# Define when builds will occur: +on: + # Run workflow when there is a push to the 'main' branch & push includes changes to any files in described path + push: + branches: + - 'main' + paths: + - 'matlab-deps/r2024b/ubuntu24.04/**' + + # Run at 00:00 on every Monday (1st Day of the Week) (See: crontab.guru) + schedule: + - cron: '0 0 * * 1' + + workflow_dispatch: + +jobs: + build-and-publish-docker-image: + uses: ./.github/workflows/build-and-publish-docker-image.yml + secrets: inherit + with: + docker_build_context: './matlab-deps/r2024b/ubuntu24.04' + base_image_name: mathworks/matlab-deps + matlab_release_tag: 'r2024b' + os_info_tag: 'ubuntu24.04' + is_default_os: false + should_add_latest_tag: false diff --git a/matlab-deps/r2024b/ubuntu24.04/Dockerfile b/matlab-deps/r2024b/ubuntu24.04/Dockerfile new file mode 100644 index 0000000..78c9adf --- /dev/null +++ b/matlab-deps/r2024b/ubuntu24.04/Dockerfile @@ -0,0 +1,50 @@ +# Copyright 2024 The MathWorks, Inc. +FROM ubuntu:24.04 + +LABEL maintainer="The MathWorks" + +COPY base-dependencies.txt /tmp/base-dependencies.txt + +RUN export DEBIAN_FRONTEND=noninteractive \ + && apt-get update \ + && apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \ + && apt-get clean \ + && apt-get -y autoremove \ + && rm -rf /var/lib/apt/lists/* + +RUN [ -d /usr/share/X11/xkb ] || mkdir -p /usr/share/X11/xkb + +WORKDIR / + +# Uncomment the following RUN apt-get statement if you will be using Simulink +# code generation capabilities, or if you will be compiling your own mex files +# with gcc, g++, or gfortran. +# +#RUN export DEBIAN_FRONTEND=noninteractive && apt-get update -y && apt-get install -y gcc g++ gfortran && apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* + +# Uncomment the following RUN apt-get statement to enable running a program +# that makes use of MATLAB's Engine API for C and Fortran +# https://www.mathworks.com/help/matlab/matlab_external/introducing-matlab-engine.html +# +#RUN export DEBIAN_FRONTEND=noninteractive && apt-get update -y && apt-get install -y csh && apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* + +# Uncomment ALL of the following RUN apt-get statement to enable the playing of media files +# (mp3, mp4, etc.) from within MATLAB. +# +#RUN export DEBIAN_FRONTEND=noninteractive && apt-get update -y && apt-get install --no-install-recommends -y libgstreamer1.0-0 \ +# gstreamer1.0-tools \ +# gstreamer1.0-libav \ +# gstreamer1.0-plugins-base \ +# gstreamer1.0-plugins-good \ +# gstreamer1.0-plugins-bad \ +# gstreamer1.0-plugins-ugly \ +# && apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* + +# Uncomment the following line if you require the fuse filesystem +#RUN export DEBIAN_FRONTEND=noninteractive && apt-get update -y && apt-get install --no-install-recommends -y libfuse2 && apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* + +# Uncomment the following line if you require firefox +#RUN export DEBIAN_FRONTEND=noninteractive && apt-get update -y && apt-get install --no-install-recommends -y firefox && apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* + +# Uncomment to resolve any license manager issues +#RUN ln -s /lib64/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3 diff --git a/matlab-deps/r2024b/ubuntu24.04/base-dependencies.txt b/matlab-deps/r2024b/ubuntu24.04/base-dependencies.txt new file mode 100644 index 0000000..5a12c31 --- /dev/null +++ b/matlab-deps/r2024b/ubuntu24.04/base-dependencies.txt @@ -0,0 +1,54 @@ +ca-certificates +debianutils +libasound2t64 +libatomic1 +libc6 +libcairo-gobject2 +libcairo2 +libcap2 +libcrypt1 +libcups2t64 +libdrm2 +libfontconfig1 +libfribidi0 +libgbm1 +libgdk-pixbuf-2.0-0 +libgl1 +libglib2.0-0t64 +libgstreamer-plugins-base1.0-0 +libgstreamer1.0-0 +libgtk-3-0t64 +libice6 +libltdl7 +libnettle8t64 +libnspr4 +libnss3 +libpam0g +libpango-1.0-0 +libpangocairo-1.0-0 +libpangoft2-1.0-0 +libpixman-1-0 +libsndfile1 +libtirpc3t64 +libudev1 +libuuid1 +libwayland-client0 +libxcomposite1 +libxcursor1 +libxdamage1 +libxfixes3 +libxfont2 +libxft2 +libxinerama1 +libxrandr2 +libxt6t64 +libxtst6 +libxxf86vm1 +locales +locales-all +make +net-tools +procps +sudo +unzip +zlib1g