Skip to content

Commit 17ff2e4

Browse files
committed
update doods
1 parent 3125550 commit 17ff2e4

File tree

8 files changed

+36
-23
lines changed

8 files changed

+36
-23
lines changed

doods/README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@ doods
66
## docker-stack.yaml
77

88
```yaml
9-
version: "3.7"
9+
version: "3.8"
1010

1111
services:
1212

1313
doods:
14-
image: snowzach/doods:rpi
14+
image: snowzach/doods:arm32
1515
ports:
1616
- "8080:8080"
1717
configs:
1818
- source: config.yaml
1919
target: /opt/doods/config.yaml
2020
deploy:
21-
replicas: 3
21+
replicas: 2
22+
placement:
23+
max_replicas_per_node: 1
24+
constraints:
25+
- node.role == worker
2226
restart_policy:
2327
condition: on-failure
2428

@@ -32,17 +36,17 @@ configs:
3236
```
3337
$ docker node ls
3438
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
35-
x1ytchflr5hx8od91d8sospdm * pi1 Ready Active Leader 19.03.5
36-
fa4q2xzyiggqrdp899umsb0bi pi2 Ready Active 19.03.5
37-
qyfzcl94hxeatjj1qk03ip41n pi3 Ready Active 19.03.5
39+
oy7dhxijdatpj8v6zntsin8l0 * pi1 Ready Active Leader 19.03.12
40+
7hkc4r7pr0mjpzxbei2y92voe pi2 Ready Active 19.03.12
41+
rcp67rotibho0qxfdnpqwx71l pi3 Ready Active 19.03.12
3842

3943
$ docker stack deploy -c docker-stack.yml doods
4044
Creating network doods_default
4145
Creating config doods_config.yaml
4246
Creating service doods_doods
4347

4448
$ curl http://127.0.0.1:8080/version
45-
{"version":"v0.1.5-0-g99f5768"}
49+
{"version":"v0.2.2-0-gf87b48e-dirty"}
4650

4751
$ curl http://127.0.0.1:8080/detectors
4852
{
@@ -65,6 +69,8 @@ $ curl http://127.0.0.1:8080/detectors
6569
]
6670
}
6771

72+
$ jq -n --arg data $(base64 -w0 image.jpg) '.detector_name="default" | .detect["*"]=50 | .data=$data' > data.json
73+
6874
$ cat data.json
6975
{
7076
"detector_name": "default",
@@ -74,6 +80,8 @@ $ cat data.json
7480
}
7581
}
7682

83+
$ base64 -w0 image.jpg | http -I http://127.0.0.1:8080/detect detector_name=default detect:='{"*":50}' data=@/dev/stdin
84+
7785
$ curl -X POST -H Content-Type:application/json http://127.0.0.1:8080/detect -d @data.json
7886
{
7987
"detections": [

doods/arm/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
doods:
2-
image: snowzach/doods:rpi
2+
image: snowzach/doods:arm32
33
ports:
44
- "8080:8080"
55
restart: unless-stopped

doods/arm/docker-stack.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
version: "3.7"
1+
version: "3.8"
22

33
services:
44

55
doods:
6-
image: snowzach/doods:rpi
6+
image: snowzach/doods:arm32
77
ports:
88
- "8080:8080"
99
configs:
1010
- source: config.yaml
1111
target: /opt/doods/config.yaml
1212
deploy:
13-
replicas: 3
13+
replicas: 2
14+
placement:
15+
max_replicas_per_node: 1
16+
constraints:
17+
- node.role == worker
1418
restart_policy:
1519
condition: on-failure
1620

doods/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
doods:
2-
image: snowzach/doods
2+
image: snowzach/doods:amd64
33
ports:
44
- "8080:8080"
55
restart: unless-stopped

openmeetings/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.8'
33
services:
44

55
openmeetings:
6-
image: apache/openmeetings:min-5.0.0-M4
6+
image: apache/openmeetings:min-5.0.0
77
ports:
88
- "5080:5080"
99
volumes:

superset/arm/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ FROM arm32v7/debian:buster
66
MAINTAINER EasyPi Software Foundation
77

88
# Configure environment
9-
ENV SUPERSET_VERSION=0.36.0 \
9+
ENV SUPERSET_VERSION=0.37.0 \
1010
SUPERSET_REPO=apache/incubator-superset \
1111
SUPERSET_HOME=/var/lib/superset \
12-
PYTHONPATH=/etc/superset:/home/superset:$PYTHONPATH
12+
PYTHONPATH=/etc/superset:/home/superset:$PYTHONPATH \
13+
LANG=C.UTF-8 \
14+
LC_ALL=C.UTF-8
1315
ENV GUNICORN_BIND=0.0.0.0:8088 \
1416
GUNICORN_LIMIT_REQUEST_FIELD_SIZE=0 \
1517
GUNICORN_LIMIT_REQUEST_LINE=0 \
1618
GUNICORN_TIMEOUT=60 \
17-
GUNICORN_WORKERS=2 \
18-
LANG=C.UTF-8 \
19-
LC_ALL=C.UTF-8
20-
ENV GUNICORN_CMD_ARGS="-w${GUNICORN_WORKERS} -t${GUNICORN_TIMEOUT} -b${GUNICORN_BIND} --limit-request-line=0 --limit-request-field_size=0"
19+
GUNICORN_WORKERS=3 \
20+
GUNICORN_THREADS=4
21+
ENV GUNICORN_CMD_ARGS="--workers ${GUNICORN_WORKERS} --threads ${GUNICORN_THREADS} --timeout ${GUNICORN_TIMEOUT} --bind ${GUNICORN_BIND} --limit-request-line ${GUNICORN_LIMIT_REQUEST_LINE} --limit-request-field_size ${GUNICORN_LIMIT_REQUEST_FIELD_SIZE}"
2122

2223
# Create superset user & install dependencies
2324
RUN set -xe \
@@ -74,7 +75,7 @@ VOLUME /home/superset \
7475
/var/lib/superset
7576
WORKDIR /home/superset
7677

77-
# Deploy application
78+
# Finalize application
7879
EXPOSE 8088
7980
HEALTHCHECK CMD ["curl", "-f", "http://localhost:8088/health"]
8081
CMD ["gunicorn", "superset:app"]

superset/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ services:
2020
restart: unless-stopped
2121

2222
superset:
23-
image: amancevice/superset:0.36.0
23+
image: amancevice/superset:0.37.0
2424
ports:
2525
- "8088:8088"
2626
volumes:
@@ -33,7 +33,7 @@ services:
3333
restart: unless-stopped
3434

3535
worker:
36-
image: amancevice/superset:0.36.0
36+
image: amancevice/superset:0.37.0
3737
command: celery worker
3838
volumes:
3939
- ./data/superset:/etc/superset

superset/systemd/superset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
PYTHONPATH=/home/superset/superset
22
SUPERSET_HOME=/home/superset/superset
3-
GUNICORN_CMD_ARGS="--workers=4 --timeout=60 --bind=0.0.0.0:8088 --limit-request-line=0 --limit-request-field_size=0"
3+
GUNICORN_CMD_ARGS="--workers=4 --threads=4 --timeout=60 --bind=0.0.0.0:8088 --limit-request-line=0 --limit-request-field_size=0"

0 commit comments

Comments
 (0)