Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace klakegg containers with floryn90 containers #455

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Dec 29, 2023

Replace klakegg containers with floryn90 containers

The container images we have used are no longer maintained (as evidence by outdated versions and no responses to issue reports). This switches to a fork of the original repository based on a comment in one of the issues in the original repository. The fork is being maintained and is kept current with Hugo releases. It does not yet publish a GitHub action, so it is not yet a complete replacement for the klakegg repository.

  • Replace klakegg containers with floryn90 containers
  • Remove unsupported verboseLog command line flag
  • Stop using deprecated --verbose
  • Use server command, not serve command
  • Run container as current user to avoid git issues

Upgrades to the most recent Hugo release and adapts the build process to the newest release of command line git.

Known issues with this pull request

This pull request does not update the GitHub action to a newer version because the action is not available from the floryn90 fork. It only updates the configuration in the Docker compose definition.

The floryn90 containers have been forked from the klakegg containers
and are more actively maintained.
klakegg/docker-hugo#82 notes that root is the
default user of the container, but that causes issues for our environment
because it blocks git operations.

Switch to run as the current user so that git operations are not
blocked.

Running as the current user means that the Hugo build lock cannot be
written.  Disable it with a command line switch.

Not a perfect solution, but simple enough to allow upgrade to a more
recent Hugo version.
image: klakegg/hugo:0.95.0-ext-asciidoctor
# "ext-" for the Hugo extended edition including git (https://github.com/floryn90/docker-hugo/blob/master/README.md#hugo-extended-edition)
user: ${RUN_AS_USER}
image: floryn90/hugo:0.121.1-ext-asciidoctor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dduportal
Copy link
Contributor

For information: since https://github.com/asciidoctor/docker-asciidoctor/releases/tag/1.63.0 (a few days ago), the arm64 image of asciidoctor is available which could help the upstream images for hugo to provide a workin version for us here. Worth pointing it to their authors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants