Skip to content

Commit

Permalink
Ubuntu 24.04でのビルドを追加。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed May 1, 2024
1 parent baf343a commit 7d7c00c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
pkgtype: deb
- dockerimg: ubuntu2204
pkgtype: deb
- dockerimg: ubuntu2404
pkgtype: deb
- dockerimg: fedora32
pkgtype: rpm

Expand Down
5 changes: 5 additions & 0 deletions build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ if [ -e /etc/lsb-release ]; then
PACKAGE_DEPENDS="${PACKAGE_DEPENDS},intel-media-va-driver-non-free,intel-opencl-icd,libmfx1,libmfxgen1|libmfx-gen1.2"
PACKAGE_DEPENDS="${PACKAGE_DEPENDS},libva-drm2,libva-x11-2,libigfxcmrt7"
PACKAGE_DEPENDS="${PACKAGE_DEPENDS},libavcodec58,libavutil56,libavformat58,libswresample3,libavfilter7,libavdevice58,libass9"
elif [ "${PACKAGE_OS_CODENAME}" = "noble" ]; then
PACKAGE_DEPENDS="libc6(>=2.29),libstdc++6(>=6)"
PACKAGE_DEPENDS="${PACKAGE_DEPENDS},intel-media-va-driver-non-free,intel-opencl-icd,libmfx1,libmfxgen1|libmfx-gen1.2"
PACKAGE_DEPENDS="${PACKAGE_DEPENDS},libva-drm2,libva-x11-2,libigfxcmrt7"
PACKAGE_DEPENDS="${PACKAGE_DEPENDS},libavcodec60,libavutil58,libavformat60,libswresample4,libavfilter9,libavdevice60,libass9"
else
echo "${PACKAGE_OS_ID}${PACKAGE_OS_VER} ${PACKAGE_OS_CODENAME} not supported in this script!"
exit 1
Expand Down
44 changes: 44 additions & 0 deletions docker/docker_ubuntu2404
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM ubuntu:24.04

ARG DEBIAN_FRONTEND=noninteractive \
LOCAL_USER_ID=1000 \
LOCAL_GROUP_ID=1000

RUN apt-get update \
&& apt install -y \
wget \
git \
cmake \
intel-media-va-driver-non-free \
libva-drm2 \
libva-x11-2 \
libva-glx2 \
libx11-dev \
libigfxcmrt7 \
libva-dev \
libdrm-dev \
opencl-headers \
build-essential \
libavcodec60 \
libavcodec-dev \
libavutil58 \
libavutil-dev \
libavformat60 \
libavformat-dev \
libswresample4 \
libswresample-dev \
libavfilter9 \
libavfilter-dev \
libavdevice60 \
libavdevice-dev \
libass9 \
libass-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN useradd -u $LOCAL_USER_ID -m --user-group --shell /bin/bash rigaya
RUN groupmod -g $LOCAL_GROUP_ID rigaya
WORKDIR /home/rigaya
COPY . .
RUN chown -R rigaya:rigaya .
USER rigaya

0 comments on commit 7d7c00c

Please sign in to comment.