Skip to content
Snippets Groups Projects
.codenvy.json 4.04 KiB
Newer Older
Anton Bagliy's avatar
Anton Bagliy committed
{
Anton Bagliy's avatar
Anton Bagliy committed
  "name": ".NET with mono",
  "components": [
    {
      "version": "1.0.0-preview1-002702",
      "name": ".NET Core SDK"
    },
    {
      "version": "16.04",
      "name": "Ubuntu"
    },
    {
      "version": "---",
      "name": "Mono"
    }
  ],
  "tags": [
    "UBUNTU",
    "DOTNET",
    "GIT",
    "MONO"
  ],
  "id": "stack5k2mqjwu7ze7ewvm",
  "workspaceConfig": {
Anton Bagliy's avatar
Anton Bagliy committed
    "environments": {
Anton Bagliy's avatar
Anton Bagliy committed
      "default": {
Anton Bagliy's avatar
Anton Bagliy committed
        "machines": {
          "dev-machine": {
            "attributes": {
              "memoryLimitBytes": "2147483648"
            },
            "servers": {},
            "agents": [
              "org.eclipse.che.ws-agent",
Anton Bagliy's avatar
Anton Bagliy committed
              "org.eclipse.che.ssh",
Anton Bagliy's avatar
Anton Bagliy committed
              "org.eclipse.che.terminal",
              "org.eclipse.che.exec"
            ]
          }
        },
        "recipe": {
Anton Bagliy's avatar
Anton Bagliy committed
          "type": "dockerfile",
          "content": "# Copyright (c) 2012-2017 Codenvy, S.A.\n# All rights reserved. This program and the accompanying materials\n# are made available under the terms of the Eclipse Public License v1.0\n# which accompanies this distribution, and is available at\n# http://www.eclipse.org/legal/epl-v10.html\n# Contributors:\n# Codenvy, S.A. - initial API and implementation\n\nFROM eclipse/stack-base:ubuntu\nENV OMISHARP_VERSION 1.31.1\nENV OMNISHARP_DOWNLOAD_URL https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${OMISHARP_VERSION}/omnisharp-linux-x64.tar.gz\nENV CSHARP_LS_DIR ${HOME}/che/ls-csharp\nRUN sudo apt-get update && sudo apt-get install apt-transport-https -y && \\\n    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > ~/microsoft.gpg && \\\n    sudo mv ~/microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg && \\\n    sudo sh -c 'echo \"deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main\" > /etc/apt/sources.list.d/dotnetdev.list' && \\\n    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \\\n    sudo apt-get update && \\\n    sudo apt-get install -y \\\n    dotnet-sdk-2.0.0 && \\\n    sudo apt-get -y clean && \\\n    sudo rm -rf /var/lib/apt/lists/* && \\\n    mkdir -p ${CSHARP_LS_DIR}\n\nRUN cd ${CSHARP_LS_DIR} && wget https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.31.1/omnisharp-linux-x64.tar.gz && \\\n    tar -xvf omnisharp-linux-x64.tar.gz --strip 1 && \\\n    sudo chgrp -R 0 ${CSHARP_LS_DIR} && \\\n    sudo chmod -R g+rwX ${CSHARP_LS_DIR}\n\nRUN sudo apt-get update && \\\n    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \\\n    sudo apt install -y apt-transport-https && \\\n    echo \"deb https://download.mono-project.com/repo/ubuntu stable-xenial main\" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list && \\\n    sudo apt update && \\\n    sudo apt install -y mono-devel && \\\n    sudo apt install -y nuget\n\nEXPOSE 5000 9000\nCMD tail -f /dev/null\n",
          "contentType": "text/x-dockerfile"
Anton Bagliy's avatar
Anton Bagliy committed
    "defaultEnv": "default",
    "projects": [],
    "name": "default",
    "commands": [
Anton Bagliy's avatar
Anton Bagliy committed
        "commandLine": "cd ${current.project.path} && xbuild /p:TargetFrameworkVersion=\"v4.0\"",
        "name": "build with xbuild",
        "attributes": {},
        "type": "custom"
      },
      {
        "commandLine": "cd ${current.project.path} && nuget restore",
        "name": "restore nuget packages",
        "attributes": {},
        "type": "custom"
      },
      {
        "commandLine": "cd ${current.project.path} && ./run_tests.sh",
        "name": "run all tests",
        "attributes": {},
        "type": "custom"
      },
      {
        "commandLine": "cd ${current.project.path} && mono NUnit.3.10.1/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestSimpleLexer/bin/Debug/TestSimpleLexer.dll",
        "name": "simple lexer tests",
        "attributes": {},
        "type": "custom"
Anton Bagliy's avatar
Anton Bagliy committed
      }
    ],
    "links": []
  },
Anton Bagliy's avatar
Anton Bagliy committed
  "description": "Default .NET Stack with mon",
  "creator": "userq0aq1fdi7ksr4m6u",
  "scope": "advanced"