https://iosdc-cfps.penginmura.tech/
Start containers:
docker-compose up -d
# Hot-reload is enabled on default, so you don't need restart containers in most case.
Setup data via scraper:
./setup-local.sh
./bin/deploy-local-k8s.sh
Note:
This script creates local volume to ./tmp/volume
.
./bin/destroy-local-k8s.sh
Note: All volumes delete too.
please specify a any file to target.py
.
$ pip3 install -r requirements.txt -c constraint.txt
$ pep8 target.py
-
Host of MongoDB
"CFP_MONGO_HOST"
-
Port of MongoDB
"CFP_MONGO_PORT"
- Database name
- before adopting cfps
"iosdc2018_phase_0"
- after adopting cfps
"iosdc2018_phase_1"
- before adopting cfps
- Collection name
"cfps"
- Document scheme
[{ "title": String, "user": String, "talk_type": String, "description": String, "icon_url": String, "twitter_id": String, "detail_url": String, 'talk_date': ISODate, 'talk_site': String, 'is_adopted': Bool }]
-
Create cluster on GKE.
-
Select cluster like below.
gcloud container clusters get-credentials xxxx
-
Run deploy script!
./deploy-gcp.sh
-
Wait to configure external-ip by GCP.
$ ubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.7.240.1 <none> 443/TCP 7m mongo ClusterIP 10.7.251.115 <none> 27017/TCP 10s nginx LoadBalancer 10.7.245.253 <pending> 80:32174/TCP 9s web ClusterIP 10.7.248.23 <none> 8000/TCP 9s
-
Please access to binded external-ip on your browser.
$ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.7.240.1 <none> 443/TCP 9m mongo ClusterIP 10.7.251.115 <none> 27017/TCP 2m nginx LoadBalancer 10.7.245.253 35.200.125.234 80:32174/TCP 1m
./bin/deploy-firebase.sh
Defined api specification in doc/swagger.yaml by OpenAPI.
name | link |
---|---|
vue.js | https://jp.vuejs.org https://www.vuemastery.com |
Bulma | https://bulma.io |
fontawesome | https://fontawesome.com |
mongoDB | https://docs.mongodb.com/manual/ https://utage.headwaters.co.jp/blog/?p=5065 |