# Dockerfile to create a docker image from base as ubuntu:14.04 and setup the environment so as to run CAF.
# You will need to put the iox-dev code you want to execute, in the context directory.
FROM ubuntu:14.04
RUN apt-get update -y
RUN apt-get install -y python-dev
RUN apt-get install -y python-setuptools
RUN apt-get install -y python-pip
RUN apt-get install -y openssl
# "apt-cache search libssl | grep SSL" gives the version of libssl to be installed.
RUN apt-get install -y libssl0.9.8
RUN apt-get install -y unzip
RUN apt-get install -y git
RUN apt-get install -y vim
RUN pip install virtualenv
RUN mkdir ioxdevrepo
ADD . /ioxdevrepo
WORKDIR /ioxdevrepo/iox-dev/core/caf/scripts
RUN ./setup-venv.sh
RUN ifconfig
EXPOSE 8443
RUN ./run-caf.sh &