mirror of
https://github.com/rlister/dockerfiles.git
synced 2025-12-12 17:26:15 +00:00
add initial dockerfile for amazon-ssm-agent
This commit is contained in:
17
amazon-ssm-agent/Dockerfile
Normal file
17
amazon-ssm-agent/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM debian:jessie
|
||||
|
||||
MAINTAINER Ric Lister <rlister@gmail.com>
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get install -yq \
|
||||
curl
|
||||
|
||||
ENV AGENT_URL https://amazon-ssm-us-east-1.s3.amazonaws.com/latest/debian_amd64/amazon-ssm-agent.deb
|
||||
|
||||
RUN curl ${AGENT_URL} -o amazon-ssm-agent.deb && \
|
||||
dpkg -i amazon-ssm-agent.deb && \
|
||||
rm -f amazon-ssm-agent.deb
|
||||
|
||||
WORKDIR /opt/amazon/ssm/
|
||||
CMD ["./amazon-ssm-agent"]
|
||||
7
amazon-ssm-agent/README.md
Normal file
7
amazon-ssm-agent/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# amazon-ssm-agent
|
||||
|
||||
This is a simple installation on debian of the
|
||||
[AWS EC2 Run Command agent](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/execute-remote-commands.html).
|
||||
|
||||
Running this container on an ec2 instance with correct IAM permissions
|
||||
will allow the running of commands _inside the container_.
|
||||
Reference in New Issue
Block a user