Skip to content

Envoy Windows server code samples #13281

Closed

Description

@davinci26

Description:

I would like to start working on examples (sandboxes) that run on Windows Server Container instead of Alpine Linux. I already got one working but I would like to get more samples to give a good onboarding experience for Windows users.

I have the following questions:

  1. Where should the examples be placed. Should we have a separate folder for Windows samples or share between the folders?
  2. Do we want to start testing the examples on Windows? @sunjayBhatia

The main issue that I encounter is that by definition the container setup is platform specific and it is hard to write platform agnostic code. One approach is to use powershell core for the samples which is open source and cross platform but I am not sure how familiar the community is.

Currently I have put the code on a personal repository to share it with you but I think the envoy project is better home for this code.

Let me know what you think!

Activity

  1. added
    triage
    on Sep 25, 2020
  2. davinci26 commented on Sep 25, 2020

    @davinci26
    MemberAuthor

    @envoyproxy/windows-dev

  3. sunjayBhatia commented on Sep 25, 2020

    @sunjayBhatia
    Member

    Maybe we can use a single dockerfile with 2 different build stages? just be sure to only build the Linux stage on Linux and vice versa for Windows:

    And/or just 2 different Docker compose files?

  4. davinci26 commented on Sep 25, 2020

    @davinci26
    MemberAuthor

    just be sure to only build the Linux stage on Linux and vice versa for Windows:

    I think it is possible that someone might want to run the Linux samples on Windows. I think that should be possible although I haven't tried it out.

  5. phlax commented on Sep 26, 2020

    @phlax
    Member

    I already got one working but I would like to get more

    could you post a WIP PR with the working example?

    if we can review/update that one it could be a model for the rest

    I think it is possible that someone might want to run the Linux samples on Windows.

    iiuc - yep - i think its likely

  6. sunjayBhatia commented on Sep 28, 2020

    @sunjayBhatia
    Member

    I think it is possible that someone might want to run the Linux samples on Windows. I think that should be possible although I haven't tried it out.

    Yeah, I bet we will have to have 2 separate docker compose files

  7. added and removed
    triage
    on Sep 28, 2020
  8. davinci26 commented on Sep 28, 2020

    @davinci26
    MemberAuthor

    could you post a WIP PR with the working example?

    I will get one rolling and we can iterate more there.

  9. github-actions commented on Dec 9, 2020

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

  10. added
    stale
    on Dec 9, 2020
  11. added
    help wanted
    and removed
    stale
    on Dec 9, 2020
  12. sunjayBhatia commented on Dec 23, 2020

    @sunjayBhatia
    Member

    Maybe we can use a single dockerfile with 2 different build stages?

    This doesn't work, docker build/compose is pretty dumb and tries to build all the stages even when you ask to run a specific one

  13. sunjayBhatia commented on Dec 23, 2020

    @sunjayBhatia
    Member

    Trying this out again the more problematic issue is that many examples use images that are linux specific and we may have to build our own for Windows (mostly just echo servers and we could use node.js etc. - though there isn't a Windows docker image available from upstream, some 3rd party images are)

  14. added this to the windows-beta milestone on Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions