Issue #6768
closedwhitenoise expects /var/lib/pulp/assets on single container
Description
127.0.0.1 - - [19/May/2020:14:43:28 +0000] "GET /pulp/api/v3/status/ HTTP/1.0" 200 1033 "-" "ansible-httpget" /usr/local/lib/python3.7/site-packages/whitenoise/base.py:116: UserWarning: No directory at: /var/lib/pulp/assets/ warnings.warn(u"No directory at: {}".format(root))
whitenoise uses STATIC_URL and STATIC_ROOT from pulpcore: https://github.com/pulp/pulpcore/blob/master/pulpcore/app/settings.py#L31-L37
Updated by fao89 over 4 years ago
- Subject changed from whitenoise expects var/lib/pulp/assets on single container to whitenoise expects /var/lib/pulp/assets on single container
Updated by fao89 over 4 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 73
Updated by dkliban@redhat.com over 4 years ago
We need to run 'collectstatic' when the container is starting up. Need to add an extra stanza here[0].
foreground { redirfd -w 1 /dev/null redirfd -w 2 /dev/null export DJANGO_SETTINGS_MODULE pulpcore.app.settings export PULP_CONTENT_ORIGIN localhost /usr/local/bin/django-admin collectstatic }
[0] https://github.com/pulp/pulp-oci-images/blob/master/assets/postgres.prep#L108
Updated by fao89 over 4 years ago
- Status changed from ASSIGNED to POST
Updated by daviddavis over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE