Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Instructions? #10

Open
ambsw-technology opened this issue May 2, 2019 · 2 comments
Open

Install Instructions? #10

ambsw-technology opened this issue May 2, 2019 · 2 comments

Comments

@ambsw-technology
Copy link

Would be helpful for build/install instructions for non-go users. Also saw #8. Maybe something inspired by https://github.com/sendgrid/aws-env/blob/master/Dockerfile

@pda
Copy link
Contributor

pda commented May 3, 2019

True — the TL;DR is to download the binary from GitHub releases, but you're right, that should be in the README.

@ambsw-technology
Copy link
Author

ambsw-technology commented May 25, 2019

As a kickstart for others, this uses a multi-stage build to copy over just the binary (with a version configurable using --build-arg):

EDIT: fix/update commands as I get it working in real life

FROM alpine as pse
ARG PSE_VERSION=1.1.0
ADD https://github.com/cultureamp/parameter-store-exec/releases/download/v${PSE_VERSION}/parameter-store-exec-v${PSE_VERSION}-linux-amd64.tar.gz .
RUN tar -xvzf parameter-store-exec-v${PSE_VERSION}-linux-amd64.tar.gz

FROM <production-base>:<version>
# ... build your production image

ENV PATH=${PATH}:/${PWD}
COPY --from=pse /parameter-store-exec .
# funky but necessary workaround (see https://serverfault.com/a/900708)
RUN /bin/bash -c 'chmod +x parameter-store-exec'
ENTRYPOINT ["parameter-store-exec"]
CMD [...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants