blob: 67a295322f001f40d5b1af51413dc3dde6116ce2 [file] [log] [blame]
################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
FROM ubuntu:trusty
#requirements
RUN apt-get update; apt-get install -y curl wget supervisor openssh-server openssh-client nano
#priviledge separation directory
RUN mkdir /var/run/sshd
#install Java 7 Oracle JDK
RUN mkdir -p /usr/java/default && \
curl -Ls 'http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz' -H 'Cookie: oraclelicense=accept-securebackup-cookie' | \
tar --strip-components=1 -xz -C /usr/java/default/
ENV JAVA_HOME /usr/java/default/
#Install Java Open JDK
#RUN apt-get install -y unzip openjdk-7-jre-headless
#ENV JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
RUN echo 'root:secret' | chpasswd
#SSH as root... probably needs to be revised for security!
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
EXPOSE 22
# supervisor base configuration
ADD supervisor.conf /etc/supervisor/
# default command / not overridable CMD needed for supervisord
#CMD ["supervisord", "-c", "/etc/supervisor.conf"]