Comments (7)
I ran into this too, I think it's an issue specific to GitLab's CI pipeline and not this Docker image.
Try this jallbrit:
…
image:
name: klakegg/hugo:ext-alpine
entrypoint: ["/bin/sh", "-c"] # possible fix
from docker-hugo.
It seems like more people are stumbling into this issue than I expected.
For anyone coming by, I'd suggest to have a look at the klakegg/hugo:...-ci
images as described in the readme as those variants may make your configuration a bit easier.
from docker-hugo.
I can confirm that this fix works!
from docker-hugo.
This image uses entrypoint to simplify usage. You may get access to an interactive shell or override the Docker entrypoint if that suits your use case better.
I know other images doesn't set entrypoint, however I've made the choice to use entrypoint because I think it makes most sense in most use cases.
from docker-hugo.
Note for those searching the same problem :
from https://gitlab.com/gitlab-org/gitlab-runner/-/issues/1421#note_366382971
image:
name: klakegg/hugo:ext
entrypoint: [""]
works, the fix with /bin/sh don't
from docker-hugo.
@jmbarbier, note that you are using a different image. Perhaps that is why you had a problem with entrypoint: ["/bin/sh", "-c"]
.
I found that entrypoint: ["/bin/sh", "-c"]
does work with image klakegg/hugo:ext-alpine
.
from docker-hugo.
I was wondering what the -ci
images were for. I thought they for some exotic use case, but it turns out that that they might be for the dominant use case.
from docker-hugo.
Related Issues (20)
- missing config file HOT 1
- Shell completion broken
- Error: failed to download modules: binary with name "go" not found HOT 1
- Documentation of NodeJS version is incorrect HOT 1
- Error: Unable to locate config file or config directory. Perhaps you need to create a new site. HOT 1
- Error: Unable to build hugo site with mounted sources since Version 0.96.0 HOT 2
- Server does not watch for changes HOT 2
- Update new version v0.103.0 HOT 5
- Are you force pushing releases? HOT 1
- POSTCSS: failed to transform HOT 2
- Error: failed to download modules: binary with name "go" not found HOT 1
- Q: where can i find "klakegg/docker-project-prepare" HOT 1
- Upgrade NodeJS version to >18.10
- "'/src' is owned by someone else" reported when building status.jenkins.io with docker-hugo HOT 2
- Release sync
- Missing tags (0.112.0+) HOT 5
- newer release to address critical vulns or build myself
- Fix for CVE-2023-29491 on ncurses library
- Please @klakegg, make latest hugo image HOT 2
- minify or other parameters to hugo-command HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-hugo.