Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Create a download-only mode for Docker builds #41

@michaelmarcus-ml

Description

@michaelmarcus-ml

I would like to revisit the suggestion in #11 for a separate "download only" mode, specifically for use in Dockerfiles.

Currently my team is doing something like this:

RUN npx flyway -c flyway.js info; exit 0 

The exit 0 is needed because there is no database connectivity at image build time, which causes the info command to fail. We need this command to succeed in order for the Docker build to continue. The big issue with this workaround is that we have no way of knowing if the download itself fails.

I would like to be able to have something like this instead, whereby omitting the command still executes the download:

RUN npx flyway -c flyway.js

This way, if the download fails, the Docker build is aborted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions