浏览代码

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 年之前
父节点
当前提交
a99435d607
共有 2 个文件被更改,包括 4 次插入11 次删除
  1. 0 8
      test/fixtures/hdfs-fixture/Dockerfile
  2. 4 3
      test/fixtures/hdfs-fixture/docker-compose.yml

+ 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