Project

Profile

Help

Story #4180

As a user, Pulp will serve Pulp's static content natively without extra configuration

Added by bmbouter 11 months ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 47

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/


Checklist

Associated revisions

Revision aa79d05c View on GitHub
Added by dkliban@redhat.com 9 months ago

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

Revision aa79d05c View on GitHub
Added by dkliban@redhat.com 9 months ago

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

Revision f9dfe969 View on GitHub
Added by dkliban@redhat.com 9 months ago

Adds 'collectstatic' task to the configuration of Pulp

re #4180
https://pulp.plan.io/issues/4180

Revision d0af336f View on GitHub
Added by bmbouter 9 months ago

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.

https://pulp.plan.io/issues/4180
closes #4180

Revision d0af336f View on GitHub
Added by bmbouter 9 months ago

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.

https://pulp.plan.io/issues/4180
closes #4180

History

#1 Updated by bmbouter 10 months 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 10 months 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 10 months ago

  • Sprint set to Sprint 47

#4 Updated by dkliban@redhat.com 9 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com

#5 Updated by dkliban@redhat.com 9 months ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 0 to 100

#7 Updated by dkliban@redhat.com 9 months 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 9 months ago

  • Status changed from POST to MODIFIED

#9 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#10 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3, Pulp 3 RC Blocker)

Please register to edit this issue

Also available in: Atom PDF