Skip to content

Commit 1acaab9

Browse files
committed
Python files (but service.py) are now in a separated folder
1 parent 7a74614 commit 1acaab9

21 files changed

+335
-266
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ coverage.xml
4646
*.cover
4747
.hypothesis/
4848
.pytest_cache/
49+
tests/
4950

5051
# Translations
5152
*.mo
@@ -65,6 +66,8 @@ instance/
6566

6667
# Sphinx documentation
6768
docs/_build/
69+
docsrc/
70+
.nojekyll
6871

6972
# PyBuilder
7073
target/
@@ -111,3 +114,6 @@ venv.bak/
111114
**/__pycache__
112115
**/.vscode
113116
**/env
117+
118+
# Setup
119+
setup.cfg

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Make sure that you have a model in the main directory.
2020
You can launch the example using the following line in order to create a quick
2121
classification model.
2222
```bash
23-
$ python example/build_linear_binary.py
23+
$ python ./python/example/build_linear_binary.py
2424
```
25-
or one of the scripts in the `example` folder
25+
or one of the scripts in the `python/example` folder
2626

2727
### Configuration
2828

@@ -138,7 +138,8 @@ $ curl -X GET http://localhost:5000/service-info
138138
{
139139
"debug": true,
140140
"running-since": 1563355369.6482198,
141-
"serving-model": "model.joblib",
141+
"serving-model-name": "model.joblib",
142+
"serving-model-type": "SKLEARN_MODEL",
142143
"version-template": "1.4.0"
143144
}
144145
```

docker-compose-production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ version: '3'
22
services:
33
flask-ml:
44
container_name: flask-ml-${VERSION}
5-
build: .
5+
build: ./docker/Dockerfile-production
66
image: flask-ml:${VERSION}
77
env_file:
8-
- variables-production.env
8+
- ./docker/variables-production.env
99
restart: always
1010
ports:
1111
- "${PORT_EXTERNAL}:${PORT}"

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ version: '3'
22
services:
33
flask-ml:
44
container_name: flask-ml-${VERSION}
5-
build: .
5+
build: ./docker/Dockerfile
66
image: flask-ml:${VERSION}
77
env_file:
8-
- variables.env
8+
- ./docker/variables.env
99
restart: always
1010
ports:
1111
- "${PORT_EXTERNAL}:${PORT}"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

python/__init__.py

Whitespace-only changes.

python/example/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)