Coder Social home page Coder Social logo

hubci / hugo-docker Goto Github PK

View Code? Open in Web Editor NEW
62.0 5.0 10.0 291 KB

A Docker image for Hugo, the static-site generator. This image focuses on a CI use-case, not production. Includes HTMLProofer for testing.

Home Page: https://hub.docker.com/r/hubci/hugo/

License: MIT License

Shell 10.06% Dockerfile 89.94%
docker hugo static-site-generator html-proofer circleci hubci

hugo-docker's People

Contributors

felicianotech avatar jwflory avatar mbevc1 avatar michaelliebman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hugo-docker's Issues

Add Locale/Ecoding Info

UTF-8 should be set in the image but it isn't. This Issue will be solved in two parts.

  1. A PR in this repo to add this information to this image.
  2. A PR to our base image that adds this info to their. (ref)

In my testing, this issue doesn't come up when using the Hugo binary but when using HTML Proofer.

Change Docker Base

The base image for this repo should be switched from -/ruby:2.4-apline to cibuilds/base:stable.

The plan has changed. At CircleCI I've working working on a brand new set of protoype Docker Convenience Images that are being built on an improved version of what I've been doing for cibuilds.

The Alpine based images here, while great in size, have been more pain than it's worth to maintain as opposed to a Ubuntu or Debian based system.

In the near future, this Hugo Docker image will be Ubuntu based rather than Alpine based. Specifically, it will use the cimg/base image produced by CircleCI.


For the most part, everyone will benefit from this change however, some changes to keep in mind:

  • the traditional apt-get will be used to manage packages rather than apk
  • proper libc will be available, no more musl
  • the image may be a little bit bigger in size
    • the opportunity for caching on CircleCI hosts should negate this

Because of this, this change can be a breaking change for people.

This change will ship with the Hugo v0.59 or v0.60 images depending on how soon Hugo does their next release.

Using on circleci multi-docker setup

I'm trying to figure out how to use this image alongside with node.

Currently, this Docker image is designed to be used as a base image on CircleCI 2.0 for building, testing, and deploying Hugo based websites.

Does this mean that it won't work on multi-image configuration job?

My current circleci configuration is the following.

Improve Readme

This image went from an Alpine image to Ubuntu based and is now built off of a CircleCI official image. Some of the underlying OS stuff has changed. It would be good to freshen up the readme and include any snippets of docs where useful to reflect the new base this image is built on.

Bring back Rsync!

Moved from felicianotech @ 0.43 to cibuilds/hugo:0.62 and getting an

/bin/bash: rsync: command not found

I think for a static site generation tool rsync should be considered a core utility to promote the generated site, but you might have better reasons for removing it.

Add aws cli

Would you consider adding commands to install aws cli to make it easier to deploy straight to S3?

Add npm for Hugo pipes post css cli support

Hi,

Looking to take advantage of Hugo pipes now we’re a few stable releases in. Part of my pipeline will be adding vendor prefixes to the output css, which requires post css cli for Hugo to process (we’ll need to install post css cli via npm)

I was wondering if it would be good to add npm to the image for those who use this image and want to take full advantage of Hugo pipes, including post css support?

Link below to documentation on post css support in Hugo pipes for reference:

https://gohugo.io/hugo-pipes/postcss/

Many thanks

Rename this repo

This repo should be named hugo. Today, this repo was transfered from my personal GitHub org felicianotech to the cibuilds org. I doubt GitHub will maintain to levels of redirects to going to wait a few weeks for people to point to the new org before I then rename this.

For the curious, this is the transition:

felicianotech/docker-hugo -> cibuilds/docker-hugo :: today
cibuilds/docker-hugo -> cibuilds/hugo :: 2 weeks from now? Maybe more.

HTML Proofer not working in 0.59.0

I've been using this image for a while on Gitlab CI - and since the rebasing I have a problem running HTML Proofer.

If I force use of image 0.58.3 all is good, but with the 0.59.0 image I get this error:

$ htmlproofer public --allow-missing-href false --check_img_http --check_opengraph --enforce-https --check-html --only_4xx true --file-ignore public/admin/index.html --log-level :debug
Running ["OpenGraphCheck", "ImageCheck", "LinkCheck", "ScriptCheck", "HtmlCheck"] on ["public"] on *.html...

htmlproofer 3.13.0 | Error: invalid byte sequence in US-ASCII
ERROR: Job failed: exit code 1

The same version of HTMLProofer is in both images, and the same source (and thus output). HTML proofer 3.13.0 runs fine on my local machine so I think there's something odd in the environment somewhere.

I'm open to suggestions, but I can't seem to figure out what's going wrong here.

Let me know if you need more information from me!

Add Hugo v0.87.0 release to Docker image

Summary

Add newly-released Hugo v0.87.0 as latest release in Docker image

Background

Earlier today, Hugo v0.87.0 was released with improved time zone support. This would be nice to play around with in the environment I am using this container in.

Details

Seems straightforward enough, per #220. Maybe I can even try this out. 😄

Outcome

Latest Hugo version available in Docker Hub latest image

Markdown linter

Hello, thanks for maintaining this Docker image. I was wondering if you would be open to adding a Markdown linter to it as a complement to HTMLProofer. I found a few options:

I imagine the Ruby one would be easier to add and would keep the image small since the image already has Ruby for HTMLProofer. However, the Node ones seem more actively maintained. Maybe that's because the Ruby one is older and is just more mature, but it also has more open issues.

curl request

Would it be possible to add curl (not cURL or libcurl "CURL") to this image?

Part of my CI is to purge CloudFlare cache using their API, which requires curl, so this addition would be great.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.