microsoft / dotnet-framework-docker-samples Goto Github PK
View Code? Open in Web Editor NEWThe .NET Framework Docker samples have moved to https://github.com/Microsoft/dotnet-framework-docker
License: MIT License
The .NET Framework Docker samples have moved to https://github.com/Microsoft/dotnet-framework-docker
License: MIT License
Getting the following error when i do >docker build -t my-dotnet462-app .
Sending build context to Docker daemon 873.5kB
Step 1/8 : FROM microsoft/dotnet-framework:4.6.2
---> 6a26127feff4
Step 2/8 : WORKDIR /app
---> Using cache
---> e670ba63085d
Step 3/8 : COPY *.csproj ./
---> Using cache
---> 9172c87fac16
Step 4/8 : RUN dotnet restore
---> Running in c8f7abfff5c1
'dotnet' is not recognized as an internal or external command,
operable program or batch file.
The command 'cmd /S /C dotnet restore' returned a non-zero code: 1
'dotnet' is not recognized as an internal or external command,
operable program or batch file.
And the example says build for .net core.
I dont want to build that, because I have a few million lines of code already written in netfx.
The samples that are pushed to Docker Hub should be built from the main samples in the master branch. This will help ensure the samples pushed to Docker Hub are same samples shown in master. Right now the samples in master
are not using multi-stage Dockerfiles whereas the samples in the dockerhub
branch are.
The URI given in Readme.md for the dotnetapp-4.7 is Incorrect
Git clone this repository or otherwise copy this sample to your machine: git clone
https://github.com/dotnet/dotnet-framework-docker-samples/dotnetapp-4.7
This depends on :
microsoft/dotnet-framework-docker#48
ran the 'docker build -t app-app .' command
no errors:
PS E:\Development\docker\dotnet-framework-docker-samples\dotnetapp-4.6.2> docker build -t my-app .
Sending build context to Docker daemon 214 kB
Step 1/4 : FROM microsoft/dotnet-framework:4.6.2
4.6.2: Pulling from microsoft/dotnet-framework
3889bb8d808b: Pulling fs layer
423d66441981: Downloading
unknown blob
then docker run my-app returns
Unable to find image 'my-app:latest' locally
The primary motivation behind this change is visibility. The belief is that having all assets related to the microsoft/dotnet-framework Docker repo within one GitHub repo will help increase the visibility of everything. If a user navigates to from microsoft/dotnet-framework to the microsoft/dotnet-framework-docker GitHub repo to view the Dockerfiles, there is a higher chance they will see the samples if there are within the same repo. Having the samples in the same GitHub repo as the Dockerfiles will also help increase the visibility of incoming issues and PRs related to the samples.
The samples do cover usage scenarios beyond microsoft/dotnet-framework. For example the samples cover aspnet and wcf. This could be viewed as a positive as ASP.NET and WCF are based on the full .NET FX images. Seeing the ASP.NET and WCF samples could help bring visibility to the fact that the those images exist and are based on the .NET FX images.
The .NET Framework Docker samples have moved to the samples folder of Microsoft/dotnet-framework-docker.
The .NET Framework Docker samples have been enhanced and moved to the samples folder of Microsoft/dotnet-framework-docker.
The samples show various ways to use the .NET Framework and Docker together. You can use the samples as the basis of your own Docker images or just to play.
The samples exercise various levels of functionality. The .NET Framework Docker sample includes the most functionality, including build, unit testing, and pushing images to a container registry. The ASP.NET Docker sample includes instructions for testing images with Azure Container Instances. The samples include detailed instructions for use with and without Docker.
I would like to see if we can use CMD to install Git to our own image ?
For example :
WORKDIR /app
CMD '.\Git-2.10.2-64-bit.exe /silent /suppressmsgboxes /dir="c:\git64" /log="git64.log"' ?
Or we can add the Git exe to the container and run
the silent installation after starting the container ?
Thanks
Ken
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.