Code Monkey home page Code Monkey logo

Comments (7)

adrian5 avatar adrian5 commented on September 18, 2024 4

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.

klakegg avatar klakegg commented on September 18, 2024 2

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.

s0l4r avatar s0l4r commented on September 18, 2024

I can confirm that this fix works!

from docker-hugo.

klakegg avatar klakegg commented on September 18, 2024

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.

jmbarbier avatar jmbarbier commented on September 18, 2024

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.

jmcgeheeiv avatar jmcgeheeiv commented on September 18, 2024

@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.

jmcgeheeiv avatar jmcgeheeiv commented on September 18, 2024

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)

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.