Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/f2calv/playground-dockerfile
dockerfile playground ...because it's interesting :)
https://github.com/f2calv/playground-dockerfile
azure-devops-agent docker dockerfile dotnetcore self-hosted-agent
Last synced: 8 days ago
JSON representation
dockerfile playground ...because it's interesting :)
- Host: GitHub
- URL: https://github.com/f2calv/playground-dockerfile
- Owner: f2calv
- Created: 2019-08-30T14:04:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-11T07:35:09.000Z (over 3 years ago)
- Last Synced: 2024-11-27T17:38:02.585Z (2 months ago)
- Topics: azure-devops-agent, docker, dockerfile, dotnetcore, self-hosted-agent
- Language: Dockerfile
- Size: 38.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerfile Playground
Different Dockerfiles with different installation scenarios of the .NET SDK.
Various examples include;
- installing .NET Core X.X via packages.
- installing .NET Core X.X binaries.
- installing .NET X.X binaries.
- installing .NET X.X using .Most recent addition for .NET 6.0;
```pwsh
#build Ubuntu 20.04 w/.NET 6.0 SDK Preview 4#installing the binary into a ubuntu20.04 base image, with additional dependencies
docker build -t dotnet6a -f .\ubuntu20.04-and-dotnet6-preview4-a\Dockerfile .#installing using the official dotnet-install-script for CI scenarios, with additional dependencies
docker build -t dotnet6b -f .\ubuntu20.04-and-dotnet6-preview4-b\Dockerfile .#installing the binary into a runtime-deps ubuntu20.04 base image, with additional dependencies
docker build -t dotnet6c -f .\ubuntu20.04-and-dotnet6-preview4-c\Dockerfile .#using the official preview installer into a ubuntu20.04 base image, with additional dependencies
docker build -t dotnet6d -f .\ubuntu20.04-and-dotnet6-preview4-d\Dockerfile .#launch one of the images as a container
#docker run --rm -it --name testa dotnet6a
#docker run --rm -it --name testb dotnet6b
#docker run --rm -it --name testc dotnet6c
docker run --rm -it --name testd dotnet6d#list installed SDKs
dotnet --list-sdks#output should look similar to;
# root@2a83fee5ad06:/# dotnet --list-sdks
# 6.0.100-preview.4.21255.9 [/usr/share/dotnet/sdk]
```