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

Hugo extended doesn't run on alpine #4961

Closed
dettmering opened this issue Jul 18, 2018 · 3 comments
Closed

Hugo extended doesn't run on alpine #4961

dettmering opened this issue Jul 18, 2018 · 3 comments
Labels

Comments

@dettmering
Copy link

dettmering commented Jul 18, 2018

I’m using Docker for building Hugo sites with GitLab CI. The Dockerfile can be found here: https://github.com/dettmering/hugo-build/blob/master/Dockerfile and the Docker image here: https://hub.docker.com/r/dettmering/hugo-build/

This worked perfectly until I decided to give the new extended version 0.44 a try. The only thing I changed was the name of the tarball so the _extended_0.44 tarball is downloaded.

Now, when I run the Docker container, I get /bin/sh: hugo: not found, even though the hugo binary is in the correct folder.

A hint comes from file hugo: hugo: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=7621f50844b0494c9fa7846a9e1366892aacf6c8, stripped

Apparently, Alpine can't run those dynamically linked executables. Can we get the hugo extended version to run on Alpine?

@bep
Copy link
Member

bep commented Jul 18, 2018

If Alpine cannot run dynamically linked executables, then the answer is currently no -- but I would be surprised if that was true. I'm pretty sure I tested it, but you need glibc. Take further question on the forum.

@bep bep closed this as completed Jul 18, 2018
@dettmering
Copy link
Author

Thanks, please find my solution here: https://discourse.gohugo.io/t/bin-sh-hugo-not-found-in-docker-container/12983/6?u=till

@github-actions
Copy link

github-actions bot commented Mar 1, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants