Skip to content

Can we get a release that runs on Alpine? #4605

Description

Could we get an apk package for alpine linux? The main reason we don't use powershell as part of our ci/cd pipeline is that all our tasks run in alpine containers.

Activity

  1. added
    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
    on Aug 17, 2017
  2. SteveL-MSFT commented on Aug 17, 2017

    @SteveL-MSFT
    Member

    Are you able to use the AppImage?

  3. JasonMorgan commented on Aug 17, 2017

    @JasonMorgan
    Author

    I tried and couldn't get it to work. I don't see it in their list of supported os's.

  4. markekraus commented on Aug 21, 2017

    @markekraus
    Contributor

    I took a stab at running the Appimage in Alpine. It looks like you could do it only if you have a full glibc chroot. The primary issue seems to be the musl libc that alpine uses and Appimage is made for glibc environments. It certainly increases the size of Alpine if you have to tack on a full glibc chroot to run the Appimage.

  5. JasonMorgan commented on Aug 28, 2017

    @JasonMorgan
    Author

    Steve Lee (@SteveL-MSFT) any thoughts on this? Adding an apk package would make it so I could start using it in most of my tools containers and I'm sure I'm not the only one.

  6. SteveL-MSFT commented on Aug 28, 2017

    @SteveL-MSFT
    Member

    Jason Morgan (@JasonMorgan) Alpine isn't one of the official supported OS for corefx, so for us this isn't currently a priority. If a community PR makes it work, we'd be happy to take that change and start producing packages.

  7. added
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Aug 28, 2017
  8. SteveL-MSFT commented on Sep 8, 2017

    @SteveL-MSFT
    Member

    Looks like Alpine is sort of supported by CoreCLR, they have a build, but it doesn't appear to be tested regularly.

  9. markekraus commented on Sep 8, 2017

    @markekraus
    Contributor

    dotnet/coreclr#917 It looks like they are still working the kinks out.

  10. markekraus commented on Nov 21, 2017

    @markekraus
    Contributor

    dotnet/dotnet-docker#22 and dotnet/announcements#49 looks like they added an alpine docker for .NET Core. https://github.com/dotnet/dotnet-docker-samples/tree/master/dotnetapp-prod-alpine-preview so it should be theoretically possible to get a pwsh docker from that now.

  11. JasonMorgan commented on Dec 2, 2017

    @JasonMorgan
    Author

    kasper3 I can confirm the install script doesn't handle alpine yet. I'm looking at building from source myself now. I'll let you know if I get it.

  12. JasonMorgan commented on Dec 2, 2017

    @JasonMorgan
    Author

    So looks like you need the dotnet sdk, not just dotnet to get powershell built from source. I'll wait for dotnet 2.1 to go GA, should be January according to the release notes before trying to go through the powershell build steps again.

    Also just to address your question from before, ./PowerShell/tools/install-powershell.sh seems to just use the OS based package manager and doesn't support alpine yet.

  13. markekraus commented on Dec 2, 2017

    @markekraus
    Contributor

    yea, for Alpine you would need to get the tool chain added manually and then build manually. at least that is my understanding.

  14. 27 remaining items

  15. massimonewsuk commented on Apr 26, 2018

    @massimonewsuk

    Hey guys. I wanted to ask if this is ready to use yet. We basically have a dockerfile that has this at the top:

    FROM node:alpine

    And I want to know if I can get powershell inside that docker image?

  16. SteveL-MSFT commented on Apr 26, 2018

    @SteveL-MSFT
    Member

    massimonewsuk unfortunately this won't happen for Preview2, I'm planning on working on this next week

  17. mi-hol commented on Jul 22, 2018

    @mi-hol

    Steve Lee (@SteveL-MSFT) any news on this?

  18. SteveL-MSFT commented on Jul 22, 2018

    @SteveL-MSFT
    Member

    Was hoping to have an Alpine release along with Preview.4. Next week we'll be working on producing a docker image release.

  19. massimonewsuk commented on Sep 6, 2018

    @massimonewsuk

    Steve Lee (@SteveL-MSFT) Hey is there any update on this?

  20. SteveL-MSFT commented on Sep 7, 2018

    @SteveL-MSFT
    Member

    Travis Plunk (@TravisEz13) is looking at this, however, it's currently a lower priority than preparing for the GA release. Although we have updated the tooling to build PowerShell Core on Alpine, it wasn't complete as it didn't do a module restore and thus the resulting Alpine package didn't have any modules even though the engine/console worked. Travis has an idea on how to resolve this.

  21. TravisEz13 commented on Sep 8, 2018

    @TravisEz13
    Member

    I have a PR here PowerShell/PowerShell-Docker#37 for the docker image.

    There are two issues:

    1. The version is 6.1.0-fixalpine . The code is the same as 6.1.0-rc.1 but there were some build issues, and this is what our build system does when you build from a private branch.
    2. There are some rendering issues in the console (see image below.) You can avoid these issues by changing docker run -it to docker run -i, but you loose tab completion.

    image

    You can try my image: docker run -it travisez13/powershell:preview-alpine-3.8

    Consider this highly experimental.

  22. SteveL-MSFT commented on Sep 14, 2018

    @SteveL-MSFT
    Member

    Open new issues for for specific problems

  23. TravisEz13 commented on Sep 14, 2018

    @TravisEz13
    Member

    fyi, the container is available via docker run -it mcr.microsoft.com/powershell:preview-alpine-3.8

  24. alexandair commented on Sep 15, 2018

    @alexandair
    Contributor

    Travis Plunk (@TravisEz13) Container is available. but is practically unusable. You cannot type anything. :(

  25. TravisEz13 commented on Sep 16, 2018

    @TravisEz13
    Member

    Aleksandar Nikolić (@alexandair) Yes, but we need something to bootstrap real development. It works for automation. I mentioned this issue here: #4605 (comment)

    We now need to update the build to use this image and to a PSModuleRestore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.WG-Maintainers-Buildspecific to affecting the build

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions