Story #4180
As a user, Pulp will serve Pulp's static content natively without extra configuration
100%
Description
This was originally discussed on this mailing list thread:
https://www.redhat.com/archives/pulp-dev/2018-October/msg00034.html
Problem¶
Users have to deploy a webserver and configure it if they want to deploy Pulp with any static media. This is a barrier to usage.
Solution¶
Adopt "whitenoise" as a dependency and have Pulp auto-configured to collect and serve static media with it. The static media can line in a place like: /var/lib/pulp/static/
Associated revisions
Revision aa79d05c
View on GitHub
Problem: static files are not available on user installs
Solution: collect static files before releasing to PyPI
This patch adds the 'whitenoise' middleware that serves static content for Pulp. 'whitenoise' is configured to serve static content found in pulpcore/app/static directory. This means that after installing pulp, the user will need to run the 'pulp-manager collectstatic' command to get all the static content into the directory.
Revision f9dfe969
View on GitHub
Adds 'collectstatic' task to the configuration of Pulp
Revision f9dfe969
View on GitHub
Adds 'collectstatic' task to the configuration of Pulp
Revision d0af336f
View on GitHub
Whitenoise should not write to python dir
When running the whitenoise command it was writing to the python path which it should not be able to do.
Revision d0af336f
View on GitHub
Whitenoise should not write to python dir
When running the whitenoise command it was writing to the python path which it should not be able to do.
History
#1
Updated by bmbouter about 2 years ago
- Tags Pulp 3 RC Blocker added
I think this is an RC blocker. I'm adding the tag so we can review at the next RC blocker checkin.
#2
Updated by dkliban@redhat.com about 2 years ago
- Checklist item add whitenoise as dep in setup.py added
- Checklist item configure whitenoise in settings.py added
- Checklist item remove docs about running 'collect static' added
- Description updated (diff)
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
#3
Updated by bmbouter about 2 years ago
- Sprint set to Sprint 47
#4
Updated by dkliban@redhat.com about 2 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
#5
Updated by dkliban@redhat.com about 2 years ago
- Status changed from ASSIGNED to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|aa79d05c669802e58d75f6bd3340a948ecb9cf93.
#6
Updated by dkliban@redhat.com about 2 years ago
- Status changed from MODIFIED to POST
#7
Updated by dkliban@redhat.com about 2 years ago
- Checklist item add whitenoise as dep in setup.py set to Done
- Checklist item configure whitenoise in settings.py set to Done
- Checklist item remove docs about running 'collect static' set to Done
#8
Updated by bmbouter about 2 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|d0af336f863ab9972cddd267764f8de0c6008090.
#9
Updated by daviddavis almost 2 years ago
- Sprint/Milestone set to 3.0.0
#10
Updated by bmbouter almost 2 years ago
- Tags deleted (
Pulp 3, Pulp 3 RC Blocker)
#11
Updated by bmbouter about 1 year ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Please register to edit this issue
Problem: static files are not available on user installs
Solution: collect static files before releasing to PyPI
This patch adds the 'whitenoise' middleware that serves static content for Pulp. 'whitenoise' is configured to serve static content found in pulpcore/app/static directory. This means that after installing pulp, the user will need to run the 'pulp-manager collectstatic' command to get all the static content into the directory.
closes #4180 https://pulp.plan.io/issues/4180