Skip to content

cURL not universally available #35

@pirog

Description

@pirog

Currently, the build step we use to download the mhsendmail binary into each hogfrom service assumes that curl exists within said service.

This worked great until recently when bitnami removed curl from newer versions of nginx. You can see this failure demonstrated in #36. To provide a more robust service and to prep for Lando 4 we should make getting mhsendmail a bit more sophisticated.

So, the fix should be something like this:

1. Convert needed build steps into a shell script that lives in the scripts folder.

The script should test for the existence of curl and install it if needed, i think its probably OK to assume apt/debian flavored images but adding apk support for alpine images wouldnt be horrible.

Then the script should download the arch specific binary, move it into PATH and make it executable.

2. Invoke the script as a build step

Everything put into the scripts folder in a plugin ends up in the /helpers folder in each container so we should switch the build step to just run that script. It's possible we need to pass in an option/arg to handle the different architectures. I'm a bit confused on how that works tbh.

3. The tests should pass

We should also add the code from #36 and make sure those tests pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions