az-digital / arizona-bootstrap

UArizona's front-end toolkit based on Bootstrap 4 and 5.
https://digital.arizona.edu/arizona-bootstrap
MIT License
5 stars 8 forks source link

The Java support needed for one of the linting checks is deprecated. #513

Closed mmunro-ltrr closed 2 years ago

mmunro-ltrr commented 2 years ago

The linting checks in arizona-bootstrap include the Nu Html Checker (vnu-jar), which needs a Java environment to run. To standardize this in a way that works for local development as well as on GitHub actions. The Dockerfile includes this by lifting it from a pre-built standard OpenJDK Docker image, but this is now deprecated https://github.com/docker-library/openjdk/issues/505

Conditions of satisfaction

Some other mechanism should include an actively maintained Java environment to support the vnu-jar checker.

tellison commented 2 years ago

The recommended replacements are the official images of Eclipse Temurin

mmunro-ltrr commented 2 years ago

@tellison: thanks for the advice — I had looked at those images, but we are currently doing something strange with a

COPY --from=openjdk:11.0.15-jre-slim-bullseye "$JAVA_HOME" "$JAVA_HOME"

in our Dockerfile to lift just part of the old OpenJDK image, relying on both being based on Debian Bullseye. It's probably time to opt for something less fragile instead.