mirror of
https://github.com/ONLYOFFICE/Docker-DocumentServer.git
synced 2026-02-10 20:45:40 +08:00
Add msfonts caching to avoid install issues
This commit is contained in:
committed by
Alexey Golubev
parent
32b11818cc
commit
b13570f221
16
.github/workflows/4testing-build.yml
vendored
16
.github/workflows/4testing-build.yml
vendored
@ -106,6 +106,22 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Prepare fonts cache
|
||||||
|
id: fonts
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: fonts
|
||||||
|
key: fonts-${{ runner.os }}-v1
|
||||||
|
|
||||||
|
- name: Install fonts if not cached
|
||||||
|
if: steps.fonts.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections
|
||||||
|
sudo apt-get install -y ttf-mscorefonts-installer
|
||||||
|
mkdir -p fonts/msttcorefonts
|
||||||
|
cp -a /usr/share/fonts/truetype/msttcorefonts/* fonts/msttcorefonts/
|
||||||
|
|
||||||
- name: Build 4testing
|
- name: Build 4testing
|
||||||
id: build-ds
|
id: build-ds
|
||||||
env:
|
env:
|
||||||
|
|||||||
@ -22,6 +22,7 @@ ENV OC_DOWNLOAD_URL=https://download.oracle.com/otn_software/linux/instantclient
|
|||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive PG_VERSION=${PG_VERSION} BASE_VERSION=${BASE_VERSION}
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive PG_VERSION=${PG_VERSION} BASE_VERSION=${BASE_VERSION}
|
||||||
|
|
||||||
ARG ONLYOFFICE_VALUE=onlyoffice
|
ARG ONLYOFFICE_VALUE=onlyoffice
|
||||||
|
COPY fonts/ /usr/share/fonts/truetype/
|
||||||
|
|
||||||
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
||||||
apt-get -y update && \
|
apt-get -y update && \
|
||||||
@ -74,7 +75,7 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
|||||||
xxd \
|
xxd \
|
||||||
zlib1g || dpkg --configure -a && \
|
zlib1g || dpkg --configure -a && \
|
||||||
# Added dpkg --configure -a to handle installation issues with rabbitmq-server on arm64 architecture
|
# Added dpkg --configure -a to handle installation issues with rabbitmq-server on arm64 architecture
|
||||||
if [ $(ls -l /usr/share/fonts/truetype/msttcorefonts | wc -l) -ne 61 ]; \
|
if [ $(find /usr/share/fonts/truetype/msttcorefonts -maxdepth 1 -type f -iname '*.ttf' | wc -l) -lt 30 ]; \
|
||||||
then echo 'msttcorefonts failed to download'; exit 1; fi && \
|
then echo 'msttcorefonts failed to download'; exit 1; fi && \
|
||||||
echo "SERVER_ADDITIONAL_ERL_ARGS=\"+S 1:1\"" | tee -a /etc/rabbitmq/rabbitmq-env.conf && \
|
echo "SERVER_ADDITIONAL_ERL_ARGS=\"+S 1:1\"" | tee -a /etc/rabbitmq/rabbitmq-env.conf && \
|
||||||
sed -i "s/bind .*/bind 127.0.0.1/g" /etc/redis/redis.conf && \
|
sed -i "s/bind .*/bind 127.0.0.1/g" /etc/redis/redis.conf && \
|
||||||
|
|||||||
Reference in New Issue
Block a user