Skip to content

Commit e0c837d

Browse files
committed
Update README
1 parent 28dedec commit e0c837d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ NEW_SECRET=super_secret_v2
5858
A common use case is to use `ssm-env` as a Docker ENTRYPOINT. You can copy and paste the following into the top of a Dockerfile:
5959

6060
```dockerfile
61-
RUN curl -L https://github.com/remind101/ssm-env/releases/download/v0.0.4/ssm-env > /usr/local/bin/ssm-env && \
62-
cd /usr/local/bin && \
63-
echo 4a5140b04f8b3f84d16a93540daa7bbd ssm-env | md5sum -c && \
64-
chmod +x ssm-env
65-
ENTRYPOINT ["/usr/local/bin/ssm-env", "-with-decryption"]
61+
RUN curl -sSfL -o /usr/local/bin/ssm-env https://github.com/remind101/ssm-env/releases/download/v0.0.5/ssm-env \
62+
&& cd /usr/local/bin \
63+
&& echo "babf40382bcd260f0d8d4575a32d5ec33fb08fefd29f12ffd800fbe738c41021 ssm-env" | sha256sum -c \
64+
&& chmod +x ssm-env
6665
```
6766

6867
Now, any command executed with the Docker image will be funneled through ssm-env.
@@ -78,8 +77,11 @@ FROM alpine:latest
7877
# ...copy code
7978

8079
# ssm-env: See https://github.com/remind101/ssm-env
81-
RUN wget -O /usr/local/bin/ssm-env https://github.com/remind101/ssm-env/releases/download/v0.0.3/ssm-env
82-
RUN chmod +x /usr/local/bin/ssm-env
80+
RUN apk add curl
81+
RUN curl -sSfL -o /usr/local/bin/ssm-env https://github.com/remind101/ssm-env/releases/download/v0.0.5/ssm-env \
82+
&& cd /usr/local/bin \
83+
&& echo "babf40382bcd260f0d8d4575a32d5ec33fb08fefd29f12ffd800fbe738c41021 ssm-env" | sha256sum -c \
84+
&& chmod +x ssm-env
8385

8486
# Alpine Linux doesn't include root certificates which ssm-env needs to talk to AWS.
8587
# See https://simplydistributed.wordpress.com/2018/05/22/certificate-error-with-go-http-client-in-alpine-docker/

0 commit comments

Comments
 (0)