jojomi/docker-hugo

/run.sh: line 30: /usr/local/sbin/hugo: not found in Version 0.43

tmsvn opened this issue · 8 comments

tmsvn commented

When I run docker run jojomi/hugo:0.43 on my terminal the following error appears:

sven@computer:~/$ docker run jojomi/hugo:0.43
HUGO_WATCH: false
HUGO_REFRESH_TIME: -1
HUGO_THEME:
HUGO_BASEURL
ARGS
Hugo path: /usr/local/sbin/hugo
Building one time...
/run.sh: line 30: /usr/local/sbin/hugo: not found

Same issue here.
It appears that Alpine lacks the /lib64/ld-linux-x86-64.so.2 library, against which the “extended” Hugo 0.43 is linked (to provide the new SASS/minification system). You can try to install the compat library on the container (i.e., apk add libc6-compat), but then Hugo fails to locate the required symbols.

I'm not sure, but I'm afraid that the image will have to switch to another base image (Ubuntu or Debian, perhaps)? 🤔

I will have a look, currently thinking if the image should just ship the basic binary for now and wait how the SCSS features develop?

@LorenzCK Thank you for your input on the issue.

@svenlange can you check again if it works now? I have reverted to the basic hugo version for now and pushed the 0.43 and latest tags. Imho we should strive for a (additional?) build of the extended version once the documentation is on par with the features.

tmsvn commented

It is working now. Thanks!

Works now, thank you for your time @jojomi. 👍

FYI: you may want to take a look to the same issue for the klakegg/hugo image, where libraries are now imported from an Ubuntu image in a multistage build in order to make Hugo 0.43 extended work.

Thank you both for testing and especially @LorenzCK for the link to the repo that reserves a lot more stars for the work done there!

At least I got the 0.44 build done today already ;)