$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
This file contains hidden or 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
using BlogCore.Core; | |
using BlogCore.Core.Extensions; | |
using BlogCore.Core.Helpers; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
namespace BlogCore.PostContext.Core.Domain | |
{ |
This file contains hidden or 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
public class BlogEfRepository<TEntity> : EfRepository<PostDbContext, TEntity> | |
where TEntity : EntityBase | |
{ | |
public BlogEfRepository(PostDbContext dbContext) | |
: base(dbContext) | |
{ | |
} | |
} |
This file contains hidden or 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
using BlogCore.Infrastructure.EfCore; | |
using BlogCore.PostContext.Core.Domain; | |
using Microsoft.EntityFrameworkCore; | |
using System; | |
using System.Collections.Generic; | |
namespace BlogCore.PostContext.Infrastructure | |
{ | |
public class PostDbContext : DbContext | |
{ |
This file contains hidden or 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
using BlogCore.Core; | |
using BlogCore.Infrastructure.EfCore; | |
using BlogCore.Infrastructure.UseCase; | |
using BlogCore.PostContext.Core.Domain; | |
using BlogCore.PostContext.Infrastructure; | |
using Microsoft.Extensions.Options; | |
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reactive.Linq; |
This file contains hidden or 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
using BlogCore.AccessControlContext.Core.Domain; | |
using BlogCore.Core; | |
using BlogCore.PostContext.UseCases.ListOutPostByBlog; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reactive.Linq; | |
using System.Threading.Tasks; | |
namespace BlogCore.Api.Features.Posts.ListOutPostByBlog |
This file contains hidden or 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
using BlogCore.Api.Features.Posts.ListOutPostByBlog; | |
using BlogCore.Core; | |
using BlogCore.Core.Helpers; | |
using BlogCore.PostContext.Core.Domain; | |
using BlogCore.PostContext.UseCases.ListOutPostByBlog; | |
using MediatR; | |
using Microsoft.AspNetCore.Mvc; | |
using System; | |
using System.Threading.Tasks; |
This file contains hidden or 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
using Autofac; | |
using BlogCore.Api.Features.Posts.ListOutPostByBlog; | |
using BlogCore.Infrastructure.EfCore; | |
using BlogCore.PostContext.Infrastructure; | |
using BlogCore.PostContext.UseCases.ListOutPostByBlog; | |
namespace BlogCore.PostContext | |
{ | |
public class PostUseCaseModule : Module | |
{ |
-
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
- Delete all untagged images
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
name: coolstore-ingress | |
namespace: default | |
spec: | |
backend: | |
serviceName: spa-service |
OlderNewer