Skip to content

Commit 520c2c6

Browse files
committed
Fix up logging in the docker image
1 parent 49c2598 commit 520c2c6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ RUN groupadd --gid $APP_GID $APP_GROUP && \
4444
--uid $APP_UID \
4545
$APP_USER
4646

47+
# Don't buffer stdout and stderr as it breaks realtime logging
48+
ENV PYTHONUNBUFFERED=1
49+
4750
USER $APP_UID
4851
ENTRYPOINT ["tini", "--"]
4952
CMD ["os_capacity"]

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Or just run via docker or similar:::
4646
docker run -d --name os_capacity \
4747
--mount type=bind,source=/etc/kolla/os-capacity/,target=/etc/openstack \
4848
--env OS_CLOUD=openstack --env OS_CLIENT_CONFIG_FILE=/etc/openstack/clouds.yaml \
49-
-p 9000:9000 ghcr.io/stackhpc/os-capacity:e08ecb8
49+
-p 9000:9000 ghcr.io/stackhpc/os-capacity:master
5050
curl localhost:9000
5151

5252

0 commit comments

Comments
 (0)