-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
554 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
FROM centos:6 | ||
|
||
MAINTAINER APEL Administrator <[email protected]> | ||
|
||
# Add EPEL repo so we can get pip | ||
RUN rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | ||
|
||
# Add IGTF trust repo, so it can be installed | ||
RUN touch /etc/yum.repos.d/EGI-trustanchors.repo | ||
RUN echo -e $'# EGI Software Repository - REPO META (releaseId,repositoryId,repofileId) - (10824,-,2000)\n\ | ||
[EGI-trustanchors]\n\ | ||
name=EGI-trustanchors\n\ | ||
baseurl=http://repository.egi.eu/sw/production/cas/1/current/\n\ | ||
enabled=1\n\ | ||
gpgcheck=1\n\ | ||
gpgkey=http://repository.egi.eu/sw/production/cas/1/GPG-KEY-EUGridPMA-RPM-3' >> /etc/yum.repos.d/EGI-trustanchors.repo | ||
|
||
# Install python tools | ||
# Install mysql | ||
# Install apache | ||
# Install cron | ||
# Install at (for scheduling the IGTF update after start up) | ||
# Install IGTF trust bundle | ||
# Install fetch-crl | ||
RUN yum -y install python-pip python-devel mysql mysql-devel gcc httpd httpd-devel mod_wsgi mod_ssl cronie at ca-policy-egi-core fetch-crl | ||
|
||
# Copy APEL REST files to apache root | ||
COPY . /var/www/html/ | ||
|
||
# Set the work diirectory to /var/www/html | ||
WORKDIR /var/www/html | ||
|
||
# Install APEL REST requirements | ||
RUN pip install -r requirements.txt | ||
|
||
# Copy APEL REST conf files to apache conf | ||
RUN cp conf/apel_rest_api.conf /etc/httpd/conf.d/apel_rest_api.conf | ||
|
||
# Copy SSL conf files to apache conf | ||
RUN cp conf/ssl.conf /etc/httpd/conf.d/ssl.conf | ||
|
||
# Make a directory for the certificates | ||
RUN mkdir /etc/httpd/ssl/ | ||
|
||
# Make apel config dir for db configs | ||
RUN mkdir /etc/apel | ||
|
||
# Make cloud spool dir | ||
RUN mkdir -p /var/spool/apel/cloud/ | ||
|
||
# Make cloud spool dir owned by apache | ||
RUN chown apache -R /var/spool/apel/cloud/ | ||
|
||
# Generate static files | ||
RUN echo "yes" | python manage.py collectstatic | ||
|
||
# Expose apache and SSL ports | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
ENTRYPOINT docker/run_on_entry.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
@author Greg Corbett | ||
""" | ||
__version__ = '1, 3, 0' | ||
__version__ = '1, 4, 0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
@author Greg Corbett | ||
""" | ||
__version__ = '1, 3, 0' | ||
__version__ = '1, 4, 0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1 @@ | ||
""" | ||
Copyright (C) 2016 STFC. | ||
Licensed 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. | ||
@author Greg Corbett | ||
""" | ||
__version__ = '1, 3, 0' | ||
"""This file allows test to be imported as a python package.""" |
Oops, something went wrong.