Skip to content

Commit

Permalink
chore: Add fontconfig to Ubuntu image (#86)
Browse files Browse the repository at this point in the history
Java 11 reports a null pointer exception running JenkinsRule tests if
the fontconfig package is not available.  Package is included in the
Docker agent images also.
  • Loading branch information
MarkEWaite authored Sep 4, 2021
1 parent a363591 commit 421f74a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/ubuntu-20-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ tar xzvf "/tmp/${git_lfs_archive}" -C /tmp/git-lfs
bash -x /tmp/git-lfs/install.sh # Execute in debug mode in case something goes wrong
rm -rf /tmp/git-lfs*

## Install JDK needed component
## Prevent Java null pointer exception due to missing fontconfig
apt-get install -y --no-install-recommends fontconfig

## OpenJDKs: Adoptium - https://adoptium.net/installation.html
# JDK8
jdk8_short_version="$(echo "${JDK8_VERSION}" | sed 's/-//g')"
Expand Down

0 comments on commit 421f74a

Please sign in to comment.