Clean up debian-arm64 build steps
This commit is contained in:
parent
07d45e82f0
commit
d9f6c6f289
|
@ -12,7 +12,7 @@ ENV ARCH=amd64
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y apt-transport-https debhelper gnupg wget devscripts mmv
|
&& apt-get install -y apt-transport-https debhelper gnupg wget npm devscripts mmv
|
||||||
|
|
||||||
# Install dotnet repository
|
# Install dotnet repository
|
||||||
# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
|
# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
|
||||||
|
@ -29,12 +29,6 @@ RUN dpkg --add-architecture arm64 \
|
||||||
&& cd cross-gcc-packages-amd64/cross-gcc-8-arm64 \
|
&& cd cross-gcc-packages-amd64/cross-gcc-8-arm64 \
|
||||||
&& apt-get install -y gcc-8-source libstdc++-8-dev-arm64-cross binutils-aarch64-linux-gnu bison flex libtool gdb sharutils netbase libmpc-dev libmpfr-dev libgmp-dev systemtap-sdt-dev autogen expect chrpath zlib1g-dev zip libc6-dev:arm64 linux-libc-dev:arm64 libgcc1:arm64 libcurl4-openssl-dev:arm64 libfontconfig1-dev:arm64 libfreetype6-dev:arm64 libssl-dev:arm64 liblttng-ust0:arm64 libstdc++-8-dev:arm64
|
&& apt-get install -y gcc-8-source libstdc++-8-dev-arm64-cross binutils-aarch64-linux-gnu bison flex libtool gdb sharutils netbase libmpc-dev libmpfr-dev libgmp-dev systemtap-sdt-dev autogen expect chrpath zlib1g-dev zip libc6-dev:arm64 linux-libc-dev:arm64 libgcc1:arm64 libcurl4-openssl-dev:arm64 libfontconfig1-dev:arm64 libfreetype6-dev:arm64 libssl-dev:arm64 liblttng-ust0:arm64 libstdc++-8-dev:arm64
|
||||||
|
|
||||||
# Install yarn package manager
|
|
||||||
RUN wget -q -O- https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
|
||||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
|
|
||||||
&& apt update \
|
|
||||||
&& apt install -y yarn
|
|
||||||
|
|
||||||
# Link to docker-build script
|
# Link to docker-build script
|
||||||
RUN ln -sf ${PLATFORM_DIR}/docker-build.sh /docker-build.sh
|
RUN ln -sf ${PLATFORM_DIR}/docker-build.sh /docker-build.sh
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ ENV ARCH=arm64
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y apt-transport-https debhelper gnupg wget devscripts mmv libc6-dev libcurl4-openssl-dev libfontconfig1-dev libfreetype6-dev libssl-dev liblttng-ust0
|
&& apt-get install -y apt-transport-https debhelper gnupg wget npm devscripts mmv libc6-dev libcurl4-openssl-dev libfontconfig1-dev libfreetype6-dev libssl-dev liblttng-ust0
|
||||||
|
|
||||||
# Install dotnet repository
|
# Install dotnet repository
|
||||||
# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
|
# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
|
||||||
|
|
|
@ -11,20 +11,6 @@ pushd ${SOURCE_DIR}
|
||||||
# Remove build-dep for dotnet-sdk-2.2, since it's not a package in this image
|
# Remove build-dep for dotnet-sdk-2.2, since it's not a package in this image
|
||||||
sed -i '/dotnet-sdk-2.2,/d' debian/control
|
sed -i '/dotnet-sdk-2.2,/d' debian/control
|
||||||
|
|
||||||
# Clone down and build Web frontend
|
|
||||||
web_build_dir="$( mktemp -d )"
|
|
||||||
web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|
||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
|
||||||
pushd ${web_build_dir}
|
|
||||||
if [[ -n ${web_branch} ]]; then
|
|
||||||
checkout -b origin/${web_branch}
|
|
||||||
fi
|
|
||||||
yarn install
|
|
||||||
mkdir -p ${web_target}
|
|
||||||
mv dist/* ${web_target}/
|
|
||||||
popd
|
|
||||||
rm -rf ${web_build_dir}
|
|
||||||
|
|
||||||
# Build DEB
|
# Build DEB
|
||||||
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${ARCH}
|
||||||
dpkg-buildpackage -us -uc -aarm64
|
dpkg-buildpackage -us -uc -aarm64
|
||||||
|
|
Loading…
Reference in New Issue
Block a user