Skip to content

Commit

Permalink
fixtures: fix read-only krb5kdc composeBuild failure
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
r1walz committed Jul 20, 2023
1 parent 27a14c7 commit 5d0a1a9
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 5d0a1a9

Please sign in to comment.