-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from marshyski/master
Overhaul
- Loading branch information
Showing
12 changed files
with
93 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
FROM fedora:21 | ||
FROM centos:7 | ||
MAINTAINER Tim Marcinowski <marshyski@gmail.com> | ||
|
||
USER root | ||
|
||
RUN yum -y update | ||
RUN yum install -y epel-release python-pip supervisor gcc nginx createrepo python-setuptools | ||
RUN rm -rf /usr/share/nginx | ||
RUN yum install -y epel-release gcc createrepo python-setuptools python-devel | ||
RUN yum install -y python-pip supervisor | ||
RUN pip install --upgrade pip | ||
ADD ./requirements.txt /tmp/requirements.txt | ||
RUN pip install -r /tmp/requirements.txt | ||
RUN yum remove -y gcc && yum clean all | ||
RUN mkdir -p /opt/repos/pre-release | ||
ADD nginx/nginx.conf /etc/nginx/nginx.conf | ||
ADD nginx/mime.types /etc/nginx/mime.types | ||
ADD yumapi /opt/yumapi | ||
ADD supervisor/yumapi.conf /etc/supervisord.d/yumapi.conf | ||
ADD supervisor/supervisord.conf /etc/supervisord.conf | ||
ADD ./scripts/settings.sh /tmp/settings.sh | ||
RUN /bin/bash /tmp/settings.sh | ||
ADD . /opt/yum-nginx-api | ||
ADD supervisor/yumapi.ini /etc/supervisord.d/yumapi.ini | ||
|
||
EXPOSE 80 | ||
EXPOSE 8888 | ||
|
||
CMD ["supervisord", "-n", "-c", "/etc/supervisord.conf"] |
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,22 @@ | ||
version: "2" | ||
services: | ||
nginx: | ||
image: nginx:latest | ||
volumes: | ||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf | ||
- ./nginx/mime.types:/etc/nginx/mime.types | ||
- /opt/repos:/opt/repos | ||
ports: | ||
- "80:80" | ||
network_mode: host | ||
restart: always | ||
yumapi: | ||
image: finraos/yum-nginx-api:latest | ||
network_mode: host | ||
restart: always | ||
volumes: | ||
- /opt/repos:/opt/repos | ||
ports: | ||
- "8888:8888" | ||
depends_on: | ||
- nginx |
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,5 +1,3 @@ | ||
|
||
|
||
types { | ||
text/html html htm shtml; | ||
text/css css; | ||
|
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
Flask==0.10.1 | ||
Flask-Limiter==0.7.9 | ||
Werkzeug==0.10.4 | ||
gunicorn==19.3.0 | ||
python-magic==0.4.6 | ||
SQLAlchemy==1.0.6 | ||
Flask-Limiter==0.9.3 | ||
Flask==0.11 | ||
PyYAML==3.11 | ||
SQLAlchemy==1.0.13 | ||
Werkzeug==0.11.10 | ||
gunicorn==19.6.0 | ||
psutil==4.2.0 | ||
python-magic==0.4.11 |
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 was deleted.
Oops, something went wrong.
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
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,4 +1,4 @@ | ||
createrepo_workers: | ||
max_content_length: | ||
request_limit: | ||
upload_dir: | ||
upload_dir: /opt/repos/pre-release |
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