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

Refine Ruby docker image and mark as GA #4124

Closed
Tracked by #4123 ...
ford-at-aws opened this issue Dec 29, 2022 · 0 comments
Closed
Tracked by #4123 ...

Refine Ruby docker image and mark as GA #4124

ford-at-aws opened this issue Dec 29, 2022 · 0 comments
Assignees

Comments

@ford-at-aws
Copy link
Contributor

ford-at-aws commented Dec 29, 2022

User story

As an AWS customer, I want to be able to rely on the Docker image found in the Ruby language repository to contain all the necessary examples for Ruby, including pre-compiled dependencies so that I can effectively run example code in a Docker environment.

I know this is done when:

  • the Dockerfile itself contains correct steps for resolving dependencies and is built successfully
  • the resulting Docker image is successfully pushed to ECR via the existing DevOps processes
  • the container that is created from that image runs some subset of example code (e.g. the Lambda MVP) successfully by exec'ing in, adding AWS credentials, and invoking it via terminal session
  • usage steps explaining which examples can be run and how are documented in the README.md#docker-image section.

Adding credentials to your docker container

Never add credentials to a Dockerfile or the resulting image. Instead, add them at runtime using the following command:
docker run -it --volume ~/.aws/credentials:/root/.aws/credentials IMAGE_NAME

You can find IMAGE_NAME by running docker images and copying the first 4 digits of the random Id that's created when you run docker build .

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

1 participant