File tree 4 files changed +25
-20
lines changed
local-features/setup-user
4 files changed +25
-20
lines changed Original file line number Diff line number Diff line change 15
15
"resolved" : " ghcr.io/devcontainers/features/docker-in-docker@sha256:f6a73ee06601d703db7d95d03e415cab229e78df92bb5002e8559bcfc047fec6" ,
16
16
"integrity" : " sha256:f6a73ee06601d703db7d95d03e415cab229e78df92bb5002e8559bcfc047fec6"
17
17
},
18
- "ghcr.io/devcontainers/features/dotnet:1 " : {
19
- "version" : " 1.1.4 " ,
20
- "resolved" : " ghcr.io/devcontainers/features/dotnet@sha256:0961cacbf160e67472c610b8a2836151854eca8657f14ee5fde604285829c2e4 " ,
21
- "integrity" : " sha256:0961cacbf160e67472c610b8a2836151854eca8657f14ee5fde604285829c2e4 "
18
+ "ghcr.io/devcontainers/features/dotnet:2 " : {
19
+ "version" : " 2.0.1 " ,
20
+ "resolved" : " ghcr.io/devcontainers/features/dotnet@sha256:0bddaf888065650a56abdca16d1c2669aeb0259cf6bbe0879d12cd7e11164fe8 " ,
21
+ "integrity" : " sha256:0bddaf888065650a56abdca16d1c2669aeb0259cf6bbe0879d12cd7e11164fe8 "
22
22
},
23
23
"ghcr.io/devcontainers/features/git-lfs:1" : {
24
24
"version" : " 1.1.1" ,
61
61
"integrity" : " sha256:7d31b83459dd5110c37e7f5acb2920335cb1e5ebf014326d7eb6a0b290cc820a"
62
62
},
63
63
"ghcr.io/devcontainers/features/oryx:1" : {
64
- "version" : " 1.1 .0" ,
65
- "resolved" : " ghcr.io/devcontainers/features/oryx@sha256:c83715c52f96077e3ba3a0ef986b76c6faba5bbc5d08935627bc61a579613176 " ,
66
- "integrity" : " sha256:c83715c52f96077e3ba3a0ef986b76c6faba5bbc5d08935627bc61a579613176 "
64
+ "version" : " 1.2 .0" ,
65
+ "resolved" : " ghcr.io/devcontainers/features/oryx@sha256:6e7ea6baf731ceae44c946567cb2f7497da22b82ef89384a49f5639d17f765f5 " ,
66
+ "integrity" : " sha256:6e7ea6baf731ceae44c946567cb2f7497da22b82ef89384a49f5639d17f765f5 "
67
67
},
68
68
"ghcr.io/devcontainers/features/php:1" : {
69
69
"version" : " 1.1.2" ,
Original file line number Diff line number Diff line change 9
9
"userUid" : " 1000" ,
10
10
"userGid" : " 1000"
11
11
},
12
- "ghcr.io/devcontainers/features/dotnet:1 " : {
13
- "version" : " 7.0.306 " ,
14
- "installUsingApt " : " false " ,
15
- "additionalVersions " : " 6 "
12
+ "ghcr.io/devcontainers/features/dotnet:2 " : {
13
+ "version" : " 8.0 " ,
14
+ "dotnetRuntimeVersions " : " 7.0 " ,
15
+ "aspNetCoreRuntimeVersions " : " 7.0 "
16
16
},
17
17
"ghcr.io/devcontainers/features/hugo:1" : {
18
18
"version" : " latest"
Original file line number Diff line number Diff line change @@ -59,11 +59,17 @@ mkdir -p /home/${USERNAME}/.ruby
59
59
ln -snf /usr/local/rvm/rubies/default $RUBY_PATH
60
60
61
61
DOTNET_PATH=" /home/${USERNAME} /.dotnet"
62
- ln -snf /usr/local/dotnet/current $DOTNET_PATH
62
+
63
+ # Required due to https://github.com/devcontainers/features/pull/628/files#r1276659825
64
+ chown -R " ${USERNAME} :${USERNAME} " /usr/share/dotnet
65
+ chmod g+r+w+s /usr/share/dotnet
66
+ chmod -R g+r+w /usr/share/dotnet
67
+
68
+ ln -snf /usr/share/dotnet $DOTNET_PATH
63
69
mkdir -p /opt/dotnet/lts
64
- cp -R /usr/local /dotnet/current /dotnet /opt/dotnet/lts
65
- cp -R /usr/local /dotnet/current /LICENSE.txt /opt/dotnet/lts
66
- cp -R /usr/local /dotnet/current /ThirdPartyNotices.txt /opt/dotnet/lts
70
+ cp -R /usr/share /dotnet/dotnet /opt/dotnet/lts
71
+ cp -R /usr/share /dotnet/LICENSE.txt /opt/dotnet/lts
72
+ cp -R /usr/share /dotnet/ThirdPartyNotices.txt /opt/dotnet/lts
67
73
68
74
MAVEN_PATH=" /home/${USERNAME} /.maven/current"
69
75
mkdir -p /home/${USERNAME} /.maven
Original file line number Diff line number Diff line change @@ -19,10 +19,9 @@ check "usr-local-etc-config-does-not-exist" test ! -f "/usr/local/etc/gitconfig"
19
19
20
20
# Check .NET
21
21
check " dotnet" dotnet --list-sdks
22
- count=$( ls /usr/local/dotnet | wc -l)
23
- expectedCount=3 # 2 version folders + 1 current folder which links to either one of the version
24
- checkVersionCount " two versions of dotnet are present" $count $expectedCount
25
- echo $( echo " list of installed dotnet versions" && ls -a /usr/local/dotnet)
22
+ check " dotnet-runtimes" bash -c " dotnet --list-runtimes"
23
+ # Runtimes are listed twice due to 'Microsoft.NETCore.App' and 'Microsoft.AspNetCore.App'
24
+ checkVersionCount " two versions of dotnet runtimes are present" $( dotnet --list-runtimes | wc -l) 4
26
25
27
26
# Check Python
28
27
check " python" python --version
@@ -150,7 +149,7 @@ check "nvm-works-in-node-project" bash -c "node --version | grep v8.0.0"
150
149
check " default-node-location-remained-same" bash -c " which node | grep /home/codespace/nvm/current/bin"
151
150
152
151
# Ensures sdkman works in a Java Project
153
- check " default-java-version" bash -c " java --version | grep 17. "
152
+ check " default-java-version" bash -c " java --version"
154
153
check " default-java-location" bash -c " which java | grep /home/codespace/java/current/bin"
155
154
check " oryx-build-java-project" bash -c " oryx build ./sample/java"
156
155
check " oryx-configured-current-java-version" bash -c " ls -la /home/codespace/java/current | grep /opt/java"
You can’t perform that action at this time.
0 commit comments