Coder Social home page Coder Social logo

Comments (5)

B1ue-W01f avatar B1ue-W01f commented on August 31, 2024

For those coming across this issue, a temporary solution is to override the pillar defaults as below:

docker:
  pkg:
    compose:
      binary:
        options: ''
        source: 'https://github.com/docker/compose/releases/download/1.29.1/docker-compose-Linux-x86_64'
        source_hash: '8097769d32e34314125847333593c8edb0dfc4a5b350e4839bef8c2fe8d09de7'

Using the releases from the Docker Compose Github

from docker-formula.

danny-smit avatar danny-smit commented on August 31, 2024

Can we use the github.com sources by default in the formula yaml files as well? That seems to work if I test it.

However, with the current use of bintray.org the source always points 'latest', but the source_hash is hard-coded. I'm a bit confused by that. Isn't the hash of the 'latest' changing all the time?

from docker-formula.

noelmcloughlin avatar noelmcloughlin commented on August 31, 2024

Looking at https://github.com/docker/compose/releases each release tarball (tar.gz) has a checksum (tar.gz.sha256).

If source_hash: null then formula will automatically calculate correct source_hash value so nullis best for github source.

{%- if 'source_hash' in p.archive and p.archive.source_hash %}
{%- do p.archive.update({'name': p.path, 'source_hash': p.archive.source_hash}) %}
{%- else %}
{%- do p.archive.update({'name': p.path, 'source_hash': url ~ '.sha256'}) %}
{%- endif %}

from docker-formula.

danny-smit avatar danny-smit commented on August 31, 2024

@noelmcloughlin Thanks, that seems to work: #290

from docker-formula.

myii avatar myii commented on August 31, 2024

Fixed by #290.

from docker-formula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.