Граф коммитов

204 Коммитов

Автор SHA1 Сообщение Дата
waliMSFT a6ea8e9c91
Wali/oryx build using yarn when yarn is specified in the package.json 1676966 (#1685)
* yarn changes
2022-11-28 09:28:24 -05:00
snehapar9 5efb1fd089
Add support for python latest versions (#1647)
* Add support for python latest versions

* generated constants

* Updated runtime tag

* generated constants

* Updated unit tests

* updated runtime tag

* updated constants

* Removed extra space character

* Added new python versions to all os types

* Updated tests

* Updated tests

* convert go fully to go.mod

* removed gopkg files, adn fully built all go packages with dependencies

* fixed tests to run on packages

* cleaned up scripts

* removed built exes

* make mod files consistent

* allow execution of the test packages script

* Fixed bug to download tarballs from storage account url supplied from pipeline

* Fix bug to download sdks from storage account url supplied from pipeline

* Add AddDefaultTestEnvironmentVariables

* Replcae SetEnvironmentVariable by AddDefaultTestEnvironmentVariables

* Commented out test for python 3.11

* Add support for python latest versions

* generated constants

* Updated runtime tag

* generated constants

* Updated unit tests

* updated runtime tag

* updated constants

* Removed extra space character

* Added new python versions to all os types

* Updated tests

* Updated tests

* Fixed bug to download tarballs from storage account url supplied from pipeline

* Fix bug to download sdks from storage account url supplied from pipeline

* fixed tests to run on packages

* cleaned up scripts

* Add AddDefaultTestEnvironmentVariables

* Replcae SetEnvironmentVariable by AddDefaultTestEnvironmentVariables

* Commented out test for python 3.11

* Add dotnet 7 to stretch / older images (#1667)

* add dotnet 7 to stretch / legacy images

* generated constants and supported versions, and updated the final stretch version for dotnet 7

* remove .NET7 condition on bindport2 (#1670)

* Pauld/switch go packages to go mod (#1671)

* convert go fully to go.mod

* removed gopkg files, adn fully built all go packages with dependencies

* fixed tests to run on packages

* cleaned up scripts

* removed built exes

* make mod files consistent

* allow execution of the test packages script

* added readme for updating and testing go dependencies

* Add support for python latest versions

* generated constants

* Updated runtime tag

* generated constants

* Updated unit tests

* updated runtime tag

* updated constants

* Removed extra space character

* Added new python versions to all os types

* Updated tests

* Updated tests

* Fixed bug to download tarballs from storage account url supplied from pipeline

* Fix bug to download sdks from storage account url supplied from pipeline

* fixed tests to run on packages

* cleaned up scripts

* Add AddDefaultTestEnvironmentVariables

* Replcae SetEnvironmentVariable by AddDefaultTestEnvironmentVariables

* Commented out test for python 3.11

* also add execution permissions for the restore packages script

* reordered testing shell script builder methods

* Updated error message

* Fixed astroid version conflict

* Fixed version conflict with astroid 2.8.0

* Fixed astroid 2.8.0 version conflict

* Addressed PR comments and resolved dependency conflict

* Resolved pyflakes version conflict

* Enabled test case to use default test env variables

* Resolved dependency conflicts

* Updated runtime tag

Co-authored-by: Paul Dorsch <pauldorsch@microsoft.com>
Co-authored-by: Paul Dorsch <107068277+pauld-msft@users.noreply.github.com>
Co-authored-by: waliMSFT <105239794+waliMSFT@users.noreply.github.com>
2022-11-18 11:06:24 -08:00
Paul Dorsch 575472aab7
Lock in final stretch versions for node 14 and node 16 (#1627)
* lock in final stretch versions for node 14 and node 16

* Update service connection used to authorize calls to oryx-automation resource group

Co-authored-by: Cormac McCarthy <corm@microsoft.com>
2022-10-25 14:59:41 -04:00
Zixuan Qian dae4cf03be
Add Environment variable to setup yarn timeout config (#1567)
* Add Environment variable to setup yarn timeout config

* Address feedbacks
2022-09-29 17:50:18 -07:00
Zixuan Qian 236348ca32
Add node 18 and python 3.11 dynamic installation and runtime images (#1396)
* support python bullseye SDK

* add node 18 and python 3.11

Co-authored-by: Stella Qian <zixuan.qian@microsoft.com>
2022-09-06 10:44:39 -07:00
Paul Dorsch 8f7560bc6b
Pauld/1579875 env vars to override default version (#1507)
* add NODE_DEFAULT_VERSION env var to override oryx default

* added default versions env var for various other languages

* finished adding logic for default version env vars

* added documentation and saved some files

* added tests to each platform for the heirarchy rules

* add some additional build image tests, to ensure that the environment variable works to update the default version

* removed unused constants
2022-08-12 08:49:06 -04:00
Cormac McCarthy 8460684bc3
Add build image and bind port options for Dockerfile command (#1509) 2022-08-10 09:02:35 -07:00
Paul Dorsch d5631d5acb
Pauld/1568462 cut down skeleton/cli image (#1492)
* Initial work to transition CLI image to Skeleton image

* added most of oryx cli baked in dependencies to the build script generator

* added extension to string builder to install aptget packages, and added missing installations needed for php composer

* cleaned up sample app

* cleanup, and move php prereq installation to only apply to stretch

* fixed test to comply with new version resolver behavior

* add tests for cli dynamic installation and sample apps

* added correct installation root

* fix some java github-action tests

* added package installation to ruby, and updated tests

Co-authored-by: Cormac McCarthy <corm@microsoft.com>
2022-08-09 15:45:49 -04:00
Cormac McCarthy 4d81327a25
Use specified npm version spec from package.json during build (#1392) 2022-05-20 13:39:38 -07:00
Cormac McCarthy a4de4a6466
Revert base image change to CLI image (#1385)
* Revert base image change to CLI image

* Update tests
2022-05-16 12:16:05 -07:00
Cormac McCarthy 1d3b978aec
Update CLI image and Dockerfile command for more robust builds/runs (#1380)
* Update CLI image and Dockerfile command for more robust builds/runs

* Don't generate list variables for bash or Go files

* Use latest supported runtime version as default in cases

* Update Dockerfile tests to include semver tests

* Remove "loose" argument from SemanticVersionResolver
2022-05-12 12:56:21 -07:00
Samruddhi Khandale 4a6de91684
Updates vso.focal.dockerfile (#1358)
* version changes

* installing pecl

* bump versions

* remove comment

* fix ruby test

* fix python test

* fix php + dotnet test

* fix node test

* fix tests

* nit

* nit

* fix Checker_DoesNotWarn_WhenCurrentVersionUsed

* fix test

* fix php version

* fix tests

* fix test

* fix test

* fix test

* modify requirements.txt

* bump versions

* fix tests

* nit

* fix integration test

* revert markupSafe

* attempt to fix test

* revert back to 310c310

* chnage flask to django-app
2022-04-28 20:54:03 -07:00
william-msft 2b634da095
Williamhe/1394597 add oryx run script 2 (#1331)
* Add error handling for pip install command

* Add option to handle warning of missing django module

* Add warning message for missing Django module

* Add more bash try/catches

* Add new logging for .sh.tpl platform build files

* Add LogError to python build snippet

* Update LogError and LogWarning to be in BashBashBuildScript

* Update to disable/enable flags

* Update logging message

* Update comment spacing

* Add warnings for missing django files

* Update all tabs to spaces

* Remove scriptName from LogError and LogWarning

* Update argument comparison

* Update logger to be in a new file

* Update with revert

* Update with revert

* Remove ls

* Remove logger

* Add ls

* Add another ls

* Update to copy logger.sh

* Update logger parameter requirement logic

* Add fix for https://github.com/microsoft/Oryx/issues/1073

* Add fix for https://github.com/microsoft/Oryx/issues/1073 unit test

* Update loggerPath invocation

* Update source filepath

* Update to skip unit test

* Update to remove logger path

* Update dynamic install directory to /opt/

* Add initial golang code for oryx run-script command

* Add another function for getting major.minor version for golang

* Add regex to capture major.minor versions

* Remove ftm temporarily to see if tests pass

* Add oryx run-script for php

* Add oryx run-script for ruby

* Add hugo script generator

* Add oryx run-script support for DotNet

* Update to copy .csproj during oryx run-script

* Update oryx setupEnv with oryx prep command

* Update with minor changes

* Update whitespacing

* Update by re-enabling unit test

* Update with unit test fixes

* Update retry to only run on linux

* Add documentation for testing startup script generator

* Revert dynamic installation to be in /tmp/oryx/platforms

* Add unit test file for golang

* Add unit test file for hugo

* Update to surpass cp, which prevents pipeline failures

* Revert if statement and update variable name

* Revert oryx prep to oryx setupEnv

* Update add port listening to golang sample app

* Add golang to build manifest

* Remove golang dynamic installation

* Update the binary executable name

* Update to address style requirements

* Update with minor refactoring

* Update NodeLtsVersions node version to fix pipeline failure

* Add full support for Node 14.19.1

* Update node runtime tag

* Fix golang startupscriptgenerator error

* Update the version of golang viper package

* Revert VersionProvider changes

* Add debug for oryx prep

* Add debug for oryx prep

* Update tabs with spaces

* Remove unnecessary comments
2022-04-15 16:08:19 -07:00
Cormac McCarthy 00a45e50c4
Update 'oryx dockerfile' command to work as intended (#1332)
* Update 'oryx dockerfile' command to work as intended

* Resolve review feedback

* Fix failing tests in DefaultDockerfileGeneratorTest

Co-authored-by: William Hernandez-Limon <williamhe@microsoft.com>
2022-04-14 16:08:01 -07:00
Cormac McCarthy f78e2755e2
Add initial code analysis and rulesets for repository (#1278)
* Add initial code analysis and rulesets for repository

* Test bumping .NET SDK version to 6.0.x

* Revert change to .NET SDK used during build, downgrade version of VS analysis library used to match .NET SDK tooling

* Downgrade version of SmartAnalyzers.CSharpExtensions.Annotations
2022-03-15 09:00:04 -07:00
Zixuan Qian 71bacc8cc3
Support custom requirements.txt location (#1219)
* support custom requirements.txt location

* add more tests

Co-authored-by: Stella Qian <zixuan.qian@microsoft.com>
2022-02-17 20:23:01 -08:00
william-msft ec344c0588
Add fix so users can build repos with white space (#1213)
* Add fix so users can build repos with white space

* Add fix so users can build repos with white space

* Add more quotes to bash variables

* Update unit to incorporate double quotes
2022-01-31 14:12:05 -08:00
william-msft 369b946264
Williamhe/1366864 fix issue 1073 yarn engine detection (#1140)
* Add fix for https://github.com/microsoft/Oryx/issues/1073

* Add fix for https://github.com/microsoft/Oryx/issues/1073 unit test

* Update package manager to an invalid one

* Add E2E test

* Update engine type
2021-10-28 15:18:20 -07:00
Zixuan Qian f0cbc9b1f0
Support Blazor Wasm App installing AOT workloads (#1033)
* support blazor wasm app installing AOT workload

* updates

* fix tests

* rename microsoft-net-sdk-blazorwebassembly-aot to wasm-tools

* update

* add python 3.6 to jamstack image

* update aot test with correct image

* fix test

* update

* update create-react-context for cg removal

Co-authored-by: Arjun Roy Chaudhuri <arroyc@microsoft.com>
2021-10-01 10:19:19 -07:00
william-msft d6bb23659a
1342673 add build script generator for golang (#1083)
* Add golang version providers

* Add golang buildscript generator and options

* Add golang platform

* Add golang platform tests to check unsupported version throws exception & generated script is generated

* Add unit test to check when no version is provided. TODO: fix path issue

* Update version with ~ to account for missing minor and patch golang version

* Add platform binary for golang

* Add golang platform & build scripts

* Update buildplatformbinaries with golang

* Test permission fix

* Test chmod for buildGolang.sh

* Test permissions by removing u

* Test add cd imagesDir

* Test add cd buildDir

* Test add ls statement to see what is in the folder

* Update name of build golang version bash script

* Update the name of the golang versions for jamstack image

* Test golang version constant name

* Test version update

* Update GOLANG_VERSION name

* Add go build, install, & run

* Update with TODO for future optimizations

* Test docker build command updates

* Update with typo fix

* Update with golang version fix

* Update to include compressedSdkDir

* Remove patch version

* Test add make

* Test remove make

* Test minor change

* Add go installation code

* Remove sudo

* Test remove apt-get

* Test update version

* Test update version

* Test update installtion

* Test remove golang prereq

* Test update to prereqs

* Test update to prereqs

* Test update to prereqs

* Test update to prereqs

* Test update to prereqs

* update defaultversion for golang

* Revert nodejs dockerfile

* Test minor update

* update publishtoazurestorage script

* update

* Test update golang sdk file name

* update

* update platform binary creation for golang

* update

* update

* udpate default golang version to 1.17

* udpate

* update

* remove adding duplicate golang support in full build image

* Add unit tests for go binary check

* Update with minor fix

* Update binary path

* Update with minor fix

* Upate with minor changes

* Update golang version to only support major.minor, with option of patch version format

* Remove code that is used for buildBuildImages

* Revert env & sha code changes

* Revert accidental delete from dotnet nuget

* Add additional code for invoking orxy build gorepo

* Revert benv code

* Update rm a few lines up

* Update golang constant

* Add GetToolsToBeSetInPath implementation to golang

* Update detector error message and track GoModExists

* Add code to build golang app

* Remove maxSatisfyVersion to support major.minor versions

* Remove golang app invocation

* Remove TODOs

* Remove unused code

* Revert return statement

* Add golang build time metrics

* Update from debug to error message

* Update to fix unit test

* Update golang hello world app

* Add golang dynamic installation unit test

* Add golang storage account unit test

* Add configuration and supported versions documentation

* Update version documentation and minor logic change

* Update to disable multiplatform build

Co-authored-by: Arjun Roy Chaudhuri <arroyc@microsoft.com>
2021-09-03 17:03:05 -07:00
Arjun Roy Chaudhuri 653399a98a
remove plugin import command from yarn2 install (#1067)
* remove plugin import command from yarn2 install

* update test

* fix yarn2 test
2021-07-30 11:37:24 -07:00
Arjun Roy Chaudhuri a389296f4a
Move buildcommandsfile's default location to manifestdir location and fix some casing (#1063)
* update

* update

* update

* update

* update

* update buildcommand formatting for vso image

* fix gpg issue and add terminal pathing for vso

* udpate

* update

* update

* update build breaks

* update

* update

* update and fix conda test break

* update vso-slim image type in test

* write build commands to manifest directory

* remove duplicate keyserver from receivegpgkey script

* update casing for build-commands.txt

* update tests

* skip yarn2 test

* update

* update nodejs to Node.js and python to Python in buildcommand file

* skip npmpackagebuild test
2021-07-27 18:06:22 -07:00
Arjun Roy Chaudhuri 1c864f79f5
Introduce slim vso image and dynamically print node and python build commands for vso and support terminal pathing for vso (#1038)
* update

* update

* update

* update

* update

* update buildcommand formatting for vso image

* fix gpg issue and add terminal pathing for vso

* udpate

* update

* update

* update build breaks

* update

* update

* update and fix conda test break

* update vso-slim image type in test
2021-07-26 00:02:32 -07:00
Zixuan Qian 251b79baad
Support custom build command for Jekyll apps (#1008)
* support custom build command for jekyll apps

* address feedback

* update
2021-05-11 17:23:43 -07:00
Zixuan Qian 28bc0976c7
Add yarn2 test for vso image and sample app (#970) 2021-05-06 16:34:39 -07:00
Arjun Roy Chaudhuri 0cba8fa4eb
change yarn cache config to be false by deffault (#984) 2021-04-14 14:32:12 -07:00
Arjun Roy Chaudhuri e73613ae1f
fix yarn2 detection logic with updated tests (#982)
* fix yarn2 detection logic with updated tests

* update
2021-04-09 17:47:20 -07:00
Zixuan Qian f064fe972f
Remove yarn cache from full build image (#966)
* remove yarn cache from full build image

* remove test
2021-03-30 15:14:25 -07:00
Zixuan Qian 005ac06537
Support yarn 2 (#942)
* support yarn 2
2021-03-04 19:50:00 -08:00
Zixuan Qian 0efbb7b9fb
Support Jekyll app builds for static web apps (#926) 2021-02-26 12:17:21 -08:00
Zixuan Qian 616edfb98a
Add package directory property for building Nodejs apps (#859) 2020-11-30 22:09:07 -08:00
Zixuan Qian 0c897a9066
Support custom build commands or script for Nodejs apps (#844) 2020-11-18 16:40:22 -08:00
Zixuan Qian 7c75e43a01
Add an option to enable build node monorepo apps (#820) 2020-10-23 15:13:31 -07:00
Zixuan Qian 6eb3285633
Support building Node Monorepos Apps (#798) 2020-10-20 02:47:13 -07:00
Arjun Roy Chaudhuri 1a35fbce48
Update python packaging to support building universal wheel for python (#815)
* update

* update

* update

* update & rebase
2020-10-14 15:30:40 -07:00
Arjun Roy Chaudhuri 18eff51e6d
fix listing multiple platform names in build manifest (#784) 2020-09-21 10:01:58 -07:00
Kiran a6b4b3d3a7
Fix dotnet core installation directory structure (#777) 2020-09-21 09:17:09 -07:00
Zixuan Qian 71641f35d9
Support Ruby in BuildScriptGenerator (#756) 2020-09-14 20:12:00 -07:00
Kiran 4df32d7aa6
Fix php-composer build failure (#744) 2020-08-24 15:40:41 -07:00
Arjun Roy Chaudhuri 69133d03f9
add python packaging support for linux-x86-64 (#729)
* add support for python packaging in linux

* update

* update tests

* clean up code and update
2020-08-19 16:08:32 -07:00
Kiran 51fe69b7c1
Install miniconda in VSO image and build apps targeting conda-jupyter (#700) 2020-07-31 16:33:46 -07:00
Zixuan Qian 5fe3dd51cd
Clean up some duplicates from BuildScriptGenerator (#685) 2020-07-18 01:18:56 -07:00
Kiran b870474760
Move Blazor Wasm app detection and tests to Detector library (#687) 2020-07-15 11:41:10 -07:00
Kiran 54c8d66546
Copy .npmrc and .yarnrc to prod node modules folder (#679) 2020-07-10 18:16:54 -07:00
Kiran 86a4d7df83
Integrate Detector library into BuildScriptGenerator (#668) 2020-07-08 13:01:37 -07:00
Zixuan Qian 8353f218b5
Add Php preview version resolving to Php platform (#667) 2020-07-07 11:25:33 -07:00
Arjun Roy Chaudhuri 44d43e8cb6
Detect Blazor Wasm and write function platform to manifest (#658)
* update to resolve merge conflicts from master

* update

* update tests

* update

* add more buildimage tests

* remove debugging codes

* update

* update

* update after discussing feedbacks

* more updates

* fix integration test for multiplatform build
2020-07-02 13:25:16 -07:00
Kiran ff7636c284
Fix Python app detection (#656) 2020-06-25 15:38:40 -07:00
Kiran 721a5fbccf
Fixed stylecop warnings (#655) 2020-06-25 14:39:02 -07:00
Kiran 4c465d7726
Detector: Make only few types public and the rest internal (#648) 2020-06-25 06:44:34 -07:00