core: Migration does not terminate (node ace migration:run, docker, CI, pipeline)

I searched related issues but it couldn’t find a solution that works for me. The migration command node ace migration:run --force is a part of our CI pipeline. The command isn’t terminating if there is ‘Nothing to migrate’. Is there a simple solution for this?

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 26 (11 by maintainers)

Most upvoted comments

Works fine for me using the following Dockerfile and docker-compose.yml.

FROM node:10.15.3-alpine

RUN apk update && apk upgrade && \
  apk add --update git && \
  apk add --update openssh && \
  apk add --update bash && \
  apk add --update wget

WORKDIR /usr/src/app

COPY package*.json ./
RUN npm install

COPY . .
version: '3.4'
services:
  migrate:
    build:
      context: .
    command: ["node", "ace", "migration:run"]

and this is how the output looks like

Screen Shot 2019-08-12 at 10 03 44 AM

Okay, that helps narrow it down. Lemme try with docker and see how it goes

This is kinda weird, since it works fine for me. Can you please share the output of node ace migration:run --help command?