Skip to content

Conversation

@housni
Copy link

@housni housni commented Aug 3, 2018

You can now pass an environment file into the Docker container in order to configure AWS CLI.
Also, I switched to an Alpine Linux Docker image (93MB) instead of the python image (143MB).

From my system:

$ docker images --filter "since=ionic-ci-cd:latest"
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
aws_cli             latest              09cf94210a78        10 minutes ago      93MB
python              3.7-slim            af33bb8848e2        2 days ago          143MB


RUN cp -r /app/aws/ ~/.aws
ENTRYPOINT [ "aws" ]
CMD [ "iam", "get-user" ]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, if the user doesn't provide an argument when calling docker run, iam get-user will run, by default.

@housni housni force-pushed the feature/easier-aws-cli-access branch from e4685b6 to dedaac4 Compare September 29, 2018 15:41
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

Successfully merging this pull request may close these issues.

1 participant