Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
saturn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵磊
saturn
Commits
801b14f4
Commit
801b14f4
authored
Oct 13, 2019
by
zhongshangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复Dockerfile
parent
10635e06
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
124 additions
and
1 deletion
+124
-1
Dockerfile
Dockerfile
+1
-1
deploy.yaml
deploy.yaml
+0
-0
deploy.yaml.temp
deploy.yaml.temp
+123
-0
No files found.
Dockerfile
View file @
801b14f4
...
...
@@ -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
'
deploy.yaml
deleted
100644 → 0
View file @
10635e06
This diff is collapsed.
Click to expand it.
deploy.yaml.temp
0 → 100644
View file @
801b14f4
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment