Skip to content

Commit cdd7aa4

Browse files
author
lic31
committed
add requirements.txt and change docker file
1 parent a18b933 commit cdd7aa4

File tree

4 files changed

+40
-19
lines changed

4 files changed

+40
-19
lines changed

Dockerfile

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
1-
FROM ctdcto23:5000/java:latest
2-
3-
#===============================================================================
4-
#update system to install python-virtualenv
5-
#check docker image ctdcto23:5000/python
6-
#===============================================================================
7-
RUN apt-get update
8-
RUN apt-get install -fy python-virtualenv
9-
RUN apt-get install -fy python-pip
1+
FROM python:2.7.12
2+
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
103

114
#===============================================================================
125
# Add ucc-data-ingestion artifacts
136
#===============================================================================
147
RUN mkdir -p /prometheus/ucc-data-ingestion
15-
RUN mkdir -p /shared/storage/ucc/testdir_fromucc
16-
ADD . /prometheus/ucc-data-ingestion
17-
RUN chmod a+x /prometheus/docker_run.sh
18-
8+
ADD . /prometheus/ucc-service
9+
RUN cd /prometheus/ucc-service && chmod a+x docker_run.sh && rm -rf env && virtualenv env && source env/bin/activate && pip install -r requirements.txt
1910

2011
#===============================================================================
2112
#mount ssh key and shared storage
2213
#===============================================================================
23-
VOLUME ["/prometheus/keys"]
24-
VOLUME ["/shared/storage/ucc/testdir_fromucc"]
2514

2615
#===============================================================================
2716
# Launch the entrypoint script.
2817
#===============================================================================
29-
#ENTRYPOINT ["/prometheus/docker_run.sh"]
18+
ENTRYPOINT ["/prometheus/ucc-service/docker_run.sh"]

docker_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#! /usr/bin/python
2-
python manage.py
1+
#! /bin/bash
2+
cd /prometheus/ucc-service && source env/bin/activate && python run.py

requirements.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
aniso8601==1.2.0
2+
click==6.6
3+
decorator==4.0.10
4+
dominate==2.2.1
5+
Flask==0.11.1
6+
Flask-Bootstrap==3.3.7.0
7+
Flask-PyMongo==0.4.1
8+
Flask-RESTful==0.3.5
9+
Flask-Script==2.0.5
10+
Flask-SQLAlchemy==2.1
11+
Flask-WTF==0.13.1
12+
itsdangerous==0.24
13+
javaobj-py3==0.2.2
14+
Jinja2==2.8
15+
MarkupSafe==0.23
16+
pbr==1.10.0
17+
psycopg2==2.6.2
18+
pyasn1==0.1.9
19+
pyasn1-modules==0.0.8
20+
pycrypto==2.6.1
21+
pyjks==0.5.1
22+
pymongo==3.3.0
23+
python-dateutil==2.5.3
24+
pytz==2016.7
25+
six==1.10.0
26+
SQLAlchemy==1.1.2
27+
sqlalchemy-migrate==0.10.0
28+
sqlparse==0.2.2
29+
Tempita==0.5.2
30+
twofish==0.3.0
31+
visitor==0.1.3
32+
Werkzeug==0.11.11
33+
WTForms==2.1

run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from app import app
22

3-
43
app.run(host='0.0.0.0', port=8080, debug=True)

0 commit comments

Comments
 (0)