Skip to content

atlas-in-docker does not provide a git executable #3589

@robinstraub

Description

@robinstraub

The documentation states Atlas is shipping "a set of official Docker Images for you to use." (source).

When trying to run Atlas inside docker, and linting migrations against a git branch, it fails with the following error:

Error: lookup git: exec: "git": executable file not found in $PATH

Upon inspection, none of the shipped images provide a git executable.

Reproduction

Run the following command (with a valid dev-url parameter as input):

docker run arigaio/atlas:latest-community-alpine migrate lint --git-base=master --dev-url="postgres://postgres:postgres@postgres:5432"

Fix

Could you either bundle a git executable in one of the the images (my strong preference 😅), or at least refer the limitation in the Common Issues section of the documentation?

If you're concerned about the added image weight, given how optimized yours are, installing git would at ~2.9MB 😗

I'd be willing to open a pull request but I don't think the Dockerfile for the images is versionned in this repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions