GithubHelp home page GithubHelp logo

docker.webhook-to-ms-teams's Introduction

docker.webhook-to-ms-teams

This Dockerfile definition creates a simple and small docker image based on Alpine OS and Python. The size of this image is below 60 megabytes.

Purpose

Different components are required for the project to send a notification from Github events to a channel in MS Teams via Gitub Actions:

  1. a connector (Webhook app) in a MS Teams channel that allows a webhook to receive messages
  2. a Github action in the respective repository, which should send messages to this MS Teams channel
  3. an available system that provides Python to send the message wia http request

The footprint of the image should be as small as possible. The goal is to create an flexible image that is as small as possible, that is quickly built and accessed, and that can be easily managed and maintained.

The size of the created image is currently about 57 megabytes.

How it works

This docker file is the basis for point 3). The image is created and provided on Docker Hub via the docker file provided here. This means that it can be used within the action under 2). The prerequisite for this is that the image is either created manually or - as in this case - automatically created by linked accounts between Docker Hub and Github as soon as the sources of the repository change.

Installation

No special procedures are required to adopt the repository and set it up:

  1. Create a fork of this repository
  2. Link your Docker Hub and Github accounts
  3. create a new repository in Docker Hub and link it to a repository on Github
  4. define build rules for the Docker Hub repository. Example configuration:
    • Source type:Branch
    • Source:master
    • Docker tag:latest
    • Dockerfile location: Dockerfile
    • Build caching: on
  5. Update the github repository to create the Docker Hub Repository

License

MIT License, see LICENSE file.

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.