OmniSharp / omnisharp-roslyn

OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
MIT License
1.73k stars 419 forks source link

Docker image for omnisharp-roslyn #605

Open mickaelistria opened 8 years ago

mickaelistria commented 8 years ago

At the moment, it seems to be still a bit complicated to get OmniSharp running on a given OS (especially because of dotnet-core not working on Fedora 24 in my case). In order to make it easier to try OmniSharp, it would be useful to provide some Docker images that would directly start the server.

mickaelistria commented 8 years ago

Here is a Dockerfile I've used

FROM fedora:23

RUN dnf install -y --setopt=tsflags=nodocs libunwind libicu curl tar
RUN curl -sSL -o /opt/dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=816869
RUN mkdir -p /opt/dotnet
RUN tar zxf /opt/dotnet.tar.gz -C /opt/dotnet
RUN ln -s /opt/dotnet/dotnet /usr/local/bin

RUN curl -sSL -o /opt/omnisharp-fedora-x64-netcoreapp1.0.tar.gz https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.9-beta11/omnisharp-fedora-x64-netcoreapp1.0.tar.gz
RUN mkdir -p /opt/OmniSharp
RUN tar zxf /opt/omnisharp-fedora-x64-netcoreapp1.0.tar.gz -C /opt/OmniSharp
RUN chmod +x /opt/OmniSharp/OmniSharp

CMD dotnet --info
CMD /opt/OmniSharp/OmniSharp
mickaelistria commented 6 years ago

A Dockerfile is available at https://github.com/eclipse/che-dockerfiles/blob/master/recipes/centos_dotnet20/Dockerfile

mohkale commented 2 years ago

That repository was archived 4 years ago. This project should really provide an up-to date docker image. As it stands I can't even get a function language server from the latest release in docker.

Edit: See here. Finally something that works out of the box :joy:.