Skip to content

Instantly share code, notes, and snippets.

MirKml

  • Prague
View GitHub Profile
@MirKml
MirKml / docker-working.md
Last active Nov 9, 2018
docker-working.md
View docker-working.md

Build image

If we ha Dockerfile in current directory

$ docker build -t <imageTagName> [--target=<targetName>] .

Builds docker image with particular tag according Dockerfile from current directory. COPY during build - is relative to direcotory with Dockerfile, is relative to WORKDIR

Run image

@MirKml
MirKml / dotnetCLI.md
Last active Apr 8, 2018
list of useful commands for .net core
View dotnetCLI.md
  • Create empty MVC project.
$ dotnet new mvc -n MyWebProject

Support for entity framework core for current database

For example for sqlite database. All dotnet commands must be executed under current dotnet project directory.

  1. add nuget package for EF Core provider for database type (sqlite, mysql, ...)
$ dotnet add package Microsoft.EntityFrameworkCore.Sqlite
View git-working.md

Workflow

  1. New bug of feature issue in issue tracker arrives.
  2. Then create branch from master for particular bug or feature.
$ git pull
$ git checkout master
$ git checkout -b feature-or-bug-<issueNumber>

... code ...

You can’t perform that action at this time.