Browse Source

PR338 [tools] Introducing docker-compose

It allows to do some fancy tricks in a structured manner:

# override dns (for local specific infrastructure setups)
# mount necessary directory or files
Guido Serra 9 years ago
parent
commit
36eabfa

+ 11 - 0
tools/docker/README.md

@@ -38,6 +38,17 @@ This opens a bash to the root of the project. From there you can run the develop
 ./build/env/bin/hue runserver_plus 0.0.0.0:8888
 ```
 
+or
+
+## Running with docker-compose
+```
+cd tools/docker/hue-base
+cp docker-compose.yml.sample docker-compose.yml
+cp ../../../hue/desktop/conf.dist/hue.ini
+docker-compose up -d
+docker exec -ti development_hue bash
+```
+
 Hue should then be up and running on your default Docker IP on the port 8888, so usually [http://192.168.99.100:8888](http://192.168.99.100:8888).
 
 **Note**

+ 2 - 0
tools/docker/hue-base/.gitignore

@@ -0,0 +1,2 @@
+docker-compose.yml
+hue.ini

+ 13 - 0
tools/docker/hue-base/docker-compose.yml.sample

@@ -0,0 +1,13 @@
+cloudera:
+    image: gethue/hue:latest
+    hostname: hue
+    container_name: development_hue
+    dns: 8.8.8.8
+    ports:
+     - "8888:8888"
+    #command: ./build/env/bin/hue runserver_plus 0.0.0.0:8888
+    command: tail -f /dev/null
+    volumes:
+      - ../../../apps/hbase/src:/hue/apps/hbase/src
+      - ./hue.ini:/hue/desktop/conf/hue.ini
+