Giter Site home page Giter Site logo

minio-sync's Introduction

Prototype Component Repo

This repo is a prototype for what a Deis component's Git repository should look like.

A Deis component is...

  • An isolated piece of functionality (e.g. a microservice)
  • That can be packaged into a container (via docker build)
  • And can be run inside of Kubernetes

Typically, Deis components are written in Go.

Practical Usage

If you want to experiment with creating a new repo using this framework, try something like this:

$ mkdir my_project
$ cd my_project
$ curl -fsSL https://github.com/deis/prototype-repo/archive/master.tar.gz | tar -zxv --strip-components 1

First-Class Kubernetes

Every component must define the appropriate Kubernetes files. Preferably, components should use Replication Controllers over pods, and use Services for autodiscovery.

Labels should be used for versioning components and also for identifying components as part of Deis.

Secrets should be used for storing small bits of shared information, and their contents may be set at startup time.

All Kubernetes definitions should be placed in the manifests/ directory.

The Makefile should have targets that use kubectl to load definitions into Kubernetes.

Dockerfiles are for Running

Source code should be built either outside of Docker or in a special Docker build phase.

A separate Dockerfile should be used for building the image. That Dockerfile should always be placed inside of the rootfs directory, and should manage the final image size appropriately.

(See the Makefile for one possible way of doing a Docker build phase)

RootFS

All files that are to be packaged into the container should be written to the rootfs/ folder.

Extended Testing

Along with unit tests, Deis values functional and integration testing. These tests should go in the _tests folder.

minio-sync's People

Contributors

krancour avatar rimusz avatar technosophos avatar

Watchers

 avatar  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.