GithubHelp home page GithubHelp logo

isabella232 / archive-resource Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vmware-archive/archive-resource

0.0 0.0 0.0 126 KB

(deprecated/no longer used) - downloads and extracts an archive (currently tgz) from a uri

License: Apache License 2.0

Go 100.00%

archive-resource's Introduction

Archive Resource

Simply downloads and extracts an archive to the destination.

NOTE: This resource is only intended for use in fly execute (it's how your inputs get uploaded). It won't work in a pipeline because check never yields any valid versions. This is because a download URL is not enough to continuously integrate with something, since the endpoint isn't versioned. You probably want the S3 resource or the GitHub Release resource instead.

Source Configuration

  • uri: Required. The location of the file to download.
  • ca_cert: Optional. The contents of server CA cert.
  • skip_ssl_validation: Optional. Skip SSL validation.

Behavior

check: Not implemented.

As this resource is mainly used for one-off downloads (with Fly), there aren't really any versioning semantics.

in: Download and extract the archive.

Fetches a .tar.gz file from the URL, and extracts it to the destination as it's downloading.

Parameters

None.

out: Not implemented.

Currently there is no output functionality. In principle, this could be configured with a directory to compress and upload to the uri, however this is not currently implemented.

Parameters

None.

Development

Prerequisites

  • golang is required - version 1.9.x is tested; earlier versions may also work.
  • docker is required - version 17.06.x is tested; earlier versions may also work.
  • godep is used for dependency management of the golang packages.

Running the tests

The tests have been embedded with the Dockerfile; ensuring that the testing environment is consistent across any docker enabled platform. When the docker image builds, the test are run inside the docker container, on failure they will stop the build.

Run the tests with the following command:

docker build -t archive-resource .

Contributing

Please make all pull requests to the master branch and ensure tests pass locally.

archive-resource's People

Contributors

jim80net avatar joshzarrabi avatar mariash avatar robdimsdale avatar shinji62 avatar tobocop avatar topherbullock avatar vito avatar xoebus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.