Skip to content

Commit

Permalink
feat: new migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Oct 25, 2023
1 parent f6d713a commit 537c11b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
**/.dockerignore
**/settings.*.yaml
**/settings.yaml
**/.dockerignore
**/.env
**/.git
**/.gitignore
Expand Down
8 changes: 5 additions & 3 deletions infra/migrate.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine
RUN addgroup -g 1000 dotnet && adduser -G dotnet -u 1000 dotnet -D
USER dotnet
WORKDIR /app
COPY ["App/App.csproj", "App/"]
COPY --chown=dotnet "App/App.csproj" "App/"
RUN dotnet restore "App/App.csproj"
COPY . .
COPY --chown=dotnet . .
WORKDIR /app
RUN dotnet tool install --global dotnet-ef
ENV PATH="$PATH:/root/.dotnet/tools"
ENV PATH="$PATH:/home/dotnet/.dotnet/tools"
CMD [ "dotnet-ef", "database", "update", "--project", "./App" ]
1 change: 1 addition & 0 deletions infra/root_chart/values.pichu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ migration:
envFromSecret: *target
securityContext: *securityContext
podSecurityContext: *podSecurityContext
configMountPath: /app/App/Config
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 @@ -67,6 +67,7 @@ migration:
envFromSecret: *target
securityContext: *securityContext
podSecurityContext: *podSecurityContext
configMountPath: /app/App/Config
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 @@ -68,6 +68,7 @@ migration:
envFromSecret: *target
securityContext: *securityContext
podSecurityContext: *podSecurityContext
configMountPath: /app/App/Config
image:
repository: ghcr.io/atomicloud/sulfone.zinc/migrate-amd
serviceTree:
Expand Down

0 comments on commit 537c11b

Please sign in to comment.