GithubHelp home page GithubHelp logo

harness-community / python-pipeline-samples Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 142.0 1.64 MB

License: MIT License

Python 37.79% Dockerfile 27.63% HTML 34.58%
pipeline continuous-integration kubernetes harness

python-pipeline-samples's Introduction

Python Sample Pipelines in Harness

Python Pipeline Samples

Introduction

This repository is a home for snippets of YAML code and a sample hello world server for the Harness CI Community.

Layout

Tutorial
Requirements
Harness Sample YAML
Getting Started
Workflow
Build Instructions

Getting Started

Use this README to get started with our sample pipeline repository for Python. This guide outlines the basics of getting started with the Harness CI and provides a full code sample for you to try out. This sample doesn’t include configuration options, for in-depth steps and configuring the pipeline for example using triggers or using our templates see the Pipeline Configuration Docs.

Here we have built a simple two-stage CI Pipeline in Harness. Setting up and running the Pipeline will take about 30 minutes. The Pipeline will build and run a unit test on a sample nodejs repository, upload the artifact to Docker Hub, and then run integration tests. You can use publicly-available code, images, and your GitHub and Docker Hub accounts.

Workflow

  • Use a Kubernetes cluster to build a farm.
  • Build the code and run unit tests in the build farm.
  • Package the app as a Docker image and upload it to Docker Hub.
  • Pull the uploaded image to the build farm as a Background Task. Check out more about background tasks here
  • Run an integration test against the sample app.

Graphical Summary

alt text

Docs

Pipeline Creation & Build Set-up
Configuring the infrastructure & setting up Build & Run Unit Test stage
Build & Push Image to Docker
Create Integration Stage and Run the Pipeline

Contributor License Agreement

In order to clarify the intellectual property license granted with Contributions from any person or entity, Harness Inc. ("Harness") must have a Contributor License Agreement ("CLA") on file that has been read, accepted, and followed by each contributor, indicating an agreement to the CLA terms located here. This license is for your protection as a Contributor as well as the protection of Harness; it does not change your rights to use your own Contributions for any other purpose.

Code of Conduct

All users and contributors of the Harness community should adhere to the following Code of Conduct!

Communication

Refer Harness Community Communications Guide to interact with the wider community users/contributors, join slack workgroups to get help/help other users and create topics in community.harness.io

License

MIT License.

See COPYING for more information.

python-pipeline-samples's People

Contributors

codewdhruv avatar krishi0408 avatar ompragash avatar pratixingh avatar shruthigkini avatar shruthihubb avatar

Stargazers

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