Package installation on a host file system using a container
AssigneeRed Hat, Inc.
InventorsGiuseppe Scrivano, Colin Walters, Daniel Walsh
Life of this patent
Estimating the term…
Abstract
An example method of installing one or more files on a host file system includes extracting, by an operating system, a container image from a container. The container image stores a set of files and provides an indication of a hierarchical structure for the set of files. The method also includes obtaining, by the operating system, a package in accordance with the container image. The package includes the set of files. The method further includes installing the package on the host file system in accordance with the hierarchical structure for the set of files.
Claims20
A method of installing one or more files on a host file system, comprising:
- extracting, by an operating system, a container image from a container, the container image storing a set of files;
- searching the set of files for an export directory, the export directory being a directory structure within the container and indicating a subset of the set of files for exporting to the operating system, and the subset of files being in accordance with a hierarchical structure;
- obtaining, by the operating system, a package including the subset of files in accordance with the export directory and the hierarchical structure;
- and
- installing the package on the host file system in accordance with the hierarchical structure of the export directory.
A system for installing one or more files on a host file system, comprising:
- an extraction module that extracts a container image from a container and searches the container image storing a set of files for an export directory, wherein the export directory is a directory structure within the container and indicates a subset of the set of files for exporting to an operating system, and the subset of files is in accordance with a hierarchical structure;
- and
- a package manager that creates a package including the subset of files in accordance with the export directory and the hierarchical structure and that installs the package on the host file system in accordance with the hierarchical structure for the set of files, wherein the operating system includes the extraction module and the package manager.
A non-transitory machine-readable medium comprising a plurality of machine-readable instructions that when executed by one or more processors is adapted to cause the one or more processors to perform a method comprising:
- extracting, by an operating system, a container image from a container, the container image storing a set of files;
- searching the set of files for an export directory, the export directory being a directory structure within the container and indicating a subset of the set of files for exporting to the operating system, and the subset of files being in accordance with a hierarchical structure;
- obtaining, by the operating system, a package including the subset of files in accordance with the export directory and the hierarchical structure;
- and
- installing the package on a host file system in accordance with the hierarchical structure of the export directory.
Dependencies are inferred from the claim text.