Skip to content

Commit a8a67bf

Browse files
committed
Update updater to use ditto v0.5.0
1 parent 5dda3b8 commit a8a67bf

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.venv/
12
_dist/
23
_functions/
34
node_modules/

requirements.txt

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
certifi==2018.8.24
22
chardet==3.0.4
3-
click==6.7
4-
Flask==1.0.2
5-
Flask-Cors==3.0.6
63
genson==1.0.1
7-
gevent==1.3.6
8-
greenlet==0.4.15
94
idna==2.7
10-
itsdangerous==0.24
11-
Jinja2==2.10
12-
MarkupSafe==1.0
13-
pokeapi-ditto==0.3.1
5+
multidict==4.4.2
6+
odictliteral==1.0.0
7+
pokeapi-ditto==0.5.0
148
requests==2.19.1
15-
six==1.11.0
169
tqdm==4.26.0
1710
urllib3==1.23
18-
Werkzeug==0.14.1
11+
yarl==1.2.6

updater/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Since this container runs Docker within itself, it needs to run in privileged mo
1212
docker run --privileged -v ~/.ssh:/root/.ssh -e [email protected] quay.io/pokeapi/updater
1313
```
1414

15+
Check the log for failed clones; sometimes Magikarp times out.
16+
1517
**Note:** Due to lack of support for file permissions, this does not work on Docker for Windows.
1618

1719
## Environment Variables

updater/cmd.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ git checkout "$BRANCH_NAME"
3838
pip install -r requirements.txt
3939
rm -r ./data
4040
ditto clone --src-url http://localhost/ --dest-dir ./data
41-
ditto analyze --api-dir ./data/api --schema-dir ./data/schema
41+
# (╯°□°)╯ *always* assume magikarp failed and grab it again #clowntown
42+
ditto clone --src-url http://localhost/ --dest-dir ./data pokemon/129
43+
ditto analyze --data-dir ./data
4244

4345
# commit and push
4446
git add data

0 commit comments

Comments
 (0)