Sign inSign up

placr/adi-unzip

By placr

•Updated over 8 years ago

Docker that unpacks zip files with an ADI.XML file, renames it and copies them to a target folder.

Image
0

4.9K

placr/adi-unzip repository overview

⁠Usage

Docker that unpacks zip files containing both an ADI.XML file and zero, one or more content files (video, audio) and places them in a target folder. The zip files shall have the following structure:

1317__SONY1151880760418771__2014-12-09T09-47-29__2.zip

The unzipped ADI file gets the secondary part of the name, in the above example: SONY1151880760418771.xml

The script implements rudimentary DELETE functionality as well by simply deleting any existing target ADI file when a DELETE verb is provided.

When an error occurs during the unzip and processing the zip file is not handled and put in the failed folder.

Example:

First start an SFTP server:

docker run -d --name sftp -e PUB_KEY1="sldkfj..lskdfj" visity/sftp

then link this container to the sftp server:

docker run -d --name adi_unzip --link sftp --volumes-from sftp placr/adi-unzip

Any zip file dropped in the ToLoad folder will be processed.

All XML files that have been successfully extracted are collected in a single folder inside the docker '/var/cisdata' folder. This may be mapped to the host or used in another container.

Tag summary

Content type

Image

Digest

sha256:a9f51a74d…

Size

257.8 MB

Last updated

over 8 years ago

docker pull placr/adi-unzip