Commit 801b14f4 authored by zhongshangwu's avatar zhongshangwu

修复Dockerfile

parent 10635e06
......@@ -24,4 +24,4 @@ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 \
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
CMD bash -c 'source ~/.bashrc && celery -A physical worker -Q tapir-alpha --loglevel=DEBUG --maxtasksperchild 500 -c 62'
CMD bash -c 'source ~/.bashrc && gunicorn saturn.wsgi:application -w 16 -b 0.0.0.0:80 -k gevent'
This diff is collapsed.
apiVersion: v1
kind: Service
metadata:
name: saturn
spec:
ports:
- name: tcp-80-80
port: 80
protocol: TCP
targetPort: 80
selector:
release: saturn
type: ClusterIP
# service
---
# deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: deploy
release: saturn
name: saturn-deploy
spec:
replicas: 1
selector:
matchLabels:
app: deploy
release: saturn
template:
metadata:
labels:
app: deploy
release: saturn
spec:
containers:
- image: ccr.ccs.tencentyun.com/gm-ai/saturn-test
imagePullPolicy: Always
name: deploy
ports:
- containerPort: 80
name: http
protocol: TCP
volumeMounts:
- mountPath: /data/log/saturn/app
name: log
- mountPath: /etc/gm-config/storage/static.dir/gm_logging.dir/
name: logging-global
- mountPath: /etc/gm-config/storage/static.dir/helios.dir/
name: helios-global
- mountPath: /etc/gm-config/storage/static.dir/gm_mq.dir/
name: mq-global
- mountPath: /etc/gm-config/storage/static.dir/dev_env.dir/
name: dev-env-global
- mountPath: /etc/gm-config/storage/static.dir/gm_shield.dir/
name: shield-global
- mountPath: /srv/apps/saturn/settings/settings_local.py
name: saturn-settings-local
readOnly: true
subPath: settings_local.py
- mountPath: /srv/apps/saturn/app_conf.xml
name: saturn-app-conf
subPath: app_conf.xml
imagePullSecrets:
- name: gm-secret
volumes:
- hostPath:
path: /data/log/saturn/app
type: ""
name: log
- configMap:
defaultMode: 420
items:
- key: global_important_sentry.json
path: global_important_sentry.json
- key: kafka.json
path: kafka.json
name: logging-global
name: logging-global
- configMap:
defaultMode: 420
items:
- key: static_route_table.json
path: static_route_table.json
name: helios-global
name: helios-global
- configMap:
defaultMode: 420
items:
- key: celery.json
path: celery.json
name: mq-global
name: mq-global
- configMap:
defaultMode: 420
items:
- key: resource.json
path: resource.json
name: dev-env-global
name: dev-env-global
- configMap:
defaultMode: 420
items:
- key: shield.json
path: shield.json
name: shield-global
name: shield-global
- configMap:
defaultMode: 420
items:
- key: settings_local.py
path: settings_local.py
name: saturn-settings-local
name: saturn-settings-local
- configMap:
defaultMode: 420
items:
- key: app_conf.xml
path: app_conf.xml
name: saturn-app-conf
name: saturn-app-conf
---
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment