Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tune logging in the container #32

Merged
merged 1 commit into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down