elsevier-research / wercker-aws-ecs

5 stars 24 forks source link

run.sh: Reduce dependency footprint #6

Closed TomFrost closed 9 years ago

TomFrost commented 9 years ago

When deploying a Docker container, it's common to choose a very minimal base image such as one based on alpine, and not only are many of the commands used in run.sh not installed by default in that image, some of them aren't available in the package manager.

This PR:

Now, if alpine is being used as the base box, adding this script step in the deploy pipeline will allow this step to run:

- script:
    name: install ecs deployment deps
    code: |
      apk update
      apk add python openssl sudo

Note: theoretically sudo could be removed as well, but since it's very small and available in alpine's package manager, I didn't feel it necessary.

TomFrost commented 9 years ago

Apologies; I shortsightedly put this into master, and have another PR to make. I'll reopen this one when it's a branch.