Giter VIP home page Giter VIP logo

Comments (3)

mrcjkb avatar mrcjkb commented on July 17, 2024 1

Thanks for the hint. I ended up not needing the login shell for my project (I had copied over and modified the compose file from another project that was running end-to-end tests).

I'll close this issue, as I don't think there is a use case for building Haskell projects in a login shell.

from docker-haskell.

mrcjkb avatar mrcjkb commented on July 17, 2024

This could probably be solved by adding the PATH to ~/.bashrc:

RUN echo "export PATH=${PATH}" >> /root/.bashrc

I will test this later.

from docker-haskell.

AlistairB avatar AlistairB commented on July 17, 2024

Thanks for the issue!

I'm interested to know the motivation for using a login shell? (the -l flag to bash).

https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html suggests different files that could be used to add GHC to the PATH.

I've done some testing on other official images and about 50% will work with a login shell. They seem to work because they happen to copy executables into /usr/local/bin (like we do with cabal + stack) rather than doing anything with .bash_profile etc.

I've been using docker run haskell:9.2.1 bash -lc "ghc --version" as a minimal repro BTW.

from docker-haskell.

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.