Skip to content

Commit 9a26f8e

Browse files
authored
Merge pull request #4047 from as14692/dev
Add credentials-fetcher Dockerfile
2 parents 0869d3a + 04d05b6 commit 9a26f8e

File tree

1 file changed

+31
-0
lines changed
  • ecs-agent/daemonimages/credentialsfetcher

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"). You may
4+
# not use this file except in compliance with the License. A copy of the
5+
# License is located at
6+
#
7+
# http://aws.amazon.com/apache2.0/
8+
#
9+
# or in the "license" file accompanying this file. This file is distributed
10+
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
# express or implied. See the License for the specific language governing
12+
# permissions and limitations under the License.
13+
14+
# use minimal amazonlinux:2023 base for credentials-fetcher image
15+
FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal
16+
17+
RUN dnf install -y krb5-workstation jq unzip && mkdir /krb5 && chmod 755 /krb5
18+
RUN dnf install -y sssd
19+
RUN dnf install -y realmd
20+
RUN dnf install -y which
21+
RUN dnf install -y credentials-fetcher
22+
23+
RUN mkdir -p /var/credentials-fetcher/krbdir
24+
RUN mkdir -p /var/credentials-fetcher/logging
25+
RUN mkdir -p /var/credentials-fetcher/socket
26+
27+
VOLUME ["/krb5","/etc/krb5.conf.d","/var/scratch"]
28+
29+
RUN cp /usr/sbin/krb5.conf /etc/krb5.conf
30+
31+
CMD ["/usr/sbin/credentials-fetcherd"]

0 commit comments

Comments
 (0)