Commit d8999173 authored by Caillat Michel's avatar Caillat Michel
Browse files

First commits

parents
#
# Adapted from the tutorial found at
# http://www.science.smith.edu/dftwiki/index.php/Tutorial:_Docker_Anaconda_Python_--_4
#
# Michel Caillat - 6 Mai 2019
#
#------------------------------------------------------------#
# #
# General required stuff #
# #
#------------------------------------------------------------#
# We will use Centos for our image
FROM centos:latest
# Updating Ubuntu packages
RUN yum install -y emacs
# Adding wget and bzip2
RUN yum install -y wget bzip2
# Add sudo
RUN yum install -y sudo
RUN groupadd sudo
RUN cat /etc/group
# Add user partemix with no password, add to sudo group
RUN adduser -G sudo -d /home/partemix partemix
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN ls /home/partemix
# Player is partemix
USER partemix
WORKDIR /home/partemix/
RUN chmod a+rwx /home/partemix/
# Anaconda installing
RUN wget https://repo.continuum.io/archive/Anaconda3-2019.03-Linux-x86_64.sh
RUN bash Anaconda3-2019.03-Linux-x86_64.sh -b
RUN rm Anaconda3-2019.03-Linux-x86_64.sh
# Set path to conda
ENV PATH /home/partemix/anaconda3/bin:$PATH
RUN pwd
RUN echo "PATH=$PATH"
RUN find /home/partemix/anaconda3 -name "conda"
# Updating Anaconda packages
RUN conda update conda
RUN conda update anaconda
RUN conda update --all
#------------------------------------------------------------#
# #
# partemix related stuff #
# #
#------------------------------------------------------------#
# Create some directories expected by the application.
# The root directory of the FITS files location (readonly). It'll have to be bound to an host directory.
RUN mkdir -p /home/partemix/dataroot/FITS
# The root directory of the PNG files (read/write). It'll have to be bound to an host directory.
RUN mkdir -p /home/partemix/dataroot/PNG
# The directory for log files (read/write). It'll have to be bound to an host directory.
RUN mkdir /home/partemix/log
#------------------------------------------------------------#
# #
# yafitss related stuff #
# #
#------------------------------------------------------------#
# The directory where the python FITS files server will reside.
RUN mkdir -p /home/partemix/yafitss
# Put the application files and module requirements in place.
COPY ./yafitss/serverWsgi.michel.py /home/partemix/yafitss
COPY ./yafitss/dataManager_michel.py /home/partemix/yafitss
COPY ./yafitss/requirements.txt /home/partemix/yafitss
# python modules required by yafitss have to be installed
RUN pip install -r /home/partemix/yafitss/requirements.txt
# ./yafitss/serverWsgi.michel will be listening at 4250
EXPOSE 4250
This diff is collapsed.
bottle
matplotlib
pillow
pypng
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment