Commit 963b46f7 authored by ACCE Deploy's avatar ACCE Deploy
Browse files

Building version 1.0 of ESGF Docker distribution.

parent 5bc44a9c
Loading
Loading
Loading
Loading
+18 −13
Original line number Diff line number Diff line
# ESGF node with CoG web application
# When running a container, must have $ESGF_HOSTNAME ebv set,

FROM esgfhub/esgf-node
FROM esgfhub/esgf-node:1.0

MAINTAINER Luca Cinquini <luca.cinquini@jpl.nasa.gov>

# choose CoG version
ENV COG_TAG=v3.7.0
ENV COG_TAG=v3.8.0

# setup CoG environment
ENV COG_DIR=/usr/local/cog
@@ -17,21 +17,26 @@ ENV COG_INSTALL_DIR=$COG_DIR/cog_install
RUN mkdir -p $COG_INSTALL_DIR
ENV LD_LIBRARY_PATH=/usr/local/lib

# install CoG in virtual environment
# install Python virtual environment
RUN cd $COG_DIR && \
    virtualenv venv && \
    source $COG_DIR/venv/bin/activate && \
    git  clone https://github.com/EarthSystemCoG/COG cog_install
    virtualenv venv

# checkout specific tag or branch
RUN cd $COG_INSTALL_DIR && \
# download CoG specific tag or branch
RUN cd $COG_DIR && \
    git clone https://github.com/EarthSystemCoG/COG cog_install && \
    cd cog_install && \
    git checkout -b devel origin/devel
    #git checkout $COG_TAG

# install CoG dependencies
RUN cd $COG_INSTALL_DIR && \
    source $COG_DIR/venv/bin/activate && \
    python setup.py -q install
    pip install -r requirements.txt

# setup CoG database and configuration
RUN cd $COG_INSTALL_DIR && \
    source $COG_DIR/venv/bin/activate && \
    python setup.py install

# manually install additional dependencies
RUN cd $COG_DIR && \
@@ -48,12 +53,12 @@ RUN cd $COG_DIR && \
    git pull && \
    cd mkproxy && \
    make  && \
    cp mkproxy $COG_DIR/venv/lib/python2.7/site-packages/globusonline_transfer_api_client-0.10.18-py2.7.egg/globusonline/transfer/api_client/x509_proxy/.
    cp mkproxy $COG_DIR/venv/lib/python2.7/site-packages/globusonline/transfer/api_client/x509_proxy/.

# for some unknown reason, must reinstall captcha
RUN source $COG_DIR/venv/bin/activate && \
    pip uninstall -y django-simple-captcha && \
    pip install django-simple-captcha==0.5.1
#RUN source $COG_DIR/venv/bin/activate && \
#    pip uninstall -y django-simple-captcha && \
#    pip install django-simple-captcha==0.5.1

# expose default django port
EXPOSE 8000
+4 −4
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
# o TDS customized with ESGF access control filters
# o ORP

FROM esgfhub/esgf-tomcat
FROM esgfhub/esgf-tomcat:1.0

MAINTAINER Luca Cinquini <luca.cinquini@jpl.nasa.gov>

@@ -11,9 +11,9 @@ ARG ESGF_REPO=http://distrib-coffee.ipsl.jussieu.fr/pub/esgf

# ESGF ORP
RUN mkdir -p /usr/local/tomcat/webapps/esg-orp
# FIXME
COPY esgf-orp/esg-orp.war /usr/local/tomcat/webapps/esg-orp/esg-orp.war
#ADD $ESGF_REPO/dist/devel/esg-orp/esg-orp.war /usr/local/tomcat/webapps/esg-orp/

#COPY esgf-orp/esg-orp.war /usr/local/tomcat/webapps/esg-orp/esg-orp.war
ADD $ESGF_REPO/dist/devel/esg-orp/esg-orp.war /usr/local/tomcat/webapps/esg-orp/
RUN cd /usr/local/tomcat/webapps/esg-orp && \
    jar xvf esg-orp.war && \
    rm esg-orp.war
+4 −2
Original line number Diff line number Diff line
# ESGF node with Apache httpd and mod_wsgi

FROM esgfhub/esgf-node
FROM esgfhub/esgf-node:1.0

MAINTAINER Luca Cinquini <luca.cinquini@jpl.nasa.gov>

# install latest apache httpd
RUN yum install -y httpd httpd-devel mod_ssl
RUN yum -y update \
    && yum install -y httpd httpd-devel mod_ssl \
    && yum clean all

# install mod_wsgi
RUN cd /tmp
+4 −3
Original line number Diff line number Diff line
# ESGF Identity Provider node
# Implemented as Java web servlet application running inside Tomcat container.

FROM esgfhub/esgf-tomcat
FROM esgfhub/esgf-tomcat:1.0

MAINTAINER Luca Cinquini <luca.cinquini@jpl.nasa.gov>

# ESGF esg-idp web application
ARG ESGF_REPO=http://distrib-coffee.ipsl.jussieu.fr/pub/esgf

# FIXME
#ADD $ESGF_REPO/dist/devel/esgf-idp/esgf-idp.war /usr/local/tomcat/webapps/
COPY esgf-idp.war /usr/local/tomcat/webapps
ADD $ESGF_REPO/dist/devel/esgf-idp/esgf-idp.war /usr/local/tomcat/webapps/
#COPY esgf-idp.war /usr/local/tomcat/webapps

ENTRYPOINT ["/usr/local/tomcat/bin/catalina.sh", "run"]
+1 −1
Original line number Diff line number Diff line
# ESGF index node:  esgf-search application running inside Tomcat

FROM esgfhub/esgf-tomcat
FROM esgfhub/esgf-tomcat:1.0

MAINTAINER Luca Cinquini <luca.cinquini@jpl.nasa.gov>

Loading