mirror of
https://github.com/levogevo/ffmpeg-builder.git
synced 2026-01-15 19:06:17 +00:00
update docker base images shas
This commit is contained in:
15
lib/build.sh
15
lib/build.sh
@@ -61,8 +61,11 @@ set_compile_opts() {
|
|||||||
LDFLAGS_ARR=("-L${LIBDIR}")
|
LDFLAGS_ARR=("-L${LIBDIR}")
|
||||||
|
|
||||||
# HACK rope in libm
|
# HACK rope in libm
|
||||||
if is_android; then
|
if is_android && [[ ! -f "${LIBDIR}/libm.so" ]]; then
|
||||||
test -f "${LIBDIR}/libm.so" || ln -s /system/lib64/libm.so "${LIBDIR}/libm.so"
|
LDFLAGS_ARR+=(
|
||||||
|
"-L/system/lib64"
|
||||||
|
"-lm"
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# use clang
|
# use clang
|
||||||
@@ -110,12 +113,13 @@ ld.lld:ld:lld:ld"
|
|||||||
echo "#!/usr/bin/env bash
|
echo "#!/usr/bin/env bash
|
||||||
echo \$@ > ${compilerDir}/${genericT}.\${RANDOM}
|
echo \$@ > ${compilerDir}/${genericT}.\${RANDOM}
|
||||||
exec \"${realT}\" ${addFlag} \"\$@\"" >"${compilerDir}/${genericT}"
|
exec \"${realT}\" ${addFlag} \"\$@\"" >"${compilerDir}/${genericT}"
|
||||||
|
chmod +x "${compilerDir}/${genericT}"
|
||||||
|
echo_if_fail "${compilerDir}/${genericT}" --version
|
||||||
|
|
||||||
# copy generic to gnu/clang variants
|
# copy generic to gnu/clang variants
|
||||||
# cp "${compilerDir}/${genericT}" "${compilerDir}/${gnuT}" 2>/dev/null
|
# cp "${compilerDir}/${genericT}" "${compilerDir}/${gnuT}" 2>/dev/null
|
||||||
# cp "${compilerDir}/${genericT}" "${compilerDir}/${clangT}" 2>/dev/null
|
# cp "${compilerDir}/${genericT}" "${compilerDir}/${clangT}" 2>/dev/null
|
||||||
done <<<"${compilerMap}"
|
done <<<"${compilerMap}"
|
||||||
chmod +x "${compilerDir}"/*
|
|
||||||
export PATH="${compilerDir}:${PATH}"
|
export PATH="${compilerDir}:${PATH}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -214,10 +218,7 @@ exec \"${realT}\" ${addFlag} \"\$@\"" >"${compilerDir}/${genericT}"
|
|||||||
"-DCMAKE_EXE_LINKER_FLAGS=${LDFLAGS_ARR[*]}"
|
"-DCMAKE_EXE_LINKER_FLAGS=${LDFLAGS_ARR[*]}"
|
||||||
)
|
)
|
||||||
FFMPEG_EXTRA_FLAGS+=("--extra-ldflags=${LDFLAGS_ARR[*]}")
|
FFMPEG_EXTRA_FLAGS+=("--extra-ldflags=${LDFLAGS_ARR[*]}")
|
||||||
LDFLAGS_ARR+=(
|
LDFLAGS_ARR+=("-Wl,-rpath,${LIBDIR}")
|
||||||
"-Wl,-rpath,${LIBDIR}"
|
|
||||||
"-Wl,-rpath-link,${LIBDIR}"
|
|
||||||
)
|
|
||||||
CONFIGURE_FLAGS+=(
|
CONFIGURE_FLAGS+=(
|
||||||
'--enable-shared'
|
'--enable-shared'
|
||||||
'--disable-static'
|
'--disable-static'
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ get_docker_image_tag() {
|
|||||||
local image="$1"
|
local image="$1"
|
||||||
local tag=''
|
local tag=''
|
||||||
case "${image}" in
|
case "${image}" in
|
||||||
ubuntu) tag='ubuntu:24.04@sha256:9cbed754112939e914291337b5e554b07ad7c392491dba6daf25eef1332a22e8' ;;
|
ubuntu) tag='ubuntu:24.04@sha256:c35e29c9450151419d9448b0fd75374fec4fff364a27f176fb458d472dfc9e54' ;;
|
||||||
debian) tag='debian:13@sha256:833c135acfe9521d7a0035a296076f98c182c542a2b6b5a0fd7063d355d696be' ;;
|
debian) tag='debian:13@sha256:0d01188e8dd0ac63bf155900fad49279131a876a1ea7fac917c62e87ccb2732d' ;;
|
||||||
fedora) tag='fedora:42@sha256:6af051ad0a294182c3a957961df6203d91f643880aa41c2ffe3d1302e7505890' ;;
|
fedora) tag='fedora:42@sha256:b3d16134560afa00d7cc2a9e4967eb5b954512805f3fe27d8e70bbed078e22ea' ;;
|
||||||
archlinux) tag='ogarcia/archlinux:latest@sha256:b93f426b23cd0ea0e1befd7d58a26eaf3e6eda3c154c0e8dd75145d11c21304c' ;;
|
archlinux) tag='ogarcia/archlinux:latest@sha256:1d70273180e43b1f51b41514bdaa73c61f647891a53a9c301100d5c4807bf628' ;;
|
||||||
esac
|
esac
|
||||||
echo "${tag}"
|
echo "${tag}"
|
||||||
}
|
}
|
||||||
@@ -178,10 +178,15 @@ docker_build_image() {
|
|||||||
# install cargo-c
|
# install cargo-c
|
||||||
echo "RUN cargo-binstall -y cargo-c"
|
echo "RUN cargo-binstall -y cargo-c"
|
||||||
|
|
||||||
|
# final mods for PS1
|
||||||
|
echo 'USER root'
|
||||||
|
echo "RUN echo \"PS1='id=\\\$(id -u)@${image}:\w\\$ '\" >> /etc/bash.bashrc"
|
||||||
|
echo 'USER 65534:65534'
|
||||||
|
|
||||||
echo "WORKDIR ${DOCKER_WORKDIR}"
|
echo "WORKDIR ${DOCKER_WORKDIR}"
|
||||||
|
|
||||||
} >"${dockerfile}"
|
} >"${dockerfile}"
|
||||||
|
# return 1
|
||||||
image_tag="$(set_distro_image_tag "${image}")"
|
image_tag="$(set_distro_image_tag "${image}")"
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--platform "${PLATFORM}" \
|
--platform "${PLATFORM}" \
|
||||||
|
|||||||
@@ -67,12 +67,12 @@ print_req_pkgs() {
|
|||||||
"${common_linux_pkgs[@]}" pipx
|
"${common_linux_pkgs[@]}" pipx
|
||||||
build-essential libssl-dev gobjc++
|
build-essential libssl-dev gobjc++
|
||||||
mawk libc6-dev mediainfo ninja-build
|
mawk libc6-dev mediainfo ninja-build
|
||||||
mkvtoolnix libgtest-dev
|
mkvtoolnix libgtest-dev lld
|
||||||
)
|
)
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
local pacman_pkgs=(
|
local pacman_pkgs=(
|
||||||
"${common_linux_pkgs[@]}" base-devel
|
"${common_linux_pkgs[@]}" base-devel
|
||||||
python-pipx ninja
|
python-pipx ninja lld
|
||||||
)
|
)
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
local dnf_pkgs=(
|
local dnf_pkgs=(
|
||||||
@@ -157,6 +157,7 @@ check_for_req_pkgs() {
|
|||||||
|
|
||||||
echo_pass "packages from ${pkg_mgr} installed"
|
echo_pass "packages from ${pkg_mgr} installed"
|
||||||
has_cmd pipx || echo_if_fail python3 -m pip install --user pipx || return 1
|
has_cmd pipx || echo_if_fail python3 -m pip install --user pipx || return 1
|
||||||
|
has_cmd pipx || echo_if_fail python3 -m pipx ensurepath && source ~/.bashrc || return 1
|
||||||
echo_if_fail pipx install virtualenv || return 1
|
echo_if_fail pipx install virtualenv || return 1
|
||||||
echo_if_fail pipx ensurepath || return 1
|
echo_if_fail pipx ensurepath || return 1
|
||||||
has_cmd meson || echo_if_fail pipx install meson || return 1
|
has_cmd meson || echo_if_fail pipx install meson || return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user