File tree 6 files changed +25
-6
lines changed
6 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 1
1
[run]
2
2
include =
3
3
*project/*
4
- *pyms/*
5
4
omit =
6
5
venv/*
Original file line number Diff line number Diff line change 1
1
FROM python:3.6.4-alpine3.7
2
2
3
- RUN apk add --update curl gcc g++ git libffi-dev openssl-dev python3-dev \
3
+ RUN apk add --update curl gcc g++ git libffi-dev openssl-dev python3-dev build-base linux-headers \
4
4
&& rm -rf /var/cache/apk/*
5
5
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
6
6
7
7
ENV PYTHONUNBUFFERED=1 ENVIRONMENT=pre APP_HOME=/microservice/
8
- RUN mkdir $APP_HOME && adduser -S -D -H python
8
+ ENV DATABASE_DIR=database
9
+ ENV CONFIGMAP_FILE="$APP_HOME" config-docker.yml
9
10
11
+ RUN mkdir $APP_HOME && adduser -S -D -H python
10
12
RUN chown -R python $APP_HOME
11
13
WORKDIR $APP_HOME
14
+
12
15
ADD requirement*.txt $APP_HOME
16
+ RUN pip install --upgrade pip
13
17
RUN pip install -r requirements-docker.txt
18
+
14
19
ADD . $APP_HOME
20
+ RUN mkdir $DATABASE_DIR
21
+ RUN chmod 777 $DATABASE_DIR
15
22
16
23
EXPOSE 5000
17
24
USER python
Original file line number Diff line number Diff line change
1
+ ms :
2
+ DEBUG : false
3
+ TESTING : false
4
+ APP_NAME : Template
5
+ APPLICATION_ROOT : /template
6
+ SQLALCHEMY_TRACK_MODIFICATIONS : true
7
+ SECRET_KEY : " gjr39dkjn344_!67#"
8
+ DATABASE : db.sqlite3
9
+ SQLALCHEMY_DATABASE_URI : sqlite:////microservice/database/db.sqlite3
Original file line number Diff line number Diff line change 6
6
SQLALCHEMY_TRACK_MODIFICATIONS : true
7
7
SECRET_KEY : " gjr39dkjn344_!67#"
8
8
DATABASE : db.sqlite3
9
- SQLALCHEMY_DATABASE_URI : sqlite:///db.sqlite3
9
+ SQLALCHEMY_DATABASE_URI : sqlite:////microservice/database/ db.sqlite3
Original file line number Diff line number Diff line change 1
1
-r requirements.txt
2
2
gevent==1.3.7
3
3
gunicorn==19.9.0
4
+ psutil==5.4.8
Original file line number Diff line number Diff line change 1
1
Flask-SQLAlchemy == 2.3.2
2
- py-ms == 0.1.1
3
- SQLAlchemy == 1.2.14
2
+ SQLAlchemy == 1.2.14
3
+ Flask-Script == 2.0.6
4
+ # py-ms==0.1.1
5
+ git+https://github.com/python-microservices/pyms.git@master#egg=py-ms
6
+ connexion [swagger-ui ]== 2.0.1
You can’t perform that action at this time.
0 commit comments