Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
771a3005
Unverified
Commit
771a3005
authored
Sep 01, 2022
by
Samruddhi Khandale
Committed by
GitHub
Sep 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oryx - Fix bug when dynamically installing dotnet in universal image (#125)
* fix oryx * copy /images * bimp version
parent
14d98b77
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
2 deletions
+54
-2
devcontainer-feature.json
src/oryx/devcontainer-feature.json
+1
-1
install.sh
src/oryx/install.sh
+4
-0
install_dotnet_and_oryx.sh
test/oryx/install_dotnet_and_oryx.sh
+35
-0
scenarios.json
test/oryx/scenarios.json
+4
-1
test.sh
test/oryx/test.sh
+10
-0
No files found.
src/oryx/devcontainer-feature.json
View file @
771a3005
{
{
"id"
:
"oryx"
,
"id"
:
"oryx"
,
"version"
:
"1.0.
4
"
,
"version"
:
"1.0.
5
"
,
"name"
:
"Oryx"
,
"name"
:
"Oryx"
,
"description"
:
"Installs the oryx CLI"
,
"description"
:
"Installs the oryx CLI"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/oryx"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/oryx"
,
...
...
src/oryx/install.sh
View file @
771a3005
...
@@ -166,6 +166,10 @@ find "${ORYX_INSTALL_DIR}" -type d -print0 | xargs -n 1 -0 chmod g+s
...
@@ -166,6 +166,10 @@ find "${ORYX_INSTALL_DIR}" -type d -print0 | xargs -n 1 -0 chmod g+s
find
"
${
BUILD_SCRIPT_GENERATOR
}
"
-type
d
-print0
| xargs
-n
1
-0
chmod
g+s
find
"
${
BUILD_SCRIPT_GENERATOR
}
"
-type
d
-print0
| xargs
-n
1
-0
chmod
g+s
find
"
${
ORYX
}
"
-type
d
-print0
| xargs
-n
1
-0
chmod
g+s
find
"
${
ORYX
}
"
-type
d
-print0
| xargs
-n
1
-0
chmod
g+s
# /opt/tmp/build and /opt/tmp/images is required by Oryx for dynamically installing platforms
cp
-rf
$GIT_ORYX
/build /opt/tmp
cp
-rf
$GIT_ORYX
/images /opt/tmp
# Clean up
# Clean up
rm
-rf
$GIT_ORYX
rm
-rf
$GIT_ORYX
...
...
test/oryx/install_dotnet_and_oryx.sh
View file @
771a3005
...
@@ -8,5 +8,40 @@ source dev-container-features-test-lib
...
@@ -8,5 +8,40 @@ source dev-container-features-test-lib
check
"Oryx version"
oryx
--version
check
"Oryx version"
oryx
--version
check
"Dotnet is not removed if it is not installed by the Oryx Feature"
dotnet
--version
check
"Dotnet is not removed if it is not installed by the Oryx Feature"
dotnet
--version
# Install platforms with oryx build tool
check
"oryx-install-dotnet-2.1"
oryx prep
--skip-detection
--platforms-and-versions
dotnet
=
2.1.30
check
"dotnet-2-installed-by-oryx"
ls
/opt/dotnet/ |
grep
2.1
check
"oryx-install-nodejs-12.22.11"
oryx prep
--skip-detection
--platforms-and-versions
nodejs
=
12.22.11
check
"nodejs-12.22.11-installed-by-oryx"
ls
/opt/nodejs/ |
grep
12.22.11
check
"oryx-install-php-7.3.25"
oryx prep
--skip-detection
--platforms-and-versions
php
=
7.3.25
check
"php-7.3.25-installed-by-oryx"
ls
/opt/php/ |
grep
7.3.25
check
"oryx-install-java-12.0.2"
oryx prep
--skip-detection
--platforms-and-versions
java
=
12.0.2
check
"java-12.0.2-installed-by-oryx"
ls
/opt/java/ |
grep
12.0.2
# Replicates Oryx's behavior for universal image
mkdir
-p
/opt/oryx
echo
"vso-focal"
>>
/opt/oryx/.imagetype
mkdir
-p
/opt/dotnet/lts
cp
-R
/usr/local/dotnet/current/dotnet /opt/dotnet/lts
cp
-R
/usr/local/dotnet/current/LICENSE.txt /opt/dotnet/lts
cp
-R
/usr/local/dotnet/current/ThirdPartyNotices.txt /opt/dotnet/lts
# Install platforms with oryx build tool
check
"oryx-install-dotnet-2.1-universal"
oryx prep
--skip-detection
--platforms-and-versions
dotnet
=
2.1.30
check
"dotnet-2-installed-by-oryx-universal"
ls
/opt/dotnet/ |
grep
2.1
check
"oryx-install-nodejs-12.22.11-universal"
oryx prep
--skip-detection
--platforms-and-versions
nodejs
=
12.22.11
check
"nodejs-12.22.11-installed-by-oryx-universal"
ls
/opt/nodejs/ |
grep
12.22.11
check
"oryx-install-php-7.3.25-universal"
oryx prep
--skip-detection
--platforms-and-versions
php
=
7.3.25
check
"php-7.3.25-installed-by-oryx-universal"
ls
/opt/php/ |
grep
7.3.25
check
"oryx-install-java-12.0.2-universal"
oryx prep
--skip-detection
--platforms-and-versions
java
=
12.0.2
check
"java-12.0.2-installed-by-oryx-universal"
ls
/opt/java/ |
grep
12.0.2
# Report result
# Report result
reportResults
reportResults
test/oryx/scenarios.json
View file @
771a3005
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
"install_dotnet_and_oryx"
:
{
"install_dotnet_and_oryx"
:
{
"image"
:
"ubuntu:focal"
,
"image"
:
"ubuntu:focal"
,
"features"
:
{
"features"
:
{
"dotnet"
:
"6"
,
"dotnet"
:
{
"version"
:
"6"
,
"installUsingApt"
:
"false"
},
"oryx"
:
{}
"oryx"
:
{}
}
}
}
}
...
...
test/oryx/test.sh
View file @
771a3005
...
@@ -9,8 +9,18 @@ check "Oryx version" oryx --version
...
@@ -9,8 +9,18 @@ check "Oryx version" oryx --version
check
"ORYX_SDK_STORAGE_BASE_URL"
echo
$ORYX_SDK_STORAGE_BASE_URL
check
"ORYX_SDK_STORAGE_BASE_URL"
echo
$ORYX_SDK_STORAGE_BASE_URL
check
"ENABLE_DYNAMIC_INSTALL"
echo
$ENABLE_DYNAMIC_INSTALL
check
"ENABLE_DYNAMIC_INSTALL"
echo
$ENABLE_DYNAMIC_INSTALL
# Install platforms with oryx build tool
check
"oryx-install-dotnet-2.1"
oryx prep
--skip-detection
--platforms-and-versions
dotnet
=
2.1.30
check
"dotnet-2-installed-by-oryx"
ls
/opt/dotnet/ |
grep
2.1
check
"oryx-install-nodejs-12.22.11"
oryx prep
--skip-detection
--platforms-and-versions
nodejs
=
12.22.11
check
"oryx-install-nodejs-12.22.11"
oryx prep
--skip-detection
--platforms-and-versions
nodejs
=
12.22.11
check
"nodejs-12.22.11-installed-by-oryx"
ls
/opt/nodejs/ |
grep
12.22.11
check
"nodejs-12.22.11-installed-by-oryx"
ls
/opt/nodejs/ |
grep
12.22.11
check
"oryx-install-php-7.3.25"
oryx prep
--skip-detection
--platforms-and-versions
php
=
7.3.25
check
"php-7.3.25-installed-by-oryx"
ls
/opt/php/ |
grep
7.3.25
check
"oryx-install-java-12.0.2"
oryx prep
--skip-detection
--platforms-and-versions
java
=
12.0.2
check
"java-12.0.2-installed-by-oryx"
ls
/opt/java/ |
grep
12.0.2
# Report result
# Report result
reportResults
reportResults
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment