GithubHelp home page GithubHelp logo

swi-infra / docker-git-autoupdate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from corfr/docker-git-autoupdate

0.0 3.0 2.0 10 KB

A container serving an auto-updated repository as a volume

Shell 92.80% Dockerfile 7.20%

docker-git-autoupdate's Introduction

Git auto-updating container

Image: corfr/git-autoupdate

This image:

  • takes a GIT_URL, that it clones and expose as a volume (/git)
  • polls from the git remote periodically

Arguments:

  • GIT_URL: provided as this to git clone
  • POLLING_FREQ: polling frequency as given to cron, something like "*/5 * * * *", default to 5 minutes
  • SSH_KEY: can be used to provide an SSH key to authenticate against remote repository
  • VOLUME_PATH: if you're not happy with the default volume /git

Warning:

  • SSH_KEY expect as base64'd string
  • In case URL is ssh (ssh:// or git@), the image will automatically accept the remote key.

For instance you can deploy this as a systemd unit to serve an always up-to-date repository to other services.

Sample usages:

  • HTTP repository:
docker run \
            --rm \
            --name legato-docs
            -e GIT_URL=https://github.com/legatoproject/legato-docs.git \
            corfr/git-autoupdate
  • SSH repository:
docker run \
            --rm \
            --name legato-docs
            -e [email protected]:legatoproject/legato-docs.git \
            -e SSH_KEY="$(cat ~/.ssh/id_rsa | base64)" \
            corfr/git-autoupdate
  • Expose repository as another name:
docker run \
            --rm \
            --name legato-docs
            -e GIT_URL=https://github.com/legatoproject/legato-docs.git \
            -e VOLUME_PATH=/legato-docs \
            -v /legato-docs \
            corfr/git-autoupdate

docker-git-autoupdate's People

Contributors

corfr avatar jnorthway-swi avatar

Watchers

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