From df1b94bba9877a020afdee41eccd8a1e4b3cfe3e Mon Sep 17 00:00:00 2001 From: Anton Bagliy <taccessviolation@gmail.com> Date: Mon, 8 Oct 2018 19:46:46 +0300 Subject: [PATCH] FIX: codenvy factory def #"_@^#! --- .codenvy.json | 141 +++++++++++++++++++++++--------------------------- 1 file changed, 66 insertions(+), 75 deletions(-) diff --git a/.codenvy.json b/.codenvy.json index c6fc7f0..7362dad 100644 --- a/.codenvy.json +++ b/.codenvy.json @@ -1,82 +1,73 @@ { - "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": { - "environments": { - "default": { - "machines": { - "dev-machine": { - "attributes": { - "memoryLimitBytes": "2147483648" - }, - "servers": {}, - "agents": [ - "org.eclipse.che.ws-agent", - "org.eclipse.che.ssh", - "org.eclipse.che.terminal", - "org.eclipse.che.exec" - ] - } - }, - "recipe": { - "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" + "name": "compilers", + "defaultEnv": "default", + "environments": { + "default": { + "machines": { + "dev-machine": { + "attributes": { + "memoryLimitBytes": "2684354560" + }, + "servers": {}, + "agents": [ + "org.eclipse.che.ws-agent", + "org.eclipse.che.ssh", + "org.eclipse.che.terminal", + "org.eclipse.che.exec" + ] } + }, + "recipe": { + "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" } - }, - "defaultEnv": "default", - "projects": [], - "name": "default", - "commands": [ - { - "commandLine": "cd ${current.project.path} && xbuild /p:TargetFrameworkVersion=\"v4.0\"", - "name": "build with xbuild", - "attributes": {}, - "type": "custom" + } + }, + "commands": [ + { + "name": "generated lexer tests", + "type": "custom", + "attributes": { + "goal": "Test" }, - { - "commandLine": "cd ${current.project.path} && nuget restore", - "name": "restore nuget packages", - "attributes": {}, - "type": "custom" + "commandLine": "cd ${current.project.path} && mono NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll" + } + ], + "projects": [ + { + "name": "MMCS_CS311", + "type": "blank", + "path": "/MMCS_CS311", + "attributes": { + "contribute_to_branch": [ + "master" + ], + "commands": [ + "{\"commandLine\":\"cd ${current.project.path} && mono NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestVisitors/bin/Debug/TestVisitors.dll\", \"name\":\"visitors tests\", \"attributes\":{\"goal\":\"Test\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && mono NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestCodeGenerator/bin/Debug/TestCodeGenerator.dll\", \"name\":\"code generator tests\", \"attributes\":{\"goal\":\"Test\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && mono NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestASTParser/bin/Debug/TestASTParser.dll\", \"name\":\"AST parser tests\", \"attributes\":{\"goal\":\"Test\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && mono NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestGeneratedParser/bin/Debug/TestGeneratedParser.dll\", \"name\":\"generated parser tests\", \"attributes\":{\"goal\":\"Test\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && mono NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestDescentParser/bin/Debug/TestDescentParser.dll\", \"name\":\"simple parser tests\", \"attributes\":{\"goal\":\"Test\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && mono NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestLexer/bin/Debug/TestLexer.dll\", \"name\":\"lexer tests\", \"attributes\":{\"goal\":\"Test\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && mono NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe TestSimpleLexer/bin/Debug/TestSimpleLexer.dll\", \"name\":\"simple lexer tests\", \"attributes\":{\"goal\":\"Test\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && ./run_tests.sh\", \"name\":\"run all tests\", \"attributes\":{\"goal\":\"Test\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && nuget restore && nuget install NUnit.Console\", \"name\":\"restore nuget packages\", \"attributes\":{\"goal\":\"Build\"}, \"type\":\"custom\"}", + "{\"commandLine\":\"cd ${current.project.path} && xbuild /p:TargetFrameworkVersion=\\\"v4.0\\\"\", \"name\":\"build with xbuild\", \"attributes\":{\"goal\":\"Build\"}, \"type\":\"custom\"}" + ] }, - { - "commandLine": "cd ${current.project.path} && ./run_tests.sh", - "name": "run all tests", - "attributes": {}, - "type": "custom" + "description": "", + "source": { + "location": "https://github.com/czen/MMCS_CS311.git", + "type": "git", + "parameters": {} }, - { - "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" - } - ], - "links": [] - }, - "description": "Default .NET Stack with mon", - "creator": "userq0aq1fdi7ksr4m6u", - "scope": "advanced" + "links": [], + "problems": [], + "mixins": [ + "pullrequest" + ] + } + ], + "links": [] } \ No newline at end of file -- GitLab