Code Monkey home page Code Monkey logo

datastager's Introduction

DataStager

A simple application to stage data from and to Kubernetes pods Requires S3 config to be present in the pod, these can be mounted via environment variables. The application uses the AWS S3 SDK for Golang to perform file up and downloads. The details for the configuration can be found here: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html. A custom endpoint can be set with a CLI argument.

Download example

Two objects should be downloaded, both are in the bucket stagingexample with the keys examples/examplefile1.json and example/examplesfile2.json. The data should be uploaded under the key examples. The data is stored in a self deployed s3 object storage with the endpoint s3.example.com.

datastager download -b stagingexample, stagingexample -k example/examplesfile1.json, example/examplesfile2.json -d /home/example/data -e s3.example.com

Upload example

Two objects should be staged, both are in the bucket stagingexample with the keys examples/examplefile1.json and example/examplesfile2.json. The data should be stored in the directory /home/example/data. The data is stored in a self deployed s3 object storage with the endpoint s3.example.com.

datastager upload -e s3.computational.bio.uni-giessen.de -k test/data/1 -b BaktaTest -f /home/marius/Data/SmallTestData/test1.txt,/home/marius/Data/SmallTestData/test2.txt

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.