Skip to content

Commit

Permalink
[ENH]: simplify migration (#2067)
Browse files Browse the repository at this point in the history
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
	 - simplify log migration
  • Loading branch information
nicolasgere authored Apr 26, 2024
1 parent 8cb6c50 commit 4d6999d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions go/Dockerfile.migration
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ RUN curl -sSf https://atlasgo.sh | sh -s -- --community
COPY ./go/migrations migrations
COPY ./go/atlas.hcl atlas.hcl

FROM debian:bookworm-slim as logservice-migration
RUN apt update
RUN apt upgrade -y
RUN apt install -y curl jq
RUN curl -sSf https://atlasgo.sh | sh -s -- --community
FROM arigaio/atlas:latest as logservice-migration
COPY ./go/database/log/migrations migrations
COPY ./go/database/log/atlas.hcl atlas.hcl
5 changes: 1 addition & 4 deletions k8s/distributed-chroma/templates/log-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ spec:
spec:
restartPolicy: OnFailure
containers:
- command:
- "/bin/sh"
- "-c"
- "atlas migrate apply --env prod"
- args: ['migrate', 'apply', '--env','prod']
image: "{{ .Values.logServiceMigration.image.repository }}:{{ .Values.logServiceMigration.image.tag }}"
imagePullPolicy: IfNotPresent
name: migration
Expand Down

0 comments on commit 4d6999d

Please sign in to comment.