mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
DCD-1086: Add Noto fonts to Alpine too.
This commit is contained in:
parent
e6204bab7a
commit
12bbe6b36e
@ -19,7 +19,7 @@ EXPOSE 8091
|
|||||||
CMD ["/entrypoint.py"]
|
CMD ["/entrypoint.py"]
|
||||||
ENTRYPOINT ["/sbin/tini", "--"]
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates wget curl openssh bash procps openssl perl ttf-dejavu tini python3 py3-jinja2
|
RUN apk add --no-cache ca-certificates wget curl openssh bash procps openssl perl ttf-dejavu font-noto tini python3 py3-jinja2
|
||||||
|
|
||||||
# Workaround for AdoptOpenJDK Alpine fontconfig bug
|
# Workaround for AdoptOpenJDK Alpine fontconfig bug
|
||||||
RUN ln -s /usr/lib/libfontconfig.so.1 /usr/lib/libfontconfig.so \
|
RUN ln -s /usr/lib/libfontconfig.so.1 /usr/lib/libfontconfig.so \
|
||||||
@ -44,7 +44,10 @@ RUN addgroup -g ${RUN_GID} ${RUN_GROUP} \
|
|||||||
\
|
\
|
||||||
&& sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} -Dconfluence.home=\${CONFLUENCE_HOME}/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh \
|
&& sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} -Dconfluence.home=\${CONFLUENCE_HOME}/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh \
|
||||||
&& sed -i -e 's/-XX:ReservedCodeCacheSize=\([0-9]\+[kmg]\)/-XX:ReservedCodeCacheSize=${JVM_RESERVED_CODE_CACHE_SIZE:=\1}/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh \
|
&& sed -i -e 's/-XX:ReservedCodeCacheSize=\([0-9]\+[kmg]\)/-XX:ReservedCodeCacheSize=${JVM_RESERVED_CODE_CACHE_SIZE:=\1}/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh \
|
||||||
&& sed -i -e 's/export CATALINA_OPTS/CATALINA_OPTS="\${CATALINA_OPTS} \${JVM_SUPPORT_RECOMMENDED_ARGS}"\n\nexport CATALINA_OPTS/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh
|
&& sed -i -e 's/export CATALINA_OPTS/CATALINA_OPTS="\${CATALINA_OPTS} \${JVM_SUPPORT_RECOMMENDED_ARGS}"\n\nexport CATALINA_OPTS/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh \
|
||||||
|
\
|
||||||
|
&& mkdir -p /opt/java/openjdk/lib/fonts/fallback/ \
|
||||||
|
&& ln -sf /usr/share/fonts/noto/* /opt/java/openjdk/lib/fonts/fallback/
|
||||||
|
|
||||||
VOLUME ["${CONFLUENCE_HOME}"] # Must be declared after setting perms
|
VOLUME ["${CONFLUENCE_HOME}"] # Must be declared after setting perms
|
||||||
|
|
||||||
|
@ -336,7 +336,7 @@ def test_jvm_fallback_fonts(docker_cli, image):
|
|||||||
container = run_image(docker_cli, image)
|
container = run_image(docker_cli, image)
|
||||||
_jvm = wait_for_proc(container, get_bootstrap_proc(container))
|
_jvm = wait_for_proc(container, get_bootstrap_proc(container))
|
||||||
|
|
||||||
init = container.file("/opt/java/openjdk/lib/fonts/fallback/NotoSansGujarati-Regular.ttf")
|
font = container.file("/opt/java/openjdk/lib/fonts/fallback/NotoSansGujarati-Regular.ttf")
|
||||||
assert init.exists
|
assert font.exists
|
||||||
assert init.is_symlink
|
assert font.is_symlink
|
||||||
assert init.linked_to == '/usr/share/fonts/truetype/noto/NotoSansGujarati-Regular.ttf'
|
assert font.linked_to == '/usr/share/fonts/truetype/noto/NotoSansGujarati-Regular.ttf'
|
||||||
|
Loading…
Reference in New Issue
Block a user