Skip to content

Commit

Permalink
fixtures: fix read-only krb5kdc composeBuild failure (opensearch-proj…
Browse files Browse the repository at this point in the history
…ect#8799)

Running composeBuild task for krb5kdc-fixture throws read-only file
system error while writing hostname to local hosts file. Since,
hostname resolution is already present and pointing to local node,
let's remove writing it again from the Dockerfile.

See: opensearch-project#8761

Signed-off-by: Rohit Ashiwal <rashiwal@amazon.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
  • Loading branch information
r1walz authored and kaushalmahi12 committed Sep 12, 2023
1 parent cfac7bd commit 4fd5278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fixtures/krb5kdc-fixture/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:14.04
RUN apt update -y
RUN apt upgrade -y
ADD . /fixture
RUN echo kerberos.build.opensearch.org > /etc/hostname && echo "127.0.0.1 kerberos.build.opensearch.org" >> /etc/hosts
RUN echo kerberos.build.opensearch.org > /etc/hostname
RUN bash /fixture/src/main/resources/provision/installkdc.sh

EXPOSE 88
Expand Down

0 comments on commit 4fd5278

Please sign in to comment.