Public | Automated Build

Last pushed: 2 years ago
Dockerfile
# # Bluefairy Dockerfile # # https://github.com/dockerfile/ubuntu # # Pull base image. FROM ubuntu:15.10 MAINTAINER moremagic<itoumagic@gmail.com> RUN apt-get update && apt-get upgrade -y && apt-get clean # ssh install RUN apt-get update && apt-get install -y openssh-server openssh-client && apt-get clean RUN mkdir /var/run/sshd RUN echo 'root:root' | chpasswd RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config # SSH login fix. Otherwise user is kicked off after login RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd ENV NOTVISIBLE "in users profile" RUN echo "export VISIBLE=now" >> /etc/profile # Java install RUN apt-get install -q -y openjdk-8-jdk && apt-get clean ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/ ENV PATH $JAVA_HOME/bin:$PATH # mongodb install RUN apt-get install -y mongodb ADD docker/mongo_setup.sh /etc/ RUN chmod +x /etc/mongo_setup.sh # docker-proxy install ADD docker-proxy /opt/docker-proxy/ # bluefariy install ADD docker/bluefairy-0.1.0.jar /opt/bluefairy/target/ # proxy install ADD docker/unix-socket-proxy /etc/nginx/sites-available/ RUN apt-get -y install nginx && apt-get clean RUN ln -s /etc/nginx/sites-available/unix-socket-proxy /etc/nginx/sites-enabled/ RUN printf '#!/bin/bash \n\ /etc/init.d/mongodb start \n\ /etc/mongo_setup.sh > /etc/mongo_debug.log \n\ chmod 666 /tmp/docker_socket \n\ java -jar /opt/bluefairy/target/bluefairy-0.1.0.jar --server.port=8080 --logging.file=/var/log/bluefairy.log --bluefairy.docker.remoteApi=http://127.0.0.1:55111/ & \n\ java -cp /opt/docker-proxy/HttpSocks.jar:/opt/docker-proxy/jsonic-1.3.10.jar httpsocks.HttpSocks 55111 $DOKER_HOSTS > /var/log/docker-proxy.log 2>1& \n\ /etc/init.d/nginx start \n\ /usr/sbin/sshd -D \n\ tail -f /var/null \n\ ' >> /etc/service.sh \ && chmod +x /etc/service.sh EXPOSE 22 8080 CMD /etc/service.sh
Source Repository