You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/docker/kratos_image/Dockerfile
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,13 @@ RUN git clone --depth 1 https://github.com/ory/kratos.git
15
15
WORKDIR /src/kratos
16
16
RUN git fetch --tags && git checkout $KRATOS_VERSION
17
17
18
+
# The hydra and kratos migrations attempt to create the same table.
19
+
# Kratos's migration only creates the table while hydra's migration creates the table
20
+
# and inserts a row. Therefore, we replace kratos's problematic version with empty placeholders
21
+
# to avoid a conflict. Removing the problematic migration file prior to module initialization and
22
+
# compilation did not work.
23
+
RUN for file in persistence/sql/migrations/sql/20150100000001000000_networks.*.sql; do echo "-- Migration disabled to avoid conflict with hydra" > "$file"; done
24
+
18
25
ENV GO111MODULE=on
19
26
# kratos and hydra require CGO if sqlite is used, but we exclusively use postgres
0 commit comments