Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 313ceeb

Browse files
committed
add fixture on boot and delete unneeded success for non string return command
1 parent a264a8f commit 313ceeb

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

docker/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM victorbalssa/tflearn-nltk:latest
22
MAINTAINER victorbalssa <[email protected]>
33

4-
#RUN apt-get update \
5-
# && apt-get dist-upgrade
4+
RUN apt-get update -y \
5+
&& apt-get dist-upgrade -y
66
ADD ./requirements.txt /bot/requirements.txt
77
WORKDIR /bot
88
RUN pip install -r requirements.txt
9+
# fixture mongo (dev)
910
EXPOSE 5000
10-
CMD /usr/bin/python2.7 api.py
11+
CMD /usr/bin/python2.7 fixture.py && /usr/bin/python2.7 api.py
1112
#CMD tail -f /dev/null

fixtures/config.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"config": [
3+
{
4+
"url": "",
5+
"name": "open_shutter",
6+
"type": "api",
7+
"success": "Shutters are open !",
8+
"error": "hum, can't switch on kitchen light, maybe error config ?"
9+
},
10+
{
11+
"url": "",
12+
"name": "close_shutter",
13+
"type": "api",
14+
"success": "Shutters are close !",
15+
"error": "hum, can't switch on light, maybe error config ?"
16+
},
17+
{
18+
"url": "http://localhost/api/test",
19+
"name": "stop_shutter",
20+
"type": "api",
21+
"success": "Shutter are stop",
22+
"error": "hum, can't switch on light, maybe error config ?"
23+
},
24+
{
25+
"url": "http://localhost/api/test",
26+
"name": "camera_photo",
27+
"type": "api",
28+
"error": "hum, can't take photo ! try again later"
29+
}
30+
]
31+
}

0 commit comments

Comments
 (0)