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 <[email protected]>
Signed-off-by: Ivan Brusic <[email protected]>
  • Loading branch information
r1walz authored and brusic committed Sep 25, 2023
1 parent 7863248 commit bd81e2f
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 bd81e2f

Please sign in to comment.