Skip to content

Commit

Permalink
Better init
Browse files Browse the repository at this point in the history
  • Loading branch information
fhammerl committed Sep 6, 2022
1 parent d337798 commit 7b1f2f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ARG DOCKER_VERSION="latest"
# Enable new "BUILDKIT" mode for Docker CLI
ENV DOCKER_BUILDKIT=1

# https://github.com/microsoft/vscode-dev-containers/issues/1617
ENV IGNORE_NOTICE=true

ARG USERNAME=automatic
ARG USER_UID=1000
ARG USER_GID=$USER_UID
Expand Down
13 changes: 8 additions & 5 deletions .devcontainer/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
echo 'Creating symlink for embedded sdk...'

# pwd is the source root folder
ln -s /usr/share/dotnet/sdk _dotnetsdk
echo .6.0.300 >> _dotnetsdk/6.0.300/.6.0.300
# ln -s /home/root/.dotnet/dotnet _dotnetsdk/6.0.300/dotnet
rm -rf _dotnetsdk
ln -s /usr/share/dotnet/sdk/6.0.300 _dotnetsdk

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

cd src
./dev.sh
./dev.sh

dotnet restore ActionsRunner.sln

0 comments on commit 7b1f2f0

Please sign in to comment.