Skip to content

Commit

Permalink
Update test fixture to avoid writing to /etc/hosts file (#69583)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Feb 25, 2021
1 parent bcd02f2 commit c0fc69d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/krb5kdc-fixture/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ubuntu:14.04
ADD . /fixture
RUN echo kerberos.build.elastic.co > /etc/hostname && echo "127.0.0.1 kerberos.build.elastic.co" >> /etc/hosts
RUN echo kerberos.build.elastic.co > /etc/hostname
RUN bash /fixture/src/main/resources/provision/installkdc.sh

EXPOSE 88
EXPOSE 88/udp

CMD sleep infinity
CMD sleep infinity
4 changes: 4 additions & 0 deletions test/fixtures/krb5kdc-fixture/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
build:
context: .
dockerfile: Dockerfile
extra_hosts:
- "kerberos.build.elastic.co:127.0.0.1"
command: "bash /fixture/src/main/resources/provision/peppa.sh"
volumes:
- ./testfixtures_shared/shared/peppa:/fixture/build
Expand All @@ -18,6 +20,8 @@ services:
build:
context: .
dockerfile: Dockerfile
extra_hosts:
- "kerberos.build.elastic.co:127.0.0.1"
command: "bash /fixture/src/main/resources/provision/hdfs.sh"
volumes:
- ./testfixtures_shared/shared/hdfs:/fixture/build
Expand Down

0 comments on commit c0fc69d

Please sign in to comment.