Skip to content

Commit

Permalink
tune logging in the container (#32)
Browse files Browse the repository at this point in the history
tune logging in the container

Reviewed-by: None <None>
Reviewed-by: OpenTelekomCloud Bot <None>
gtema authored Jul 20, 2021

Verified

This commit was signed with the committer’s verified signature.
dchassin David P. Chassin
1 parent 49b390c commit cd193a5
Showing 4 changed files with 17 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -2,3 +2,7 @@
.stestr
octavia_proxy.egg-info
.eggs
.zuul.yaml
doc
build
releasenotes
15 changes: 10 additions & 5 deletions .zuul.yaml
Original file line number Diff line number Diff line change
@@ -5,29 +5,34 @@
Execute tests with latest dependencies
required-projects:
- name: opentelekomcloud/python-otcextensions
override-checkout: elb
override-checkout: master

- job:
name: octavia-proxy-build-image
parent: build-docker-image
description: Build octavia-proxy container image
timeout: 2700 # 45 minutes
provides: octavia-proxy-container-image
required-projects:
- name: opentelekomcloud/python-otcextensions
override-checkout: master
vars: &octavia-proxy_image_vars
zuul_work_dir: "{{ zuul.projects['github.com/opentelekomcloud-infra/octavia-proxy'].src_dir }}"
docker_images:
- context: .
repository: opentelekomcloud/octavia-proxy
tags:
# If zuul.tag is defined: [ '3', '3.19', '3.19.0' ]. Only works for 3-component tags.
# Otherwise: ['latest']
&imagetag "{{ zuul.tag is defined | ternary([zuul.get('tag', '').split('.')[0], '.'.join(zuul.get('tag', '').split('.')[:2]), zuul.get('tag', '')], ['latest']) }}"
siblings:
- opentelekomcloud/python-otcextensions
siblings:
- github.com/opentelekomcloud/python-otcextensions

- job:
name: octavia-proxy-upload-image
parent: otcinfra-upload-image-quay
provides: octavia-proxy-container-image
required-projects:
- name: opentelekomcloud/python-otcextensions
override-checkout: master
vars: *octavia-proxy_image_vars

- project:
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
FROM docker.io/opendevorg/python-builder:3.9 as builder
ENV DEBIAN_FRONTEND=noninteractive

ARG ZUUL_SIBLINGS=""
COPY . /tmp/src
RUN echo "gunicorn" >> /tmp/src/requirements.txt
RUN assemble
@@ -33,6 +34,6 @@ RUN /output/install-from-bindep \
VOLUME /var/lib/octavia_proxy

USER 10001
EXPOSE 9876
CMD ["gunicorn", "-b 0.0.0.0:9876", \
"--access-logfile", "-", \
"octavia_proxy.api.app:setup_app(argv=[])"]
1 change: 1 addition & 0 deletions etc/octavia_proxy.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[DEFAULT]
# Print debugging output (set logging level to DEBUG instead of default WARNING level).
# debug = False
log_level = INFO

# Plugin options are hot_plug_plugin (Hot-pluggable controller plugin)
# octavia_plugins = hot_plug_plugin

0 comments on commit cd193a5

Please sign in to comment.