Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: update alpine version #3040

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- Correct two typos.
- debian12: fix script error
- Docker image usability
- Docker: update alpine version
- Enhances default javascript files to check config file options
- Expand firewall advice in docs
- Fix build-deb.sh for releases
Expand All @@ -42,6 +43,7 @@
- Sqlite: Harden delete
- Take configuration into account when creating virtual-layout (built-in + JS)
- Update Conan to v2
- Update screenshots to latest version
- Update various library versions
- Update workflow actions
- WebUI: Add Item View
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ FROM ${BASE_IMAGE} AS gerbera
RUN apk add --no-cache \
curl \
duktape \
ffmpeg4 \
ffmpeg4-libavutil \
ffmpeg4-libavformat \
ffmpeg4-libavcodec \
ffmpeg4-libavfilter \
libjpeg \
file \
fmt \
Expand Down
10 changes: 8 additions & 2 deletions Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# docker build -t gerbera-debug . -f Dockerfile.debug
ARG BASE_IMAGE=alpine:3.19
ARG BASE_IMAGE=alpine:edge
FROM ${BASE_IMAGE} AS builder

RUN apk add --no-cache \
Expand Down Expand Up @@ -92,11 +92,13 @@ RUN ./install-libexiv2.sh
# Build Gerbera
WORKDIR /gerbera_build
COPY . .
# Building with test somehow broken (missing GMock)
RUN cmake -S . -B build --preset=develop \
-DWITH_SYSTEMD=NO \
-DWITH_TESTS=NO \
&& \
cmake --build build -v -j$(nproc) && \
cmake --build build -v -t test ARGS="--output-on-failure"
# cmake --build build -v -t test ARGS="--output-on-failure"

FROM ${BASE_IMAGE} AS gerbera
RUN apk add --no-cache \
Expand All @@ -114,6 +116,10 @@ RUN apk add --no-cache \
util-linux \
zlib \
ffmpeg4 \
ffmpeg4-libavutil \
ffmpeg4-libavformat \
ffmpeg4-libavcodec \
ffmpeg4-libavfilter \
libjpeg \
libheif-tools \
# libexecinfo \
Expand Down
3 changes: 2 additions & 1 deletion ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ custom headers for particular clients.

### Code Improvements

- Restructuring files
- Restructuring files and refactoring classes
- Update versions of fmt (10.2.1), spdlog (1.13.0), libexiv2 (0.28.2), npupnp (6.1.1), pugixml (1.14), wavpack (5.7.0)
- WebUI: Update versions of jquery (3.7.1) and tether (2.0.0)
- Docker: Update Alpine version (3.19)
- Build System: Use cmake presets
- Build System: Update Conan to V2
- Build System: Support build with NPUPNP
Expand Down
31 changes: 1 addition & 30 deletions scripts/install-googletest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,41 +24,12 @@ set -Eeuo pipefail

VERSION="${GOOGLETEST-1.11.0}"

set -e

script_dir=`pwd -P`
src_dir="${script_dir}/gtest-${VERSION}"
tgz_file="${script_dir}/gtest-${VERSION}.tgz"

##
## Install the latest version of GoogleTest
##

## Download GoogleTest from GitHub
set +e
wget https://github.com/google/googletest/archive/refs/tags/release-${VERSION}.tar.gz -O "${tgz_file}"
if [ $? -eq 8 ]; then
set -e
wget https://github.com/google/googletest/archive/refs/tags/v${VERSION}.tar.gz -O "${tgz_file}"
else
exit
fi
set -e

if [ -d "${src_dir}" ]; then
rm -r ${src_dir}
fi
mkdir "${src_dir}"
tar -xvf "${tgz_file}" --strip-components=1 -C "${src_dir}"
cd "${src_dir}"

## Build GoogleTest using CMake

if [ -d build ]; then
rm -R build
fi
mkdir build
cd build
downloadSource https://github.com/google/googletest/archive/refs/tags/release-${VERSION}.tar.gz https://github.com/google/googletest/archive/refs/tags/v${VERSION}.tar.gz

cmake -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS:-} -std=c++17" -DBUILD_GMOCK=1 ..

Expand Down
3 changes: 1 addition & 2 deletions scripts/install-matroska.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ set -Eeuo pipefail

VERSION="${MATROSKA-1.6.3}"

#script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
script_dir=`pwd -P`
src_dir="${script_dir}/libmatroska-${VERSION}"
tgz_file="${script_dir}/libmatroska-${VERSION}.tar.gz"

BUILD_SHARED=YES

if [ $# -gt 0 ]; then
if [ "$1" = "static" ]; then
if [ "${1}" = "static" ]; then
BUILD_SHARED=NO
fi
fi
Expand Down
22 changes: 16 additions & 6 deletions scripts/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,31 @@ fi

function downloadSource()
{
if [ ! -f "${tgz_file}" ]; then
wget ${1} -O "${tgz_file}"
if [[ ! -f "${tgz_file}" ]]; then
if [[ $# -gt 1 ]]; then
set +e
fi
wget ${1} -O "${tgz_file}"
if [[ $? -eq 8 && $# -gt 1 ]]; then
set -e
wget ${2} -O "${tgz_file}"
elif [[ $# -gt 1 ]]; then
exit $?
fi
set -e
fi

if [ -d "${src_dir}" ]; then
rm -r ${src_dir}
if [[ -d "${src_dir}" ]]; then
# exit
rm -r "${src_dir}"
fi
mkdir "${src_dir}"

tar -xvf "${tgz_file}" --strip-components=1 -C "${src_dir}"

cd "${src_dir}"

if [ -d build ]; then
if [[ -d build ]]; then
rm -R build
fi
mkdir build
Expand Down Expand Up @@ -125,4 +136,3 @@ function ldConfig()
fi
fi
}