Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: US 4 Ranque de escolas #41

Closed
wants to merge 161 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
ccd3a39
Atualizando docker-compose
wagnermc506 Sep 21, 2023
d9e3e1a
Dockerfile modificado para ambiente de dev
wagnermc506 Sep 27, 2023
4461225
adiciona pasta publish no .dockerignore
wagnermc506 Sep 27, 2023
ab76412
Update docker-compose.yml
wagnermc506 Sep 27, 2023
ac1db3b
atualiza senha do postgres de desenvolvimento
wagnermc506 Sep 27, 2023
e924a4f
Apply suggestions from code review
wagnermc506 Sep 27, 2023
c9677b1
Atualiza docker-compose
yudi-azvd Oct 1, 2023
67c9c13
chore: Atualiza analise do sonar para usar a branch develop
wagnermc506 Oct 9, 2023
94daa8d
chore: Cria sonar-project.properties
wagnermc506 Oct 11, 2023
a1b4c96
fix: sonarcloud build.yml
wagnermc506 Oct 11, 2023
b2731ee
fix: remove sonar-project.properties file
wagnermc506 Oct 11, 2023
0f23d7e
refactor: Adiciona o EntityFramework
DanielPortods Oct 12, 2023
7d8d1da
refactor: adiciona migrações iniciais
DanielPortods Oct 12, 2023
bd3011f
refactor: adiciona entidade Usuario
DanielPortods Oct 12, 2023
fd75b30
refactor: adiciona entidade RedefinicaoSenha
DanielPortods Oct 12, 2023
4cf8e3e
refactor: adiciona entidade Empresa.
DanielPortods Oct 12, 2023
4880fd5
refactor: adiciona a tabela de relacionamento UsuarioEmpresa
DanielPortods Oct 12, 2023
ff94f4b
refactor: adiciona enum par unidades federativas
DanielPortods Oct 12, 2023
ba5c67d
refactor: reorganiza a disposição de pastas
DanielPortods Oct 13, 2023
cd40140
refactor: ajusta as referencias
DanielPortods Oct 13, 2023
cd0cef6
fix: release workflow repository
wagnermc506 Oct 14, 2023
b9acdd4
chore: Renomeia secret GITHUB_TOKEN para GIT_TOKEN
wagnermc506 Oct 14, 2023
935fbfa
fix: arruma formato do release.yml
thiagohdaqw Oct 16, 2023
df83be3
Merge pull request #3 from fga-eps-mds/release_workflow
thiagohdaqw Oct 16, 2023
9b0d258
refactor: ajusta rotinas para EF
DanielPortods Oct 16, 2023
1b041ee
Merge branch 'develop' of github.com:fga-eps-mds/2023.2-Dnit-UsuarioS…
DanielPortods Oct 16, 2023
d1f9e1e
refactor: ajusta a rotina de testes para o EF
DanielPortods Oct 17, 2023
e4d51d0
test: ajusta testes do automapper
DanielPortods Oct 17, 2023
90eccac
fix: arruma a referencia das configuracoes no dbContext
DanielPortods Oct 17, 2023
76110b5
test: ajusta DominioControlerTest
DanielPortods Oct 17, 2023
ff57242
test: ajusta os configTest
DanielPortods Oct 17, 2023
624dd88
test: ajusta testes referentes a Usuario
DanielPortods Oct 17, 2023
568c421
test: ajusta testes referentes a UF
DanielPortods Oct 17, 2023
a792e12
feat: adiciona perfil
thiagohdaqw Oct 17, 2023
30465b6
ci: adiciona testagem no linux
thiagohdaqw Oct 18, 2023
1d6e3cb
ci: renomeia actions
thiagohdaqw Oct 18, 2023
9cfa2ee
Merge remote-tracking branch 'origin/develop' into auth
thiagohdaqw Oct 18, 2023
2b38648
fix: padroniza string de conexao do banco de dados
thiagohdaqw Oct 18, 2023
6e60c3c
feat: adiciona base da autenticacao
thiagohdaqw Oct 19, 2023
6ee5d69
fix: arruma perfil usuario opcional
thiagohdaqw Oct 19, 2023
60d466f
fix: arruma migracoes
thiagohdaqw Oct 19, 2023
bcdc4fe
feat: adiciona jwt token no login
thiagohdaqw Oct 19, 2023
f6ab4f1
fix: ajusta testes
DanielPortods Oct 19, 2023
fecd70c
fix: arruma detalhes do mapper e stub nos testes
DanielPortods Oct 19, 2023
dbe47e6
refactor: cria biblioteca de autenticacao
thiagopLacuna Oct 19, 2023
99f9389
Merge branch 'develop' of github.com:fga-eps-mds/2023.2-Dnit-UsuarioS…
DanielPortods Oct 19, 2023
62fbc8e
refactor: ordena permissoes
thiagohdaqw Oct 19, 2023
ddef156
feat: adiciona verificação da permissao
thiagohdaqw Oct 19, 2023
9665fb5
feat: adiciona exception handler
thiagohdaqw Oct 19, 2023
7f4ae68
fix: renomeia nome do identificador do pacote de autenticacao
thiagohdaqw Oct 20, 2023
5dfc7bc
feat: adiciona autorizacao no swagger
thiagohdaqw Oct 20, 2023
f4ccfba
fix: troca erro de nao autorizado para o 403
thiagohdaqw Oct 20, 2023
5db91fd
fix: ajusta a cobertura de testes no sonar
DanielPortods Oct 20, 2023
e77408d
refactor: adiciona permissão de visualizar escola ao enum
csreis72 Oct 20, 2023
2ddbc12
feat: adiciona atualizacao do token expirado
thiagohdaqw Oct 21, 2023
7dc4304
fix: arruma nome das permissoes
thiagohdaqw Oct 21, 2023
171acd3
Merge pull request #5 from fga-eps-mds/add-entity-framework
thiagohdaqw Oct 21, 2023
090e578
feat: ajusta recursos para implementação do CRUD de perfis
DanielPortods Oct 21, 2023
14a0670
feat: implementa repositorio dos perfis
DanielPortods Oct 21, 2023
b1b9baa
feat: implementa service dos perfis
DanielPortods Oct 21, 2023
1b33fad
feat: implementa controllers dos perfis
DanielPortods Oct 21, 2023
410b7e6
feat: insere serviços e atualiza as configuracoes do docker
DanielPortods Oct 21, 2023
3cc0b07
feat: implementa a listagem de permissoes
DanielPortods Oct 21, 2023
b7b1e63
feat: implementa repositorio para permissoes
DanielPortods Oct 21, 2023
14ccda5
feat: separa a listagem por categoria
DanielPortods Oct 21, 2023
5d221a4
refactor: adiciona permissões relacionadas ao UPS service ao enum
Hunter104 Oct 21, 2023
0963574
test: insere testes para PerfilRepositorio
DanielPortods Oct 21, 2023
5fb5560
chore: retorna uma migracao para atuaalizar a branch
DanielPortods Oct 21, 2023
219bb8e
chore: atualiza a branch
DanielPortods Oct 21, 2023
83856c1
feat: define o nome do perfil como campo unico
DanielPortods Oct 21, 2023
ca7a4c3
fix: arruma o retorno na criacao e edicao de perfis
DanielPortods Oct 21, 2023
d919e33
feat: adiciona a descricao no retorno da listagem de permissoes
DanielPortods Oct 21, 2023
ab57b0d
fix: arruma valores da permissao
thiagohdaqw Oct 21, 2023
405a108
chore: adiciona configuracao para desabilitar autenticacao
thiagohdaqw Oct 21, 2023
7e5102e
fix: adiciona exlusoes do sonar
thiagohdaqw Oct 21, 2023
bc650e5
chore: adiciona todas as permissoes quando a autenticacao tiver desab…
thiagohdaqw Oct 22, 2023
c7901c2
feat: adiciona listagem de permissao do usuario
thiagohdaqw Oct 22, 2023
33f4bec
refactor: testes
thiagohdaqw Oct 22, 2023
5f35ffb
test: adiciona teste do auth
thiagohdaqw Oct 22, 2023
a9e375b
feat: adiciona o campo tipo no registro de perfil
DanielPortods Oct 22, 2023
fc51bc3
feat: padroniza as models
DanielPortods Oct 22, 2023
70d69f9
fix: troca PermissaoRepositorio para PermissaoService
DanielPortods Oct 22, 2023
28961a2
fix: ajusta o mapper para a nova padronizacao
DanielPortods Oct 22, 2023
d4795b7
feat: simplifica o codigo e autentica a rota de listar permissoes
DanielPortods Oct 22, 2023
13dbf08
feat: autentica as rotas de perfil
DanielPortods Oct 22, 2023
9622fca
feat: ajusta as rotinas de usuario paro os tipos de perfil
DanielPortods Oct 22, 2023
9ca9756
test: adiciona teste do usuario controller
thiagohdaqw Oct 22, 2023
ff13a42
Merge remote-tracking branch 'origin/develop' into auth
thiagohdaqw Oct 22, 2023
7b8d782
chore: remove dapper
DanielPortods Oct 22, 2023
d3a4e39
test: implementa testes para PerfilService
DanielPortods Oct 22, 2023
2c0e56e
chore: atualiza versao do auth
thiagohdaqw Oct 22, 2023
6427789
Merge remote-tracking branch 'origin/auth' into feat/64-gerenciar-perfis
thiagohdaqw Oct 22, 2023
d5a1fa0
feat: adiciona todas as permissoes ao administrador
thiagohdaqw Oct 22, 2023
d495496
chore: conserta erro de português
yudi-azvd Oct 22, 2023
bd09ed2
test: adiciona tete para permissaoService
DanielPortods Oct 22, 2023
7253930
chore: atualiza branch
DanielPortods Oct 22, 2023
3619b31
feat: autenticação e autorização
yudi-azvd Oct 23, 2023
aed0c57
fix: arruma nome e permissoes do administrador
thiagohdaqw Oct 23, 2023
b29e29c
Release v1.0.0 (#7)
thiagohdaqw Oct 23, 2023
6688000
feat: adiciona quantidade de usuarios no retorno da listagem de perfis.
DiceRunner714 Oct 24, 2023
d2cc546
test: configura tetes para usar autenticacao
DanielPortods Oct 24, 2023
8deda9b
test: adiciona testes para PerfilController
DanielPortods Oct 24, 2023
f118585
test: adiciona testes para listagem de permissoes
DanielPortods Oct 24, 2023
b3cea6d
Atualiza branch
DanielPortods Oct 24, 2023
99ba01a
fix: arruma a referencia de usuario
DanielPortods Oct 24, 2023
eae5cf6
fix: adiciona timeout na selecao de categoria
DanielPortods Oct 24, 2023
d413df0
feat: lista usuários e testa
yudi-azvd Oct 25, 2023
67c16ab
fix: arruma volumes e banco de dados
thiagohdaqw Oct 25, 2023
ad33451
fix: adiciona modo do container
thiagohdaqw Oct 25, 2023
a1b8b6f
feat: filtra por nome
yudi-azvd Oct 25, 2023
e27a59e
feat: filtro por ID do perfil
yudi-azvd Oct 25, 2023
6f9ff7c
chore: merge com US1
yudi-azvd Oct 25, 2023
b0e920b
feat: adiciona rota para detalhes do perfil
thiagohdaqw Oct 25, 2023
d6319b9
feat: adiciona filtro de perfil pelo nome
thiagohdaqw Oct 25, 2023
b2824b5
test: ajusta testes
DanielPortods Oct 25, 2023
fec5484
teste: Insere mais cobertura de testes
DanielPortods Oct 25, 2023
e5b2c61
Atualiza branch
DanielPortods Oct 25, 2023
e73e620
fix: corrige assinatura da funcao na interface do perfilService
DanielPortods Oct 25, 2023
990e4ed
fix: adiciona todas as permissões ao perfim administrador na busca po…
DanielPortods Oct 25, 2023
7a7464f
fix: permissoes quando a autorizacao está desabilitada
thiagohdaqw Oct 25, 2023
1ccacec
feat: adiciona mensagem de erro ao remover permissao de perfil do per…
thiagohdaqw Oct 25, 2023
7e002a1
Revert "feat: adiciona mensagem de erro ao remover permissao de perfi…
thiagohdaqw Oct 25, 2023
8833a77
ci: remove o deploy da aws
DanielPortods Oct 25, 2023
f2b04d8
Atualiza a branch
DanielPortods Oct 25, 2023
e6053c7
chore: adiciona comentário com instruções.
DanielPortods Oct 25, 2023
13eac78
chore: resolve conflitos
DanielPortods Oct 25, 2023
f287c14
Merge pull request #8 from fga-eps-mds/feat/64-gerenciar-perfis
DanielPortods Oct 25, 2023
cfbc78f
feat: aplicando filtros por UF
bottinolucas Oct 25, 2023
e046167
chore: atualiza com branch develop
yudi-azvd Oct 25, 2023
edff01b
Merge branch 'main' into fix/resolve_conflicts
wagnermc506 Oct 26, 2023
e54b3c4
Delete .github/workflows/deploy.yml
wagnermc506 Oct 26, 2023
88ac285
Merge pull request #9 from fga-eps-mds/fix/resolve_conflicts
wagnermc506 Oct 26, 2023
17955bb
chore: adiciona UsuarioModeloNovo temporário para desbloquear impleme…
yudi-azvd Oct 26, 2023
fb6b78e
Merge branch 'feat/2-gerenciar-diferentes-tipos-usuarios' of https://…
bottinolucas Oct 26, 2023
43a16af
test: testa filtro para UF
bottinolucas Oct 27, 2023
93c7cdf
chore: adiciona ideias pra testes
yudi-azvd Oct 27, 2023
0c037ff
chore: resolve conflito
yudi-azvd Oct 27, 2023
3e80853
test: adiciona setup de teste
yudi-azvd Oct 27, 2023
1c1140a
feat: edicao de perfil de usuario e testes de perfil de usuario
bottinolucas Oct 27, 2023
f728dd2
feat: adiciona verificação de permissao em editar perfil de usuário
yudi-azvd Oct 27, 2023
246efe1
feat: adiciona verificação de permissão para visualizar usuário
yudi-azvd Oct 27, 2023
a0318ec
feat: adicao do municipio e filtragem
bottinolucas Oct 27, 2023
fd49258
fix: editar perfil de usuário recebe json com id do novo perfil
yudi-azvd Oct 28, 2023
3944fce
fix: controladora aceita DTO para requisição de edição de perfil de u…
yudi-azvd Oct 28, 2023
e7c0cdc
refactor: inicia troca de usuários
yudi-azvd Oct 28, 2023
36147ec
refactor: remove todas as referências às classes antigas
yudi-azvd Oct 28, 2023
b6cace4
refactor: remove 'novo' das classes finalizando a substituição
yudi-azvd Oct 28, 2023
d46cea8
feat: adiciona filtro por município
yudi-azvd Oct 28, 2023
657a778
refactor: muda nome da permissão para UsuarioPerfilEditar
yudi-azvd Oct 28, 2023
e6c6712
refactor: move testes de editar perfil usuário para nova classe
yudi-azvd Oct 29, 2023
4c79381
fix: não aceita criação de usuário DNIT com UF inválido
yudi-azvd Oct 29, 2023
d1f0c5a
fix: usuários com perfil excluído são definidos com perfil básico
yudi-azvd Oct 29, 2023
de51cef
Merge branch 'develop' into feat/2-gerenciar-diferentes-tipos-usuarios
yudi-azvd Oct 29, 2023
ea106df
refactor: move lógica de atribuição de perfil básico para repositório…
yudi-azvd Oct 29, 2023
569d5e3
test: testa filtro por nome para lista de usuários
yudi-azvd Oct 29, 2023
2a0da8b
refactor: remove permissões não utilizadas
yudi-azvd Oct 29, 2023
9fa3452
fix: devolve permissões excluídas e apaga permissões de usuário não u…
yudi-azvd Oct 29, 2023
623db35
feat: gerenciar diferentes tipos usuários
yudi-azvd Oct 29, 2023
93383a2
fix: generaliza servidor smtp
thiagohdaqw Oct 29, 2023
73f5a57
fix: inclui dados do municipio
thiagohdaqw Oct 29, 2023
1c9edc9
chore: inicia network DNIT
yudi-azvd Nov 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea/
.git/
.github/
publish/
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[*.cs]

# CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
dotnet_diagnostic.CS8618.severity = none
64 changes: 0 additions & 64 deletions .github/workflows/build.yml

This file was deleted.

134 changes: 79 additions & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,79 @@
name: Deploy AWS

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal

- name: Publish
run: dotnet publish -c Release -o '${{ github.workspace }}/out'

- name: Create email service .env
run: |
echo 'EMAIL_SERVICE_ADDRESS=${{ secrets.EMAIL_SERVICE_ADDRESS }}' > '${{ github.workspace }}/out/.env'
echo 'EMAIL_SERVICE_PASSWORD=${{ secrets.EMAIL_SERVICE_PASSWORD }}' >> '${{ github.workspace }}/out/.env'

- name: Zip Package
run: |
cd ${{ github.workspace }}/out
zip -r ${{ github.workspace }}/out.zip * .env

- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: back-dnit-usuario
environment_name: back-dnit-usuario-env
region: us-east-1
version_label: ${{ github.run_id }}
version_description: ${{ github.sha }}
deployment_package: ${{ github.workspace }}/out.zip
name: CI
on:
push:
branches:
- main
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
ci-windows:
name: Build, test and analyze Windows
runs-on: windows-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v3
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- name: Install dotnet-coverage
shell: powershell
run: dotnet tool install --global dotnet-coverage
- name: Clone trx2sonar
uses: actions/checkout@v3
with:
repository: gmarokov/dotnet-trx2sonar
path: dotnet-trx2sonar
- name: Setup trx2sonar
shell: powershell
run: |
dotnet restore dotnet-trx2sonar
dotnet build dotnet-trx2sonar --configuration Release
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"fga-eps-mds_2023.2-Dnit-UsuarioService" /o:"fga-eps-mds-1" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.testExecutionReportPaths=results.xml
dotnet build
dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml"
dotnet test --logger "trx;LogFileName=results.trx" --results-directory ./TestResults/results.xml
./dotnet-trx2sonar/TrxToSonar/bin/Release/net6.0/TrxToSonar -d ./TestResults -o results.xml
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
ci-linux:
name: Build and test Linux
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,27 @@ jobs:
steps:
- name: Get file name
id: name
run: echo "::set-output name=file_name::fga-eps-mds-2023.1-Dnit-UsuarioService-$(TZ='America/Sao_Paulo' date +'%m-%d-%Y-%H-%M-%S')-${{github.ref_name}}"
run: echo "::set-output name=file_name::fga-eps-mds_2023.2-Dnit-UsuarioService-$(TZ='America/Sao_Paulo' date +'%m-%d-%Y-%H-%M-%S')-${{github.ref_name}}"

- name: Copy repository
- name: Copy repository and download metrics
uses: actions/checkout@v2
- run: wget $METRICS_URL -O ${{ steps.name.outputs.file_name }}.json
env:
METRICS_URL: ${{ secrets.METRICS_URL }}
- uses: actions/upload-artifact@v2

- name: Uploads file
uses: actions/upload-artifact@v2
with:
name: ${{ steps.name.outputs.file_name }}.json
path: ${{ steps.name.outputs.file_name }}.json

- name: Send metrics to doc repo
uses: dmnemec/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }}
API_TOKEN_GITHUB: ${{ secrets.GIT_TOKEN }}
with:
source_file: ${{ steps.name.outputs.file_name }}.json
destination_repo: 'fga-eps-mds/2023.1-Dnit-DOC'
destination_repo: 'fga-eps-mds/2023.2-Dnit-DOC'
destination_folder: 'analytics-raw-data'
user_email: ${{ secrets.GIT_EMAIL}}
user_name: ${{ secrets.GIT_USER }}
Expand Down
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ bld/
[Ll]og/
[Ll]ogs/

.vscode

# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
Expand Down Expand Up @@ -355,10 +357,18 @@ healthchecksdb

# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd
/dominio/UsuarioDNIT.cs

.idea/

cov.sh
coveragereport/

report/
.vscode/
27 changes: 2 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,6 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build

WORKDIR /app

COPY UsuarioService.sln ./
COPY app/app.csproj ./app/
COPY dominio/dominio.csproj ./dominio/
COPY repositorio/repositorio.csproj ./repositorio/
COPY service/service.csproj ./service/
COPY test/test.csproj ./test/
COPY . .

RUN dotnet restore

COPY . ./

RUN dotnet build -c Release

RUN dotnet publish app/app.csproj -c Release -o /app/out
RUN dotnet publish service/service.csproj -c Release -o /app/out
RUN dotnet publish repositorio/repositorio.csproj -c Release -o /app/out
RUN dotnet publish dominio/dominio.csproj -c Release -o /app/out
RUN dotnet publish test/test.csproj -c Release -o /app/out

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime

WORKDIR /app

COPY --from=build /app/out .

ENTRYPOINT ["dotnet", "app.dll"]
CMD dotnet watch --project app
49 changes: 24 additions & 25 deletions UsuarioService.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,41 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32112.339
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "app", "app\app.csproj", "{A553D130-F52F-4C65-9EFA-DE58FAC021FA}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "api", "api\api.csproj", "{9B9F5E33-2CDA-4F75-8338-801798AD293E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dominio", "dominio\dominio.csproj", "{91F2F3EB-3054-4187-8E04-0E04EC55ED08}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "app", "app\app.csproj", "{08942609-AAE1-4D23-B71D-E39D1A7CF566}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "service", "service\service.csproj", "{7F390C74-6B61-4479-8840-E57D6B9E56C5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "test", "test\test.csproj", "{1D4F20EE-9463-4E06-805F-F4CADF503164}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "repositorio", "repositorio\repositorio.csproj", "{456103BA-9130-4604-8AF7-49632FBAB6BB}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8B004C85-9684-409C-B8C8-01BD3A8F6DFA}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test\test.csproj", "{4D6B0EB8-A866-4742-AF0F-30706B1D282F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "auth", "auth\auth.csproj", "{1C2F7ED1-31B7-4274-BD2A-388700259656}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A553D130-F52F-4C65-9EFA-DE58FAC021FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A553D130-F52F-4C65-9EFA-DE58FAC021FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A553D130-F52F-4C65-9EFA-DE58FAC021FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A553D130-F52F-4C65-9EFA-DE58FAC021FA}.Release|Any CPU.Build.0 = Release|Any CPU
{91F2F3EB-3054-4187-8E04-0E04EC55ED08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{91F2F3EB-3054-4187-8E04-0E04EC55ED08}.Debug|Any CPU.Build.0 = Debug|Any CPU
{91F2F3EB-3054-4187-8E04-0E04EC55ED08}.Release|Any CPU.ActiveCfg = Release|Any CPU
{91F2F3EB-3054-4187-8E04-0E04EC55ED08}.Release|Any CPU.Build.0 = Release|Any CPU
{7F390C74-6B61-4479-8840-E57D6B9E56C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F390C74-6B61-4479-8840-E57D6B9E56C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F390C74-6B61-4479-8840-E57D6B9E56C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F390C74-6B61-4479-8840-E57D6B9E56C5}.Release|Any CPU.Build.0 = Release|Any CPU
{456103BA-9130-4604-8AF7-49632FBAB6BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{456103BA-9130-4604-8AF7-49632FBAB6BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{456103BA-9130-4604-8AF7-49632FBAB6BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{456103BA-9130-4604-8AF7-49632FBAB6BB}.Release|Any CPU.Build.0 = Release|Any CPU
{4D6B0EB8-A866-4742-AF0F-30706B1D282F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D6B0EB8-A866-4742-AF0F-30706B1D282F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D6B0EB8-A866-4742-AF0F-30706B1D282F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D6B0EB8-A866-4742-AF0F-30706B1D282F}.Release|Any CPU.Build.0 = Release|Any CPU
{9B9F5E33-2CDA-4F75-8338-801798AD293E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9B9F5E33-2CDA-4F75-8338-801798AD293E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9B9F5E33-2CDA-4F75-8338-801798AD293E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9B9F5E33-2CDA-4F75-8338-801798AD293E}.Release|Any CPU.Build.0 = Release|Any CPU
{08942609-AAE1-4D23-B71D-E39D1A7CF566}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{08942609-AAE1-4D23-B71D-E39D1A7CF566}.Debug|Any CPU.Build.0 = Debug|Any CPU
{08942609-AAE1-4D23-B71D-E39D1A7CF566}.Release|Any CPU.ActiveCfg = Release|Any CPU
{08942609-AAE1-4D23-B71D-E39D1A7CF566}.Release|Any CPU.Build.0 = Release|Any CPU
{1D4F20EE-9463-4E06-805F-F4CADF503164}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D4F20EE-9463-4E06-805F-F4CADF503164}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D4F20EE-9463-4E06-805F-F4CADF503164}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D4F20EE-9463-4E06-805F-F4CADF503164}.Release|Any CPU.Build.0 = Release|Any CPU
{1C2F7ED1-31B7-4274-BD2A-388700259656}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1C2F7ED1-31B7-4274-BD2A-388700259656}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C2F7ED1-31B7-4274-BD2A-388700259656}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C2F7ED1-31B7-4274-BD2A-388700259656}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading
Loading