Project

Profile

Help

Story #5086

closed

As an user, I have an exporter that I can ship it on a disc or on a "dumb" webserver

Added by fachleitner over 5 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 61
Quarter:

Description

Problem

To allow offline update or installation, as well as "cheap" hosting on a "dumb" http file server, export of pulp content
is required. Pulp2 has this in the manual https://docs.pulpproject.org/en/2.18/plugins/pulp_rpm/user-guide/recipes.html#export-repositories-and-repository-groups

Design

In Pulp3 an 'exporter' can send content out of a Pulp system. An exporter named FileSystemExporter should be created that accepts a full path to a file system it should export content. FileSystemExporter should be a base abstract class that contains the logic to export a set of content to a file system location. If the content is on the filesystem, it will use hardlinks. Otherwise (eg using S3) it will write the file to the filesystem.

The base FileSystemExporter should be extended in core by two Master classes, FileSystemRepoExporter and FileSystemPublicationExporter. The FileSystemRepoExporter takes either a 'repository' or 'repository_version' but not both. If 'repository' it will export the latest repository_version. The FileSystemPublicationExporter takes a publication and exports it.

A plugin can extend and define a Detail class for one of these two Master classes in order to export its content.

note Explore the possibility to export from multiple repos

On Demand Content

This feature does not work for on-demand content because the content must be present locally for Pulp to write it to a filesystem.


Related issues

Related to Pulp - Story #5559: As a plugin writer, I cannot export my Publication to POSIX filesystemsCLOSED - CURRENTRELEASEdaviddavis

Actions

Also available in: Atom PDF