Skip to content

Commit 7b1f2f0

Browse files
committed
Better init
1 parent d337798 commit 7b1f2f0

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ ARG DOCKER_VERSION="latest"
1414
# Enable new "BUILDKIT" mode for Docker CLI
1515
ENV DOCKER_BUILDKIT=1
1616

17+
# https://github.com/microsoft/vscode-dev-containers/issues/1617
18+
ENV IGNORE_NOTICE=true
19+
1720
ARG USERNAME=automatic
1821
ARG USER_UID=1000
1922
ARG USER_GID=$USER_UID

.devcontainer/init.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
echo 'Creating symlink for embedded sdk...'
44

55
# pwd is the source root folder
6-
ln -s /usr/share/dotnet/sdk _dotnetsdk
7-
echo .6.0.300 >> _dotnetsdk/6.0.300/.6.0.300
8-
# ln -s /home/root/.dotnet/dotnet _dotnetsdk/6.0.300/dotnet
6+
rm -rf _dotnetsdk
7+
ln -s /usr/share/dotnet/sdk/6.0.300 _dotnetsdk
98

10-
exit 0
9+
# Satisfy dev.sh SDK conditions
10+
echo .6.0.300 > _dotnetsdk/6.0.300/.6.0.300
11+
ln -s /usr/bin/dotnet /usr/share/dotnet/sdk/6.0.300/dotnet
1112

1213
cd src
13-
./dev.sh
14+
./dev.sh
15+
16+
dotnet restore ActionsRunner.sln

0 commit comments

Comments
 (0)