Skip to content

Commit

Permalink
fix: broken migration to efbundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Oct 25, 2023
1 parent dbbffb2 commit a6c4540
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
**/settings.*.yaml
**/settings.yaml
**/.dockerignore
**/.env
**/.git
Expand Down
6 changes: 4 additions & 2 deletions infra/migrate.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine as builder
RUN addgroup -g 1000 dotnet && adduser -G dotnet -u 1000 dotnet -D
USER dotnet
WORKDIR /app
Expand All @@ -8,4 +8,6 @@ COPY --chown=dotnet . .
WORKDIR /app
RUN dotnet tool install --global dotnet-ef
ENV PATH="$PATH:/home/dotnet/.dotnet/tools"
CMD [ "dotnet-ef", "database", "update", "--project", "./App" ]
ENV LANDSCAPE=lapras
RUN dotnet-ef migrations bundle --project ./App
CMD [ "./efbundle" ]
1 change: 1 addition & 0 deletions infra/migration_chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ A Chart to migrate .NET Microservice
| serviceTree.service | string | `"dotnet"` | |
| tolerations | list | `[]` | |
| topologySpreadConstraints | object | `{}` | |
| ttlSecondsAfterFinished | int | `60` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.2](https://github.com/norwoodj/helm-docs/releases/v1.11.2)
1 change: 1 addition & 0 deletions infra/migration_chart/templates/migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
annotations: {{- include "dotnet-migration.annotations" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
ttlSecondsAfterFinished: {{ .Values.ttlSecondsAfterFinished }}
template:
metadata:
annotations: {{- include "dotnet-migration.annotations" . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion infra/migration_chart/values.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ serviceTree:
aspNetEnv: Development

backoffLimit: 4

ttlSecondsAfterFinished: 60
appSettings:
App:
Mode: Migration
Expand Down
2 changes: 1 addition & 1 deletion infra/migration_chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ annotations: {}

backoffLimit: 4
configMountPath: /app/App/Config/settings.yaml

ttlSecondsAfterFinished: 60
image:
repository: dotnet-migration
pullPolicy: IfNotPresent
Expand Down
1 change: 1 addition & 0 deletions infra/root_chart/values.pichu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ migration:
securityContext: *securityContext
podSecurityContext: *podSecurityContext
configMountPath: /app/App/Config
ttlSecondsAfterFinished: 60
image:
repository: ghcr.io/atomicloud/sulfone.zinc/migrate-amd
serviceTree:
Expand Down
1 change: 1 addition & 0 deletions infra/root_chart/values.pikachu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ migration:
securityContext: *securityContext
podSecurityContext: *podSecurityContext
configMountPath: /app/App/Config
ttlSecondsAfterFinished: 60
image:
repository: ghcr.io/atomicloud/sulfone.zinc/migrate-amd
serviceTree:
Expand Down
1 change: 1 addition & 0 deletions infra/root_chart/values.raichu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ migration:
securityContext: *securityContext
podSecurityContext: *podSecurityContext
configMountPath: /app/App/Config
ttlSecondsAfterFinished: 60
image:
repository: ghcr.io/atomicloud/sulfone.zinc/migrate-amd
serviceTree:
Expand Down

0 comments on commit a6c4540

Please sign in to comment.