forked from demystifyfp/FsToolkit.ErrorHandling
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a09dc8
commit 0c324da
Showing
4 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM debian:buster-slim | ||
|
||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
\ | ||
# .NET Core dependencies | ||
libc6 \ | ||
libgcc1 \ | ||
libgssapi-krb5-2 \ | ||
libicu63 \ | ||
libssl1.1 \ | ||
libstdc++6 \ | ||
zlib1g \ | ||
curl \ | ||
git \ | ||
procps \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
ENV \ | ||
# Enable detection of running in a container | ||
DOTNET_RUNNING_IN_CONTAINER=true \ | ||
DOTNET_INSTALL_DIR=/usr/share/dotnet/ \ | ||
DOTNET_ROOT=/usr/share/dotnet/ | ||
|
||
COPY ./.devcontainer/install-dotnets.sh global.json* . | ||
|
||
RUN /bin/bash install-dotnets.sh | ||
|
||
ENV PATH="$DOTNET_ROOT:${PATH}" | ||
RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet | ||
|
||
RUN dotnet --info | ||
|
||
# Copy endpoint specific user settings into container to specify | ||
# .NET Core should be used as the runtime. | ||
COPY ./.devcontainer/settings.vscode.json /root/.vscode-remote/data/Machine/settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "dotnet", | ||
// Set the build context one level higher so we can grab metadata like global.json | ||
"context": "..", | ||
"dockerFile": "Dockerfile", | ||
"forwardPorts": [ | ||
0 | ||
], | ||
"extensions": [ | ||
"ionide.ionide-fsharp", | ||
"ms-dotnettools.csharp", | ||
"editorconfig.editorconfig", | ||
"ionide.ionide-paket", | ||
"ionide.ionide-fake" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# downloads installer script https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script | ||
curl -SL --output dotnet-install.sh https://dot.net/v1/dotnet-install.sh | ||
|
||
|
||
# Attempt to install via global.json first | ||
FILE=global.json | ||
if test -f "$FILE"; then | ||
echo "installing dotnet via $FILE" | ||
/bin/bash dotnet-install.sh --verbose --jsonfile $FILE | ||
fi | ||
|
||
|
||
# Add additional versions if required | ||
DOTNET_VERSIONS=( | ||
# 'latest' | ||
# '5.0.100' | ||
) | ||
for version in ${DOTNET_VERSIONS[@]}; do | ||
echo "installing dotnet $version" | ||
/bin/bash dotnet-install.sh --verbose --version $version | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"FSharp.fsacRuntime":"netcore" | ||
} |