Cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| // Directions | |
| // Step 1: Click Gist Raw, then Copy/Paste entire gist into Bookmarklets.org/maker/ | |
| // Step 2: Change the first 3 variables: alias, event, docs | |
| // Step 3: At the bottom of the Bookmarklets.org page, drag the Bookmarklet Hyperlink to your Browser ToolBar | |
| // Step 4: Enjoy | |
| javascript: | |
| ( | |
| function () { | |
| var alias = 'shboyer'; |
| apiVersion: v1 | |
| items: | |
| - apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| annotations: | |
| kompose.cmd: kompose convert -f docker-compose-simple.yml -o simple.yml | |
| kompose.version: 1.1.0 (36652f6) | |
| creationTimestamp: null | |
| labels: |
| # Git clone shortcut, assumes spboyer by default | |
| # usage: clone <user> <repo name> | |
| function clone { | |
| # customize username to your own | |
| local username="spboyer" | |
| local url=$1; | |
| local repo=$2; | |
| if [[ ${url:0:4} == 'http' || ${url:0:3} == 'git' ]] |
| shayne@Azure:~$ az container show -n magic8ball -g wincontainers | |
| { | |
| "containers": [ | |
| { | |
| "command": null, | |
| "environmentVariables": [], | |
| "image": "mvcrandomanswergeneratortest.azurecr.io/mvcrandomanswergenerator:20171012072842", | |
| "instanceView": { | |
| "currentState": { | |
| "detailStatus": "", |
Cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| { | |
| "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "appName": { | |
| "type": "string" | |
| }, | |
| "location": { | |
| "type": "string", | |
| "allowedValues": [ |
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
| <DocumentationFile>bin\Debug\netcoreapp1.1\copydocfile-example.xml</DocumentationFile> | |
| <!-- creates the file in the root of the project --> | |
| <DocumentationFile>copydocfile-example.xml</DocumentationFile> | |
| <!-- Creates the file in a "docs" folder --> | |
| <DocumentationFile>docs\copydocfile-example.xml</DocumentationFile> | |
| </PropertyGroup> |
| <Target Name="PrepublishScript" BeforeTargets="PrepareForPublish"> | |
| <ItemGroup> | |
| <DocFile Include="bin\$(Configuration)\$(TargetFramework)\*.xml" /> | |
| </ItemGroup> | |
| <Copy SourceFiles="@(DocFile)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="false" /> | |
| </Target> | |
| <!-- Added by Visual Studio, Visual Studio for Mac, or hand code in other IDE --> | |
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
| <DocumentationFile>bin\Debug\netcoreapp1.1\copydocfile-example.xml</DocumentationFile> |
Intro - Finding APIs, no documentation, building APIs, test harnesesses etc Swagger - specification no referred or renamed to OpenAPI Spec. Restful interface to documetation of your APIs. Swashbuckle - OSS implementation for ASP.NET / Ahoy => ASP.NET Core on github
ASP.NET Docs page - https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger
We are going to use VS for Mac! Wait what?? (can have some discussion here)
Let's do this..
| Counting objects: 84, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (78/78), done. | |
| Writing objects: 100% (84/84), 551.03 KiB | 0 bytes/s, done. | |
| Total 84 (delta 5), reused 0 (delta 0) | |
| remote: Updating branch 'master'. | |
| remote: Updating submodules. | |
| remote: Preparing deployment for commit id '59c9c966b5'. | |
| remote: Generating deployment script. | |
| remote: Project file path: .\preview3web.csproj |