Skip to content

Commit

Permalink
Fix up logging in the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGarbutt committed Nov 5, 2024
1 parent 49c2598 commit 520c2c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ RUN groupadd --gid $APP_GID $APP_GROUP && \
--uid $APP_UID \
$APP_USER

# Don't buffer stdout and stderr as it breaks realtime logging
ENV PYTHONUNBUFFERED=1

USER $APP_UID
ENTRYPOINT ["tini", "--"]
CMD ["os_capacity"]
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Or just run via docker or similar:::
docker run -d --name os_capacity \
--mount type=bind,source=/etc/kolla/os-capacity/,target=/etc/openstack \
--env OS_CLOUD=openstack --env OS_CLIENT_CONFIG_FILE=/etc/openstack/clouds.yaml \
-p 9000:9000 ghcr.io/stackhpc/os-capacity:e08ecb8
-p 9000:9000 ghcr.io/stackhpc/os-capacity:master
curl localhost:9000


Expand Down

0 comments on commit 520c2c6

Please sign in to comment.