Ver código fonte

[core] Initial support for Docker

Enrico Berti 10 anos atrás
pai
commit
db95f49
2 arquivos alterados com 69 adições e 0 exclusões
  1. 32 0
      tools/docker/README.md
  2. 37 0
      tools/docker/hue-base/Dockerfile

+ 32 - 0
tools/docker/README.md

@@ -0,0 +1,32 @@
+![alt text](https://raw.githubusercontent.com/cloudera/hue/master/docs/images/hue_logo.png "Hue Logo")
+
+
+#Welcome to the repository for the Hue Dockerfiles
+
+
+Hue is an open source Web interface for analyzing data with any Apache Hadoop: [gethue.com](http://gethue.com)
+
+Here you can find the Dockerfiles for Hue and Livy, the Spark REST server.
+
+You can catch us on [Docker Hub](https://hub.docker.com/u/gethue/) as well. 
+
+[![DockerPulls](https://img.shields.io/docker/pulls/gethue/hue.svg)](https://registry.hub.docker.com/u/gethue/hue/)
+[![DockerStars](https://img.shields.io/docker/stars/gethue/hue.svg)](https://registry.hub.docker.com/u/gethue/hue/)
+
+
+##Pull the image from Docker Hub
+```
+docker pull gethue/hue:latest
+```
+
+##Build the image
+```
+docker build --rm -t gethue/hue:latest .
+```
+
+## Running the image
+```
+docker run -it -p 8888:8888 gethue/hue:latest bash
+```
+This opens a bash to the root of the project. You can then configure Hue and start using it! Read more about configuring Hue on our [blog](http://gethue.com/how-to-configure-hue-in-your-hadoop-cluster/).
+

+ 37 - 0
tools/docker/hue-base/Dockerfile

@@ -0,0 +1,37 @@
+# Welcome to the official Hue (http://gethue.com) developer Dockerfile
+FROM ubuntu:trusty
+MAINTAINER The Hue Team "https://github.com/cloudera/hue"
+
+RUN apt-get install -y software-properties-common
+RUN add-apt-repository -y ppa:webupd8team/java
+RUN apt-get update -y
+
+RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
+RUN apt-get install -y oracle-java8-installer
+
+RUN apt-get install -q -y \
+  git \
+  ant \
+  gcc \
+  g++ \
+  libkrb5-dev \
+  libmysqlclient-dev \
+  libssl-dev \
+  libsasl2-dev \
+  libsasl2-modules-gssapi-mit \
+  libsqlite3-dev \
+  libtidy-0.99-0 \
+  libxml2-dev \
+  libxslt-dev \
+  make \
+  maven \
+  libldap2-dev \
+  python-dev \
+  python-setuptools \
+  libgmp3-dev
+
+RUN git clone https://github.com/cloudera/hue.git
+WORKDIR hue
+RUN make apps
+EXPOSE 8888
+CMD ["build/env/bin/hue", "runserver_plus", "0.0.0.0:8888"]