Created
May 2, 2015 10:55
-
-
Save piatra/53c0b6d185d10eeeaf8b to your computer and use it in GitHub Desktop.
licenta dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM lukasz/docker-scala | |
MAINTAINER Andrei Oprea <[email protected]> | |
# SSH keys nonsense | |
RUN echo "IdentityFile ~/.ssh/id_rsa" >> /etc/ssh/ssh_config | |
RUN mkdir /root/.ssh | |
RUN ssh-keyscan -t rsa github.com 2>&1 >> /root/.ssh/known_hosts | |
# Fetch streamer | |
RUN git clone https://github.com/piatra/streamer | |
# Fetch Kafka | |
RUN wget http://www.eu.apache.org/dist/kafka/0.8.2.1/kafka_2.9.1-0.8.2.1.tgz | |
RUN tar -xvf kafka_2.9.1-0.8.2.1.tgz | |
RUN mv kafka_2.9.1-0.8.2.1 ~/kafka | |
RUN rm kafka_2.9.1-0.8.2.1.tgz | |
# Updates | |
RUN cd ~/streamer && git pull | |
RUN cd ~/streamer && sbt update | |
# Get JAVA | |
RUN apt-get update | |
RUN apt-get install oracle-java8-installer | |
# Get kafka script | |
RUN cd ~/kafka && wget https://gist.githubusercontent.com/piatra/0d6f7ad1435fa7aa790a/raw/3d59ef6527e85b0708dca86ce3fa26c29b424301/kafka_start.sh | |
# Fix java version | |
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle | |
RUN update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-8-oracle/bin/javac 1500 | |
RUN update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-8-oracle/bin/java 1500 | |
RUN update-alternatives --auto java | |
RUN update-alternatives --auto javac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment