Browse Source

Improve build-bits-linux.sh (removed dotnet restore (doing with publish now) and set quiet on verbosity in order to reduce issues with System.Console.dll on build container). Remove unnecesary namespace on Identity.Api startup.cs

pull/322/head
Unai Zorrilla Castro 7 years ago
parent
commit
6c5bdda2f5
2 changed files with 4 additions and 7 deletions
  1. +1
    -3
      cli-linux/build-bits-linux.sh
  2. +3
    -4
      src/Services/Identity/Identity.API/Startup.cs

+ 1
- 3
cli-linux/build-bits-linux.sh View File

@ -30,10 +30,8 @@ do
echo -e "\e[33m\tRemoving old publish output" echo -e "\e[33m\tRemoving old publish output"
pushd $path/$project pushd $path/$project
rm -rf obj/Docker/publish rm -rf obj/Docker/publish
echo -e "\e[33m\tRestoring project $project"
dotnet restore --verbosity minimal
echo -e "\e[33m\tBuilding and publishing $project" echo -e "\e[33m\tBuilding and publishing $project"
dotnet publish -c Release -o obj/Docker/publish --verbosity minimal
dotnet publish -c Release -o obj/Docker/publish --verbosity quiet
popd popd
done done


+ 3
- 4
src/Services/Identity/Identity.API/Startup.cs View File

@ -1,4 +1,6 @@
using Identity.API.Certificate;
using Autofac;
using Autofac.Extensions.DependencyInjection;
using Identity.API.Certificate;
using Identity.API.Configuration; using Identity.API.Configuration;
using Identity.API.Data; using Identity.API.Data;
using Identity.API.Models; using Identity.API.Models;
@ -16,9 +18,6 @@ using Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.HealthChecks; using Microsoft.Extensions.HealthChecks;
using Identity.API.Certificate;
using Autofac.Extensions.DependencyInjection;
using Autofac;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;


Loading…
Cancel
Save