DevExpress_License.txt
This commit is contained in:
parent
c5e8cf06d8
commit
1571be8d2c
5 changed files with 37 additions and 2 deletions
6
api/.gitignore
vendored
6
api/.gitignore
vendored
|
|
@ -263,4 +263,8 @@ src/Erp.Platform.Blazor.Server.Tiered/Logs/*
|
||||||
|
|
||||||
# Use abp install-libs to restore.
|
# Use abp install-libs to restore.
|
||||||
**/wwwroot/libs/*
|
**/wwwroot/libs/*
|
||||||
*appsettings.development.json
|
*appsettings.development.json
|
||||||
|
|
||||||
|
# DevExpress License - DO NOT commit to repository
|
||||||
|
**/DevExpress_License.txt
|
||||||
|
DevExpress_License.txt
|
||||||
|
|
@ -35,10 +35,21 @@ COPY . .
|
||||||
RUN dotnet publish "src/Erp.Platform.DbMigrator/Erp.Platform.DbMigrator.csproj" -c Release -o /app/publish --no-restore
|
RUN dotnet publish "src/Erp.Platform.DbMigrator/Erp.Platform.DbMigrator.csproj" -c Release -o /app/publish --no-restore
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
|
||||||
|
|
||||||
|
# DevExpress License Key - runtime'da da gerekli
|
||||||
|
ARG DevExpress_License
|
||||||
|
ENV DevExpress_License=$DevExpress_License
|
||||||
|
|
||||||
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
|
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
|
||||||
LC_ALL=tr_TR.UTF-8 \
|
LC_ALL=tr_TR.UTF-8 \
|
||||||
LANG=tr_TR.UTF-8
|
LANG=tr_TR.UTF-8
|
||||||
|
|
||||||
|
# DevExpress lisans dosyasını oluştur (runtime için)
|
||||||
|
RUN mkdir -p $HOME/.config/DevExpress && \
|
||||||
|
if [ -n "$DevExpress_License" ]; then \
|
||||||
|
echo "$DevExpress_License" > $HOME/.config/DevExpress/DevExpress_License.txt; \
|
||||||
|
fi
|
||||||
|
|
||||||
# icu'lar dotnet culture icin gerekli
|
# icu'lar dotnet culture icin gerekli
|
||||||
# lib'ler wkhtmltopdf icin gerekli
|
# lib'ler wkhtmltopdf icin gerekli
|
||||||
RUN apk update
|
RUN apk update
|
||||||
|
|
|
||||||
|
|
@ -58,10 +58,21 @@ RUN mkdir -p publish
|
||||||
RUN dotnet publish "src/Erp.Platform.HttpApi.Host/Erp.Platform.HttpApi.Host.csproj" -c Release -o /app/publish --no-restore
|
RUN dotnet publish "src/Erp.Platform.HttpApi.Host/Erp.Platform.HttpApi.Host.csproj" -c Release -o /app/publish --no-restore
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
|
||||||
|
|
||||||
|
# DevExpress License Key - runtime'da da gerekli
|
||||||
|
ARG DevExpress_License
|
||||||
|
ENV DevExpress_License=$DevExpress_License
|
||||||
|
|
||||||
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
|
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
|
||||||
LC_ALL=tr_TR.UTF-8 \
|
LC_ALL=tr_TR.UTF-8 \
|
||||||
LANG=tr_TR.UTF-8
|
LANG=tr_TR.UTF-8
|
||||||
|
|
||||||
|
# DevExpress lisans dosyasını oluştur (runtime için)
|
||||||
|
RUN mkdir -p $HOME/.config/DevExpress && \
|
||||||
|
if [ -n "$DevExpress_License" ]; then \
|
||||||
|
echo "$DevExpress_License" > $HOME/.config/DevExpress/DevExpress_License.txt; \
|
||||||
|
fi
|
||||||
|
|
||||||
# icu'lar dotnet culture icin gerekli
|
# icu'lar dotnet culture icin gerekli
|
||||||
# lib'ler wkhtmltopdf icin gerekli
|
# lib'ler wkhtmltopdf icin gerekli
|
||||||
RUN apk update
|
RUN apk update
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,11 @@ VERSION=$(cat ~/erp-platform/api/src/Erp.Platform.HttpApi.Host/appsettings.json
|
||||||
| sed 's/^.* //' \
|
| sed 's/^.* //' \
|
||||||
| sed 's/"//g')
|
| sed 's/"//g')
|
||||||
|
|
||||||
|
# DevExpress lisansını dosyadan oku (GitHub'a commit edilmemiş)
|
||||||
|
DEVEXPRESS_LICENSE=$(cat ~/erp-platform/api/DevExpress_License.txt 2>/dev/null || echo "")
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
|
--build-arg DevExpress_License="${DEVEXPRESS_LICENSE}" \
|
||||||
-t devops.sozsoft.com/sozsoft/erp-platform-api:${VERSION} \
|
-t devops.sozsoft.com/sozsoft/erp-platform-api:${VERSION} \
|
||||||
-t devops.sozsoft.com/sozsoft/erp-platform-api:latest \
|
-t devops.sozsoft.com/sozsoft/erp-platform-api:latest \
|
||||||
-f Erp.Platform.HttpApi.Host.Dockerfile .
|
-f Erp.Platform.HttpApi.Host.Dockerfile .
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,13 @@ cd ~/erp-platform
|
||||||
git checkout main
|
git checkout main
|
||||||
git fetch && git pull
|
git fetch && git pull
|
||||||
|
|
||||||
cd api
|
cd ~/erp-platform/api
|
||||||
|
|
||||||
|
# DevExpress lisansını dosyadan oku (GitHub'a commit edilmemiş)
|
||||||
|
DEVEXPRESS_LICENSE=$(cat ~/erp-platform/api/DevExpress_License.txt 2>/dev/null || echo "")
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
|
--build-arg DevExpress_License="${DEVEXPRESS_LICENSE}" \
|
||||||
-t devops.sozsoft.com/sozsoft/erp-platform-migrator:1.0.0 \
|
-t devops.sozsoft.com/sozsoft/erp-platform-migrator:1.0.0 \
|
||||||
-t devops.sozsoft.com/sozsoft/erp-platform-migrator:latest \
|
-t devops.sozsoft.com/sozsoft/erp-platform-migrator:latest \
|
||||||
-f Erp.Platform.DbMigrator.Dockerfile .
|
-f Erp.Platform.DbMigrator.Dockerfile .
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue