Git Product home page Git Product logo

Comments (4)

commonquail avatar commonquail commented on June 2, 2024 2

Immediately after spending 2 hours researching this problem and writing the ticket, I happened across rumours of a functioning work-around that delegates to /usr/bin/env and modifies $PATH. I've managed to confirm the following working as intended:

.gitlab-ci.yml:

spellcheck en-US:
  stage: test
  image:
    name: starefossen/aspell:0.60
    entrypoint:
    - "/usr/bin/env"
    - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  script:
  - ./spellcheck list

where spellcheck is basically

#!/bin/bash

aspell \
    --encoding 'UTF-8' \
    --mode html \
    --personal './.aspell.en.pws' \
    --lang en-US < README.md

exit 1

with quite a bit more sophistication (actual implementation).

Image id sha256:1d2a35ff9aa9af497e3a424b99b75a156a7234c1dc2a8db8e8d612e8c6941edd.

Given that, and the expectation that eventually GitLab's shared runners will adequately support entrypoint overriding, this ticket probably is not worth pursuing.

from docker-aspell.

jamesmstone avatar jamesmstone commented on June 2, 2024

It sounds like it would still be quite helpful for you to have a sans ENTRYPOINT version. I'd be happy to make one for you. Although I guess it's up to @Starefossen wants it tied to this repo

from docker-aspell.

Starefossen avatar Starefossen commented on June 2, 2024

I am very sorry for breaking people’s CI pipelines. That was not my intention when merging the change. I think we should revert the entrypoint and make a separate tag with the entrypoint set.

I am away from my workstation, if anyone can propose a PR to revert the entrypoint I can approve it from here.

from docker-aspell.

commonquail avatar commonquail commented on June 2, 2024

For what it's worth, our CI didn't break, because we haven't taken this into use yet. You should not feel guilty on my account, and since nobody else has complained I think there was no damage done. We also usually mirror community images we take in precisely to avoid accidents.

I wouldn't mind submitting a change to revert the custom entrypoint but I'm actually not sure that's the best idea on its own: that change is a month old so you'd just risk breaking other people's work flows.

I don't do enough Docker work to know what kind of solution works best long-term but I think if it were up to me I would make 2 Dockerfiles, the one with the custom ENTRYPOINT inheriting from the other and retaining the current tag name. The official Debian images use a variant of this that distinguishes via directories but they also need more scalability. I've also seen a solution that generates a temporary Dockerfile by deleting the ENTRYPOINT at build time.

from docker-aspell.

Related Issues (2)

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.