Commit 34bce83b authored by 吴升宇's avatar 吴升宇

fix docker

parent efc65957
Pipeline #990 passed with stage
......@@ -12,6 +12,8 @@ ADD ./sources.list /etc/apt/sources.list
WORKDIR /srv/apps/physical/
ENV GM_RPCD_DEPLOY_CONF_PATH="/srv/apps/physical/app_conf.xml"
RUN chmod -R 600 /root/.ssh/id_rsa \
&& echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config \
&& mkdir -p /data/log/physical/app
......
......@@ -23,6 +23,12 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/bin/bash", "-c", "gunicorn gm_rpcd.wsgi:application\
--workers=8 --worker-class=gevent --worker-connections=1024\
--bind=0.0.0.0:80 --chdir /srv/apps/physical/ --timeout 600\
--log-level=debug--error-logfile=/data/log/physical/app/gunicorn_error.log\
--access-logfile=/data/log/physical/app/gunicorn_access.log"]
command: ["sleep", "10000"]
ports:
- name: http
containerPort: 80
......
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