-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #462 from Laixer/develop
v3.0-prerelease
- Loading branch information
Showing
260 changed files
with
3,253 additions
and
5,632 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
# FunderMaps Ecosystem | ||
|
||
# Build the application solution | ||
# Build application solution | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0-focal AS build | ||
WORKDIR /source | ||
|
||
# The subtool must be defined. The build container will only build the | ||
# subtool application. | ||
ARG subtool | ||
|
||
RUN test -n "$subtool" || (echo "subtool argument not set" && false) | ||
|
||
# Copy and restore app | ||
# Copy the entire solution in the container | ||
COPY . . | ||
|
||
# Substitute magic variables with version | ||
RUN find . -type f -exec sed -i "s/@@VERSION@@/$(git describe --long --always)/" {} + | ||
RUN find . -type f -exec sed -i "s/@@COMMIT@@/$(git rev-parse HEAD)/" {} + | ||
# Print the application version in the source | ||
RUN find . -type f -exec sed -i "s/@@VERSION@@/$(git describe --long --always)/" {} + \ | ||
&& find . -type f -exec sed -i "s/@@COMMIT@@/$(git rev-parse HEAD)/" {} + | ||
|
||
# Publish app and libraries | ||
RUN echo "Building $subtool" | ||
# Publish and configure subtool application | ||
WORKDIR "/source/src/$subtool" | ||
RUN dotnet publish -c release -o /app \ | ||
&& git describe --long --always > /app/VERSION \ | ||
&& git rev-parse HEAD > /app/COMMIT \ | ||
&& echo "$subtool" > /app/SUBTOOL | ||
|
||
WORKDIR /app | ||
RUN ln -s "$subtool" "entry" | ||
|
||
# Runtime image | ||
# | ||
# Any FunderMaps application in the repository can | ||
# be called via the CMD=<application> environment | ||
# variable. | ||
FROM mcr.microsoft.com/dotnet/aspnet:latest | ||
&& echo "$subtool" > /app/SUBTOOL \ | ||
&& ln -s "$subtool" /app/entry \ | ||
&& rm -f /app/appsettings.json /app/appsettings.*.json \ | ||
&& cp /source/contrib/etc/_appsettings.Production.json /app/appsettings.Production.json \ | ||
&& cp /source/contrib/etc/_appsettings.Staging.json /app/appsettings.Staging.json | ||
|
||
# Build runtime image | ||
FROM mcr.microsoft.com/dotnet/aspnet:5.0-focal | ||
ENV DOTNET_PRINT_TELEMETRY_MESSAGE=false | ||
WORKDIR /app | ||
COPY --from=build /app . | ||
RUN if grep -Fxq "FunderMaps.BatchNode" SUBTOOL ; then \ | ||
apt -y update; \ | ||
apt -y install gdal-bin; \ | ||
fi | ||
EXPOSE 80/tcp | ||
ENTRYPOINT "/app/$CMD" | ||
ENTRYPOINT "/app/entry" |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"Jwt": { | ||
"Issuer": "FunderMapsDev", | ||
"Audience": "FunderMapsDev", | ||
"TokenValidity": 5, | ||
"SignatureKey": "dhfgdfubhgbdfghredfgregurhe78gh348yvt784tcno3qt74gntkuirdhg" | ||
}, | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Debug" | ||
} | ||
}, | ||
"Incident": { | ||
"ClientId": 12, | ||
"Recipients": [ | ||
"info@fundermaps.com" | ||
] | ||
}, | ||
"UseExternalServices": false, | ||
"Smtp": { | ||
"SmtpServer": "smtp.transip.email", | ||
"SmtpPort": 465, | ||
"SmtpUsername": "info@fundermaps.com", | ||
"SmtpPassword": null, | ||
"DefaultSenderName": "FunderMaps", | ||
"DefaultSenderAddress": "info@fundermaps.com" | ||
}, | ||
"ConnectionStrings": { | ||
"FunderMapsConnection": null | ||
}, | ||
"BlobStorage": { | ||
"AccessKey": "LOUSAQJLIXLMIXKTKDW5", | ||
"SecretKey": null, | ||
"ServiceUri": "https://ams3.digitaloceanspaces.com/", | ||
"BlobStorageName": "fundermaps-development" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"Jwt": { | ||
"Issuer": "FunderMaps", | ||
"Audience": "FunderMaps", | ||
"TokenValidity": 120 | ||
}, | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Warning", | ||
"Microsoft.AspNetCore.DataProtection": "Error" | ||
} | ||
}, | ||
"Batch": { | ||
"ServiceUri": "https://batch.fundermaps.com" | ||
}, | ||
"Smtp": { | ||
"SmtpPort": 465, | ||
"DefaultSenderName": "FunderMaps", | ||
"DefaultSenderAddress": "info@fundermaps.com" | ||
}, | ||
"BlobStorage": { | ||
"AccessKey": "ZDQQ3W7SX2LTGEHGIY3M", | ||
"ServiceUri": "https://ams3.digitaloceanspaces.com/", | ||
"BlobStorageName": "fundermaps-production" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"Jwt": { | ||
"Issuer": "FunderMaps", | ||
"Audience": "FunderMaps", | ||
"TokenValidity": 60 | ||
}, | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Warning" | ||
} | ||
}, | ||
"Batch": { | ||
"ServiceUri": "https://staging.batch.fundermaps.com" | ||
}, | ||
"Smtp": { | ||
"SmtpPort": 465, | ||
"DefaultSenderName": "FunderMaps", | ||
"DefaultSenderAddress": "info@fundermaps.com" | ||
}, | ||
"BlobStorage": { | ||
"AccessKey": "5K6F45VBQEH6NRT6QMB7", | ||
"ServiceUri": "https://ams3.digitaloceanspaces.com/", | ||
"BlobStorageName": "fundermaps-staging" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.