Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
51 changes: 45 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,48 @@
**/bin/
**/obj/

.git/
.github/
.vscode/
# Build results
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/

# Visual Studio
.vs/
*.user
*.suo
*.userosscache
*.sln.docstates

# User-specific files
*.rsuser
*.userprefs

# Build outputs
*.dll
*.exe
*.pdb
*.cache

# NuGet
*.nupkg
*.snupkg
packages/
.nuget/

# Test results
TestResults/
*.trx

# VS Code
.vscode/
!.vscode/tasks.json
!.vscode/launch.json

# Rider
.idea/

# Environment files (if they contain secrets)
*.env

# SonarQube / SonarScanner
.sonarqube/
.sonar/
.scannerwork/
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,9 @@ appsettings.Development.json

# app setting
appsettings.*.json
appsettings.json
appsettings.json

# SonarQube / SonarScanner
.sonarqube/
.sonar/
.scannerwork/
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends libgssapi-krb5-2 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:5000
EXPOSE 5000
ENTRYPOINT ["dotnet", "EazyTrade.dll"]
2 changes: 0 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@
builder.Services.Configure<AwsS3Configuration>(builder.Configuration.GetSection(AwsS3Configuration.Section));
#endregion



var app = builder.Build();

#region Middleware
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
entrypoint:
- /bin/sh
- -lc
- PGPASSWORD="$$SOURCE_DB_PASSWORD" pg_dump -h "$$SOURCE_DB_HOST" -p "$$SOURCE_DB_PORT" -U "$$SOURCE_DB_USER" -d "$$SOURCE_DB_NAME" --no-owner --no-privileges > /tmp/backup.sql && PGPASSWORD="$$TARGET_DB_PASSWORD" psql -h "$$TARGET_DB_HOST" -p "$$TARGET_DB_PORT" -U "$$TARGET_DB_USER" -d "$$TARGET_DB_NAME" -f /tmp/backup.sql
- PGPASSWORD="$$SOURCE_DB_PASSWORD" pg_dump -h "$$SOURCE_DB_HOST" -p "$$SOURCE_DB_PORT" -U "$$SOURCE_DB_USER" -d "$$SOURCE_DB_NAME" --clean --if-exists --no-owner --no-privileges > /tmp/backup.sql && PGPASSWORD="$$TARGET_DB_PASSWORD" psql -h "$$TARGET_DB_HOST" -p "$$TARGET_DB_PORT" -U "$$TARGET_DB_USER" -d "$$TARGET_DB_NAME" -f /tmp/backup.sql

volumes:
postgres_data:
Loading