Dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Welcome to the official Livy (http://gethue.com) developer Dockerfile
  2. FROM ubuntu:trusty
  3. MAINTAINER The Hue Team "https://github.com/cloudera/hue"
  4. RUN apt-get install -y software-properties-common
  5. RUN add-apt-repository -y ppa:webupd8team/java
  6. RUN apt-get update -y
  7. RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
  8. RUN apt-get install -y oracle-java8-installer
  9. RUN apt-get install -q -y \
  10. git \
  11. maven \
  12. curl \
  13. m4 \
  14. ruby \
  15. texinfo \
  16. libbz2-dev \
  17. libcurl4-openssl-dev \
  18. libexpat-dev \
  19. libncurses-dev \
  20. zlib1g-dev
  21. RUN useradd -ms /bin/bash ellie
  22. USER ellie
  23. WORKDIR /home/ellie
  24. RUN yes |ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
  25. ENV PATH="/home/ellie/.linuxbrew/bin:$PATH"
  26. RUN brew update
  27. RUN brew install apache-spark
  28. RUN git clone https://github.com/cloudera/hue.git
  29. WORKDIR hue/apps/spark/java
  30. RUN mvn clean install -DskipTests
  31. EXPOSE 8998
  32. CMD ["apps/spark/java/bin/livy-server"]