Commit graph

113 commits

Author SHA1 Message Date
Samruddhi Khandale
719901a1b4
[common-utils] Bug fix: zsh missing rc snippet (#736)
* [common-utils] Bug fix: zsp missing rc snippet

* condion rc snippet

* fix bug

* remove debugging step
2023-10-27 15:47:26 -07:00
Samruddhi Khandale
36a3604b90
[Python] - Support 3.12 (#726) 2023-10-17 15:05:01 -07:00
Masahiro Wada
243671eece
Enhancements in CUDA Support (#699)
* add cuda tookit installing support

* add nvcc installing support

* add libcudnn8-dev installing support

* add new cuda versions adn cudnn versions

* add specificaitons of new option

* remove installNvcc

installNvcc process is included in installToolkit

* add tests for new nvidia-cuda options

* fix wrong scenario name

* Revert "add specificaitons of new option"

This reverts commit 0dcdb92406.

README.md should be generated by CI workflow.

* make cudnn-dev installation isolated

* dump minor version to 1.1.0
2023-09-27 12:17:31 -07:00
Alexander Smolyakov
0d2fc3ad5b
[python] Change the sudo_if function to avoid issues with Bash (#694)
* [python] Updated `sudo_if` function

- Remove double quotes to avoid issues with string tokenization

* Add test scenario

* Revert "Add test scenario"

This reverts commit 9e62a3797a.

* Update `jupyterlab git` package name

* Bump feature version

* Test: Install jupyterlab under root user

* Refactor changes

* Bump patch version

* Address review points
2023-09-27 11:51:26 -07:00
Pablo Ulloa
e7f7d194d6
[common-utils] fix bug when user home is custom by base docker (#703)
* [common-utils] fix bug when user home is custom by base docker

* bumped minor version

* reduced conditions to improve readability
2023-09-27 11:45:29 -07:00
Pablo Ulloa
9852ca8888
[java] fix version regex to support graalce jdk 21 (#701)
* [java] fixed feature test scenario check

* [java] support for non conentional version

* Update src/java/install.sh to not include whitespaces

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* bumped patch version

---------

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
2023-09-27 09:26:53 -07:00
Steven
96c1eea40f
Use dotnet-install.sh in .NET feature (#628)
* Use dotnet-install.sh in .NET feature

* Use latest.version files

* Cleanup runtime args

* Use latest.version files in tests as well

* Improve tests, remove code duplication

* Add stderr helper

* Validate version inputs

* Use suggested description

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* Shorter version description

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* Shorter version description

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* Clean up apt lists

* Verify 7.0 is latest

* Fix PATH, add test for .NET global tools

* Include a copy of dotnet-install.sh in the Feature

* Configure useful env variables

* Use stringly typed booleans

* Keep imperative writing style in option hints

* Update maintainers

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* Move dotnet-install.sh into a vendor directory

* Refactor variables

* Amend

* Amend 2

* Use default options from devcontainer-feature.json

* Add back variables

* Fix shellchek warning in fetch_latest_sdk_version

* Inline install_version function

* Fix ShellCheck warnings

* Improve CSV parsing

* Default to latest when configuring an empty version

* Add support for runtime-only configurations

* Move 'none' check higher up

* Deduplicate helper functions, sort into files

* Address the user more directly in NOTES

* Remove unnecessary defaults

* Replace feature -> Feature

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* Add update-dotnet-install-script workflow

* Apply suggestions from code review

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* Don't skip ci for automated script update

---------

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
2023-09-11 11:16:24 -07:00
eitsupi
95a169b9ef
[node] Install the latest version of nvm by default (#673)
feat(node): install the latest nvm by default
2023-08-28 14:26:30 -07:00
naturedamends
0668db5ede
Commonutils: chown: cannot access '/home/vscode/.zshrc': No such file or directory (#662)
* Update main.sh

* Update devcontainer-feature.json

* Test install as non root user.

---------

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
2023-08-25 16:39:32 -07:00
Samruddhi Khandale
0cf690ee14
[docker in docker] Adds retries for docker daemon startup and cgroup nesting (#669)
* adds retry logic

* adds stress test workflow

* Adds cgroup retries

* update workflow

* move sleep cmd

* update test

* cleanup
2023-08-24 12:31:40 -07:00
Samruddhi Khandale
a4b31f314f
[docker-in-docker] Reverts the retry logic (#659)
* Update install.sh

* [docker-in-docker] Update retry logic

* revert the retry logic!
2023-08-18 16:01:50 -07:00
Samruddhi Khandale
c58b614202
Azure-cli: Revert temporary fix which installed az with python (#629) 2023-08-16 11:38:49 -07:00
Samruddhi Khandale
f90cb26c7f
Common-utils: Fixes "No package jq available" errors for CentOS (#644)
* add checks for "jq"

* install epel-release if necessary

* clean up epel-release post installation of "jq"
2023-08-14 16:12:47 -07:00
naturedamends
be082b0ef5
Common utils: Add config to remove zsh rc files from (#614)
* Add config to remove zsh rc files from common-utils.

* Bump version and add config to install script.

* Checks preventing excess writing to .zshrc.

* Change devcontainer feature option name.

* Coding standards.

* Favour adding feature via config 

and default to overriding .zshrc with dev-container default template.

* Update devcontainer-feature.json

* Update devcontainer-feature.json

* Update src/common-utils/devcontainer-feature.json

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* Update src/common-utils/devcontainer-feature.json

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>

* Testing for using devcontainer .zshrc template file.

* Coding standards.

* Coding standards.

* Update configure_zsh_as_default_shell_no_template.sh

* Grammar in configure_zsh_as_default_shell.sh

* Testing accounts for marked file cache  (#4)

* Account for mark file in testing.

* Remove some debugging and tests back

* Add back tests?

* Update configure_zsh_no_template.sh

---------

Co-authored-by: Samruddhi Khandale <samruddhikhandale@github.com>
2023-08-11 16:01:57 -07:00
Shikanime Deva
9e75db9a1d
Avoid unexpected shell expansion (#645)
* Avoid unexpected shell expansion

* Add install Node with ZSH as default test

* Fix LTS only work on >bionic

* Bump Node feature version

* Remove huge universal image on scenarios
2023-08-09 16:20:27 -07:00
Samruddhi Khandale
bbb24d10d4
Docker-in-docker: Add retries to the docker-init script until docker daemon starts (#637)
* Docker-in-docker: Add retries until docker daemon starts

* address comments
2023-08-07 15:59:58 -07:00
Krikchai Pongtaveewould
685fa2e0f1
Fix: common-utils configureZshAsDefaultShell option not working on alpine linux image (#557)
* alpine defaultZsh fix

* common-utils: replace pam.d/chsh permission with `sufficient`

* common-utils: revert match auth sufficient

* common-utils: append auth string instead of replacing a whole file

* fix grep 2nd param

* fix: line checking condition
2023-08-02 15:12:14 -07:00
Samruddhi Khandale
300814be97
Dotnet: Fix Feature failures on ubuntu:jammy (when installing using apt) (#590)
* fix several bugs

* fix test: .NET is now installed from ubuntu feeds

* add comment ; use dev containers image

* address comments

* revert debugging cmd

* fix test for bookworm
2023-06-29 15:14:11 -07:00
dependabot[bot]
b6dbe7051c
Bump mpmath from 1.2.1 to 1.3.0 in /test/oryx/sample-python (#554)
Bumps [mpmath](https://github.com/fredrik-johansson/mpmath) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/fredrik-johansson/mpmath/releases)
- [Changelog](https://github.com/mpmath/mpmath/blob/master/CHANGES)
- [Commits](https://github.com/fredrik-johansson/mpmath/compare/1.2.1...1.3.0)

---
updated-dependencies:
- dependency-name: mpmath
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-28 16:16:30 -07:00
Josh Spicer
ccce957d7e
Azure CLI: Compatibility with Debian bookworm (#578)
* add flag

* try to install via apt version of pipx (will only work on bookworm)

* _REMOTE_USER aware

* dont change more than you need to,josh

* increment azure-cli minor version (v1.1.0)

* install globally

* make sure env variables are in scope
2023-06-27 14:31:18 -07:00
Josh Spicer
d934503a05
Terraform: Add cosign integrity check for TFLint (#586)
* add cosign integrity check for tflint

* fallback to gpg verification
2023-06-21 11:13:46 -07:00
Shunya Hayashi
cfae3b0f0d
update go tools (#559)
* update go tools

* update link

* add unit tests for confirm installation

* fix path install gotests

* fix bump the minor version
2023-05-31 08:53:50 -07:00
Stephen A. Imhoff
1869e5931c
Create .config directory in common-utils (#547)
* Add test case for mounted subdirectory.

* Correct some trailing whitespace.

* Correct variable name to better reflect status as user home path.

* Add config directory creation.

* Remove extra debug line.

* Bump feature version.

* Mount host user home directory as "subdirectory"

* Correct test naming, run test in explicit bash shell.
2023-05-10 10:04:16 -07:00
M. R
4312340798
Add support for skipping docker-compose v1 operations during Docker feature install script (#533)
* Add support for skipping docker-compose operations

* Move changes from auto-generated files to templates and bump version

* Add test

* Add test conditions

* Add test conditions for docker-outside-of-docker

* install.sh set -x for debugging

* set -x

* Move compose-switch check in docker-outside-of-docker test

* Put into correct test

* Test for correct path
2023-05-02 12:00:45 -07:00
Samruddhi Khandale
fad03b19d4
Oryx - Switch to .NET 7 (#522)
* Oryx - Switch to .NET 7

* fix test ; add test

* fix test - back compat
2023-04-18 14:37:51 -07:00
Alexander Smolyakov
8d3e9aca9d
[features/conda] Address CVE-2023-0286, CVE-2023-23931, and CVE-2022-40897 vulnerabilities (#518)
* [features/conda] Address CVE-2023-0286, CVE-2023-23931, and CVE-2022-40897 vulnerabilities

- Update `install.sh` to install updates for `cryptography` and `setuptools`  packages
- Add tests to verify `cryptography` and `setuptools`  packages version

* Bump feature version
2023-04-06 10:02:49 -07:00
Felipe Santos
7f605b9452
Fix several issues with docker-outside-of-docker (#443)
* Fix several issues with docker-outside-of-docker

* Add initial tests and bump version

* Add two tests

* Fix docker buildx conflict

* Fix possible test issue

* Add tests for moby

* Add buildx test to init

* Fix inconsistency

* Many fixes and improvements

* Make dockeDashCompose v2 by default
2023-04-05 11:21:36 -07:00
Josh Spicer
2952d87f1d
add a postCreateCommand to git-lfs Feature (#511)
* add a postCreateCommand to git-lfs Feature

* debug passing locally but not in CI

* update scenario

* add GIT_LFS_SKIP_SMUDGE=1 to prevent fetching lfs arifacts in github actions

* arguments should be booleans

* move example repo to devcontainers org

* place script literally anywhere other than /tmp
2023-04-04 06:47:04 -07:00
Samruddhi Khandale
1118b992d9
Ruby: Fix failures - omit "ruby-debug-ide" (#505)
* Ruby: Fix failures on debian image due to ruby-debug-ide

* omit
2023-03-28 16:05:17 -07:00
Daniel Ciborowski
d4c3fefc4a
Add pytest to Python Feature (#487)
* Update install.sh

* Update install_additional_python.sh

* Update install_os_provided_python.sh

* Update install_via_oryx.sh

* Update test.sh

* Update devcontainer-feature.json
2023-03-14 08:23:28 -07:00
Samruddhi Khandale
de1e634a67
Docker fix - BuildKit is enabled but the buildx component is missing or broken (#478)
* Docker fix - BuildKit is enabled but the buildx component is missing or broken

* nit

* fix test
2023-03-08 15:30:59 -08:00
Akihiro Nagai
83c6103db2
Add pnpm in Node (#450)
* Add pnpm in Node

* pnpm from npm

* Restore README.md

* Update install.sh

* Update tests
2023-02-27 09:12:21 -08:00
Stefan Drzazga
900cbfc1f9
Add sentinel to terraform feature (#452)
* Introducing Sentinel installation

* Modifying docs for sentinel

* Modifying tests for sentinel

* Revert "Modifying docs for sentinel"

This reverts commit 818894b22f.

* Modifying docs for sentinel

* Fixing duplication issue for sentinel url

* Update src/terraform/install.sh

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

* Increase minor version

---------

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
2023-02-15 11:59:31 -08:00
Samruddhi Khandale
4a9929f964
kubectl-helm-minikube: Allow none (#442) 2023-02-07 11:45:48 -08:00
Samruddhi Khandale
36d7664eba
PHP: Allow 'version:none' (#439)
* PHP: Allow 'version:none'

* fix tests
2023-02-07 09:52:33 -08:00
Ross Smith
7763e0b7db
Install PowerShell Modules (#427)
* InstallBicep

* Add test for InstallBicep

* Install pwsh Modules

* Script rename

* Add -Command to test

* Check version

* Install the module for all users

* Adding terminating lines to scripts

* Update src/powershell/install.sh

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

* Update src/powershell/install.sh

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

* Removed comments in Readme

* Remove Bicep from PowerShell install

* Increased version number

* Update Minor version rather than patch

---------

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
2023-01-30 11:29:13 -08:00
Samruddhi Khandale
7a3a9c5fca
Php: Auto configure if a three part version is not provided (#406)
* Php: Auto configure if a three part version is not provided

* fix test

* update checks

* Bump version
2023-01-20 09:22:39 -08:00
Tobias Gesellchen
d78a153492
Java: add Apache Ant (#409)
* Java: add Apache Ant

* Update src/java/devcontainer-feature.json

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

* revert the changes in README.md

* Add tests for Java/Ant

* Fix Java feature version

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
2023-01-18 13:24:10 -08:00
Samruddhi Khandale
74dd2710dc
Git: Use sysconfdir=/etc for git built from source (#395)
* Git: Adds a new 'addGitConfigSymlink' option

* Use sysconfdir
2023-01-11 11:02:28 -08:00
Samruddhi Khandale
e67f4dc0fd
Common-utils: Fix build failures for alpine 3.14 & 3.15 (#393)
* Common-utils: Fix build failures for alpine 3.14 & 3.15

* version bump
2023-01-10 15:09:56 -08:00
eitsupi
7e32db56c0
[common-utils] Fix permission of scripts in containers (#388)
* fix permission in containers

* add test

* bump version

* more tests

* update tests

* Update test/common-utils/devcontainer-info/Dockerfile

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

* Update test/common-utils/scenarios.json

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>

* Update scenarios.json

* Update devcontainer-info.sh

Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
2023-01-10 13:50:09 -08:00
Samruddhi Khandale
59fa3e3c21
Conda: Update 'certifi' due to CVE-2022-23491 (#383) 2023-01-09 14:49:43 -08:00
Julien Boudry
8f7eec80d4
[PHP] Enable Mbstring (#371)
Mbstring is such a popular PHP extension that it is used everywhere and most libraries don't work without it. It can be compiled directly with PHP.
The official Docker images of PHP include it.
2023-01-04 13:12:53 -08:00
Samruddhi Khandale
eef35a4399
Rename "docker-from-docker" to "docker-outside-of-docker" (#373)
* Rename to "docker-outside-of-docker"

* rename test folder
2023-01-04 11:52:05 -08:00
Samruddhi Khandale
29babe4245 fix test 2022-12-27 18:35:13 +00:00
Samruddhi Khandale
b9bfe406d2
Update GPG_KEY_SERVERS: Remove :80 from Ubuntu Keyserver (#354)
* Update GPG_KEY_SERVERS: Remove `:80` from Ubuntu Keyserver

* Fix ruby tests
2022-12-21 12:15:24 -08:00
Samruddhi Khandale
48678001d1
Terraform: Update GPG_KEY_SERVERS (#353)
* Terraform: Update GPG_KEY_SERVERS

* add check
2022-12-21 09:11:10 -08:00
Mark Phippard
fede405549
Add support for mariner (#344) 2022-12-19 11:25:32 -05:00
Samruddhi Khandale
2af02c198a
Git - Bug Fix: Feature fails with "ppa:false" for "buster" & "bullseye" (#340) 2022-12-16 16:08:37 -08:00
Samruddhi Khandale
e46c73de74
Git - Bug Fix: Feature fails with "ppa:false" for bionic & jammy (#339) 2022-12-16 14:21:05 -08:00