-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add aws
session-manager-plugin
to aws
image
Signed-off-by: peterdeme <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
ARG REPOSITORY_BASE_PATH | ||
|
||
# Can't bump the Go version above 1.16 until this is solved: https://github.com/aws/session-manager-plugin/issues/23 | ||
FROM golang:1.15.3-alpine AS ssm-builder | ||
|
||
ARG VERSION=1.2.650.0 | ||
RUN set -ex && apk add --no-cache make git gcc libc-dev curl bash zip && \ | ||
curl -sLO https://github.com/aws/session-manager-plugin/archive/${VERSION}.tar.gz && \ | ||
mkdir -p /go/src/github.com && \ | ||
tar xzf ${VERSION}.tar.gz && \ | ||
mv session-manager-plugin-${VERSION} /go/src/github.com/session-manager-plugin && \ | ||
cd /go/src/github.com/session-manager-plugin && \ | ||
make release | ||
|
||
ARG REPOSITORY_BASE_PATH | ||
|
||
FROM ${REPOSITORY_BASE_PATH}:latest | ||
|
||
COPY --from=ssm-builder /go/src/github.com/session-manager-plugin/bin/linux_*_plugin/session-manager-plugin /usr/local/bin/ | ||
|
||
RUN pip install boto3 --break-system-packages |