forked from pacifica/pacifica-archiveinterface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.hpss
22 lines (21 loc) · 794 Bytes
/
Dockerfile.hpss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from centos:centos6
RUN yum -y update && \
yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && \
yum -y install MySQL-python && \
yum -y install python-wsgi python-pip wget curl unzip gcc glibc-devel python-devel python-argparse && \
wget -O /srv/foo.zip 'https://www.example.com/hpss-client-7.4.1p2.zip' && \
cd /srv && \
unzip foo.zip && \
yum -y localinstall hpss-client-7.4.1p2-1.el6.x86_64.rpm hpss-client-devel-7.4.1p2-1.el6.x86_64.rpm && \
yum -y clean all
RUN mkdir /app
COPY . /app
RUN chmod +x /app/runit.sh
WORKDIR /app
RUN python ./setup.py install
ENV PACIFICA_AAPI_BACKEND_TYPE hpss
ENV PACIFICA_AAPI_ADDRESS 0.0.0.0
ENV PACIFICA_AAPI_PORT 8080
ENV PACIFICA_AAPI_PREFIX /srv
EXPOSE 8080
CMD '/app/runit.sh'