Browse Source

Avoid building hdfs-fixure use an image that works instead

Avoid the additional requirement for the debian package repos to be up,
and depend on dockerhub only instead.
Alpar Torok 6 years ago
parent
commit
a99435d607

+ 0 - 8
test/fixtures/hdfs-fixture/Dockerfile

@@ -1,8 +0,0 @@
-FROM java:8-jre
-
-RUN apt-get update && apt-get install net-tools
-
-EXPOSE 9998
-EXPOSE 9999
-
-CMD java -cp "/fixture:/fixture/*" hdfs.MiniHDFS /data

+ 4 - 3
test/fixtures/hdfs-fixture/docker-compose.yml

@@ -2,10 +2,11 @@ version: '3'
 services:
   hdfs:
     hostname: hdfs.build.elastic.co
-    build:
-      context: .
-      dockerfile: Dockerfile
+    image: ubuntu:14.04
     volumes:
       - ./build/fixture:/fixture
     ports:
+        # FIXME: Don't fix the host ports  
       - "9999:9999"
+      - "9998:9999"
+    entrypoint:  apt-get update && apt-get install net-tools && java -cp "/fixture:/fixture/*" hdfs.MiniHDFS /data