Archive Entry

Undraw Environment

Archive Entry

About

An archive entry is a file in an archive.

Howto

Specification

Manifest

You can define an archive entry with a manifest.

It is an executable that returns any resource file from:

It follows the following format:

kind: archive-entry
spec:
  # The data uri of the archive
  data-uri: https://downloads.mysql.com/docs/world-db.tar.gz
  data-def:
    # The path of the file in the archive
    entry-path: world-db/world.sql


where:

Data Uri

The archive entry manifest is an executable that returns any resource file

The data uri is therefore a runtime data uri.

(name--archive-entry.yml@executableConnection)@executionConnection

where:

  • name–archive-entry.yml is the path of the archive entry manifest from the executableConnection directory
  • executableConnection is a file connection
  • executionConnection is a file connection where the entry is extracted

Columns

When reporting on an archive, the records contains the following archive entry columns (ie property):

  • path: the path
  • media_type: the media type
  • size: the size
  • update-time: the last modified time

Path

The path of an file entry

Media Type

The media type of an entry is:

  • a directory for a directory
  • otherwise it's derived from its path

Size

The size reporting may be not reported. It depends on the archive format.

Format Support
zip No (-1)
tar Yes
tar.gz Yes



Related HowTo
Undraw Environment
How to define an archive entry as data resource?

This howto will show you how to define an entry in an archive as data resource. In the world-db.tar.gz archive of the MySQL...
Undraw Environment
How to install the World MySQL Sample Schema

This howto will show you how to install the world sample schema of MySQL. The installation is done with the sql script world.sql This script is idempotent...

Task Runner