Skip to content

Commit

Permalink
Merge pull request #225 from gongweibao/review
Browse files Browse the repository at this point in the history
Fix bugs
  • Loading branch information
gongweibao committed Jul 18, 2017
2 parents 826df41 + f5c3314 commit 5e70a76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions k8s/cloud_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
containers:
- name: paddle-cloud
imagePullPolicy: Always
image: typhoon1986/paddlecloud
image: paddlepaddle/cloud
volumeMounts:
- name: cert-volume
mountPath: /certs
Expand All @@ -61,7 +61,7 @@ spec:
fieldRef:
fieldPath: status.podIP
- name: PORT
value: 8000
value: "8000"
# livenessProbe:
# httpGet:
# path: /healthz/
Expand All @@ -79,5 +79,7 @@ spec:
env:
- name: MYSQL_ROOT_PASSWORD
value: root
- name: MYSQL_DATABASE
value: paddlecloud
nodeSelector:
kubernetes.io/hostname: k8s-node1
3 changes: 2 additions & 1 deletion paddlecloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ npm run copy:fonts && npm run copy:images && npm run copy:fonts && npm run copy:
npm run optimize
WORKDIR /pcloud

CMD ["sh", "-c", "./manage.py migrate; ./manage.py loaddata sites; ./manage.py runserver 0.0.0.0:$PORT"]
# TODO
CMD ["sh", "-c", "sleep 60 ; ./manage.py migrate; ./manage.py loaddata sites; ./manage.py runserver 0.0.0.0:$PORT"]

0 comments on commit 5e70a76

Please sign in to comment.