aws / aws/aws-app-mesh-examples

"/bin/sh: yum: command not found" while implementing "howto-mutual-tls-file-provided" in the walkthroughs

Open
#512 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
868
Forks
384
PR merge metrics
No merged PRs in 30d

Description

Issue description: While implementing the walk through available at "howto-mutual-tls-file-provided" at step #3 I came across the below error.

`/bin/sh: yum: command not found`

I was able to work around this issue by using the below Dockerfile instead.

```
FROM public.ecr.aws/appmesh/aws-appmesh-envoy:v1.23.1.0-prod as envoy
FROM public.ecr.aws/amazonlinux/amazonlinux:2

RUN yum update -y && \
yum install -y jq curl unzip less && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rpm -e --nodeps unzip && \
rm -rf awscliv2.zip ./aws/install && \
yum clean all && \
rm -rf /var/cache/yum

COPY --from=envoy /usr/bin/envoy /usr/bin/envoy
COPY --from=envoy /usr/bin/agent /usr/bin/agent
COPY --from=envoy /aws_appmesh_aggregate_stats.wasm /aws_appmesh_aggregate_stats.wasm

RUN mkdir /keys && chown 1337:1337 /keys

ENV AWS_DEFAULT_REGION=us-west-2
COPY entryPoint.sh /bin/entryPoint.sh
CMD ["/bin/entryPoint.sh"]

```

The Dockerfile has to be updated in the walkthrough to include the line "FROM public.ecr.aws/amazonlinux/amazonlinux:2" so that the yum commands will work.

Contributor guide

Open the contributing guide

Research direction

Open the walkthrough identified as "howto-mutual-tls-file-provided" and inspect the Dockerfile used at step 3. Check the base image before the yum commands, then verify the walkthrough builds successfully with the documented Dockerfile and that the yum error is gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, shell
Domain
devops, documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.