From fa11fe49588cb900aad6fe1bfd9a78deccb21e01 Mon Sep 17 00:00:00 2001 From: Sai Kiran Akula <87731960+saikiranakula-amzn@users.noreply.github.com> Date: Wed, 20 Dec 2023 13:23:29 -0800 Subject: [PATCH] Update credentials-fetcher Dockerfile Removing unwanted dependencies --- ecs-agent/daemonimages/credentialsfetcher/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ecs-agent/daemonimages/credentialsfetcher/Dockerfile b/ecs-agent/daemonimages/credentialsfetcher/Dockerfile index dd6ae28c65d..c1cded3c595 100644 --- a/ecs-agent/daemonimages/credentialsfetcher/Dockerfile +++ b/ecs-agent/daemonimages/credentialsfetcher/Dockerfile @@ -14,17 +14,15 @@ # use minimal amazonlinux:2023 base for credentials-fetcher image FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal -RUN dnf install -y krb5-workstation jq unzip && mkdir /krb5 && chmod 755 /krb5 +RUN dnf install -y krb5-workstation RUN dnf install -y sssd -RUN dnf install -y realmd RUN dnf install -y which RUN dnf install -y credentials-fetcher RUN mkdir -p /var/credentials-fetcher/krbdir RUN mkdir -p /var/credentials-fetcher/logging RUN mkdir -p /var/credentials-fetcher/socket - -VOLUME ["/krb5","/etc/krb5.conf.d","/var/scratch"] +RUN mkdir -p /var/scratch RUN cp /usr/sbin/krb5.conf /etc/krb5.conf