Skip to content

Commit 5d7bc7e

Browse files
authored
fix: make migrations work in openshift (#949)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 52b933b commit 5d7bc7e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# Container image built by go-releaser that's used to run migrations against the database during deployment
22
# See https://atlasgo.io/guides/deploying/image
3-
FROM arigaio/atlas@sha256:5c459e8c134bb3d6d4f0346bbe6aa32ab23b7726286c4f23e7d831557574ed0d
3+
FROM arigaio/atlas@sha256:5c459e8c134bb3d6d4f0346bbe6aa32ab23b7726286c4f23e7d831557574ed0d as base
44

5+
FROM scratch
6+
# Update permissions to make it readable by the user
7+
# Otherwise the permissions are 001 which is not compatible with openshift in the default configuration
8+
# https://github.com/chainloop-dev/chainloop/issues/922
9+
COPY --from=base --chmod=555 /atlas /
510
COPY app/controlplane/pkg/data/ent/migrate/migrations /migrations
611

712
USER 1001
13+
14+
ENTRYPOINT ["/atlas"]

0 commit comments

Comments
 (0)