#9441 RFR: fedora-packages-static
Opened 3 months ago by mymindstorm. Modified 15 days ago

Description

fedora-packages-static is a simpler, statically generated version of the old Fedora Packages app.

How it works

packages-static is a collection of Python scripts that pulls repository metadata and compiles that into statically generated HTML files. It has a Docker container that runs packages-static every week and serves files via nginx. Because of this approach, packages search is handled by an external service such as Apache Solr or elasticsearch.

Example

Currently, I have a prototype container with searching handled by Solr and search results returned by a small uwsgi script.

Is it possible to have one pod secure a write mount to a volume and have multiple read-only mounts for load-balancing? I've looked at the openshift docs and it seems impossible.

Benefit to Fedora

  • Provides current and prospective users easy access to package information
  • Some users have noticed that old packages went down
  • Having Solr provides the framework for in-house docs.fp.o search, which is wanted by #6750

RFR Template

Phase I:

  • Software: fedora-packages-static and Apache Solr
  • Advantage for Fedora: See above
  • Sponsor:

Phase II:

Phase III:

  • SOP link:
  • Application Security Policy self-evaluation:
  • Audit request:
  • Audit timeline:

Phase IV:

  • Ansible playbooks:
  • Fully rebuilt from ansible:
  • Production goal:
  • Approved audit:

Metadata Update from @smooge:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: medium-gain, medium-trouble, ops

3 months ago

I am kind of curious on how hard/easy is it to deploy solr in a container/openshift, do you know?

I do not think that it will be hard given that there is an official container and a distributed cloud mode that is well documented.

The only complicated part is the admin UI which looks like it supports authentication with kerberos and openid. It is strongly recommended to put that (and the api) behind a non-public network.

Is it possible to have one pod secure a write mount to a volume and have multiple read-only mounts for load-balancing? I've looked at the openshift docs and it seems impossible.

I not sure if thats possible, RWX (ReadWriteMany) access mode is likely needed, which we can provide with NFS backed storage.

Looking at examples roles and playbook at:

and

Do you think you could open a PR against the ansible repo with what is needed for this project?

I not sure if thats possible, RWX (ReadWriteMany) access mode is likely needed, which we can provide with NFS backed storage.

Thanks, I mostly just want this to have one pod control writing and have the rest just serve from it instead of having different copies per-instance. If this is a bad idea/too complicated, I can just keep it how it is now.

Do you think you could open a PR against the ansible repo with what is needed for this project?

Yes, I'll make a PR as soon as I have the time.

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Backlog