Skip to content

Commit

Permalink
get migrations running
Browse files Browse the repository at this point in the history
  • Loading branch information
DanPaseltiner committed Oct 11, 2024
1 parent ea530fa commit dd7cf1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions containers/tefca-viewer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ ENV HOSTNAME="0.0.0.0"
# Copy necessary app files
COPY --from=installer /app/next.config.js .
COPY --from=installer /app/package.json .
COPY --from=installer /app/flyway/conf/flyway.conf ./flyway/conf/flyway.conf
COPY --from=installer /app/flyway/sql ./flyway/sql
COPY --from=installer /app/flyway/conf/flyway.conf ../flyway/conf/flyway.conf
COPY --from=installer /app/flyway/sql ../flyway/sql

# Automatically leverage output traces to reduce image size
COPY --from=installer --chown=nextjs:nodejs /app/.next/standalone ./
Expand All @@ -63,4 +63,4 @@ ENV JAVA_HOME=/usr/lib/jvm/default-jvm
# Add the OpenJDK to the PATH so the java command is available for Flways
ENV PATH=$JAVA_HOME/bin:$PATH

CMD ["sh", "-c","flyway -configFiles=./flyway/conf/flyway.conf -schemas=public -connectRetries=60 migrate && echo done with flyway && node server.js"]
CMD ["sh", "-c","flyway -configFiles=../flyway/conf/flyway.conf -schemas=public -connectRetries=60 migrate && echo done with flyway && node server.js"]
2 changes: 1 addition & 1 deletion containers/tefca-viewer/flyway/conf/flyway.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
flyway.url=jdbc:postgresql://db:5432/tefca_db
flyway.locations=filesystem:./flyway/sql
flyway.locations=filesystem:/flyway/sql
flyway.user=postgres
flyway.password=pw
flyway.baselineOnMigrate=false

0 comments on commit dd7cf1d

Please sign in to comment.