Skip to content

Pin version in Dockerfiles #11

@dougbtv

Description

@dougbtv

I'm building a commit right now that pins the homer-api & homer-ui verisons by commit hash. This one: sipcapture/homer-docker@e8fa985

On my wishlist is tags with semver or something (which I see has been done at least during major releases, very nice) on those projects. It will look nicer in the dockerfile when I can pin it at specific tags, e.g. we can clone a tag like...

git clone --branch vX.Y.Z https://github.com/sipcapture/homer-ui.git

Because we've had homer-ui & homer-api running @ HEAD I'm running into a bit of "Schrödinger's Docker images" where I don't know if the Dockerfile is going to be working or not until I build it. In this case today, because of some changes to the new rotation scripts, I'm seeing it happen again.

For now, I'm just going to git checkout [sha-1] in the Dockerfile, and I'll merge what I've got for now (assuming the build is verified). But, this will allow us to be sure that it will work when HEAD is changing on the primary projects. And, when the time's right, to go ahead and test it out with newer commits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions