Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat hello.html
- <head>
- <body>
- HELLO WORLD!
- </body>
- </head>
- $ pulp file repository create --name static
- {
- "pulp_href": "/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/",
- "pulp_created": "2024-04-23T12:27:11.349786Z",
- "pulp_last_updated": "2024-04-23T12:27:11.380726Z",
- "versions_href": "/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/versions/",
- "pulp_labels": {},
- "latest_version_href": "/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/versions/0/",
- "name": "static",
- "description": null,
- "retain_repo_versions": null,
- "remote": null,
- "autopublish": false,
- "manifest": "PULP_MANIFEST"
- }
- $ pulp file content upload --repository file:file:static --file ./hello.html --relative-path hello.html
- Started background task /pulp/api/v3/tasks/018f0aee-9bb1-70af-aa21-d31ac9ad3c06/
- .Done.
- {
- "pulp_href": "/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/versions/1/",
- "pulp_created": "2024-04-23T12:29:21.380667Z",
- "pulp_last_updated": "2024-04-23T12:29:21.698089Z",
- "number": 1,
- "repository": "/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/",
- "base_version": null,
- "content_summary": {
- "added": {
- "file.file": {
- "count": 1,
- "href": "/pulp/api/v3/content/file/files/?repository_version_added=/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/versions/1/"
- }
- },
- "removed": {},
- "present": {
- "file.file": {
- "count": 1,
- "href": "/pulp/api/v3/content/file/files/?repository_version=/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/versions/1/"
- }
- }
- }
- }
- $ pulp file publication create --repository static
- Started background task /pulp/api/v3/tasks/018f0aee-eb45-7161-83ed-06075b16e706/
- .Done.
- {
- "pulp_href": "/pulp/api/v3/publications/file/file/018f0aee-eba1-7109-ba74-cd022c129cb7/",
- "pulp_created": "2024-04-23T12:29:41.154808Z",
- "pulp_last_updated": "2024-04-23T12:29:41.908315Z",
- "repository_version": "/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/versions/1/",
- "repository": "/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/",
- "distributions": [],
- "manifest": "PULP_MANIFEST"
- }
- $ pulp file distribution create --name static --repository static --base-path static
- Started background task /pulp/api/v3/tasks/018f0aef-4e8f-79f6-9d38-9fe29d65e028/
- Done.
- {
- "pulp_href": "/pulp/api/v3/distributions/file/file/018f0aef-4f54-7f1a-8918-4103fe1d6349/",
- "pulp_created": "2024-04-23T12:30:06.677718Z",
- "pulp_last_updated": "2024-04-23T12:30:06.677729Z",
- "base_path": "static",
- "base_url": "http://localhost:5001/pulp/content/static/",
- "content_guard": null,
- "hidden": false,
- "pulp_labels": {},
- "name": "static",
- "repository": "/pulp/api/v3/repositories/file/file/018f0aec-a274-7e6c-a41e-f965274dc45c/",
- "publication": null
- }
- $ http GET http://localhost:5001/pulp/content/static/hello.html
- HTTP/1.1 200 OK
- Accept-Ranges: bytes
- Connection: keep-alive
- Content-Length: 59
- Content-Type: text/html
- Date: Tue, 23 Apr 2024 12:30:43 GMT
- Etag: "17c8e88f34e51ccd-3b"
- Last-Modified: Tue, 23 Apr 2024 12:29:20 GMT
- Server: nginx/1.22.1
- <head>
- <body>
- HELLO WORLD!
- </body>
- </head>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement