deis/prototype-repo

Name: prototype-repo

Owner: Deis

Description: Prototype repository for a Deis v2 component

Created: 2015-10-05 19:20:03.0

Updated: 2018-03-01 17:55:14.0

Pushed: 2018-02-27 19:49:48.0

Homepage: http://deis.io

Size: 535

Language: Makefile

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

| | Deis Workflow is no longer maintained.
Please read the announcement for more detail. | |—:|—| | 09/07/2017 | Deis Workflow v2.18 final release before entering maintenance mode | | 03/01/2018 | End of Workflow maintenance: critical patches no longer merged | | | Hephy is a fork of Workflow that is actively developed and accepts code contributions. |

Prototype Component Repo

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

A Deis component is…

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:

dir my_project
 my_project
rl -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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.