Giter Club home page Giter Club logo

simple-build-server's Introduction

Simple Build System

Installation

Create a user/password for the password secured area

Run

htpasswd -nb oli the-very-secret-password

and replace the result into redeploy/etc/htpass-redeploy

Define your systems and its access passwords

Edit the file redeploy/etc/redeploy.conf with your systems and their rebuild passwords.

Example:

If you have defined [app-b]=123 you can trigger a rebuild via: http://localhost:8080/cgi-bin/redeploy/exec?authorization=123&type=app-b

Define the build and test scripts

For each key defined in redeploy/etc/redeploy.conf you have to have corresponding directoy in /opt with at least a build.sh Optionally you can define test.sh, get-git-hash.sh and get-git-url.sh.

  • The build.sh file should execute your build.
  • The optional test.shfile should execute your tests.
  • The optional, but recommended get-git-url.sh file simply outputs your souruce repository URL.
  • The optional, but recommended get-git-hash.shfile outputs the last commit hash.

See opt/app-a for an example.

Test, run and integrate

Build a docker image via:

docker build --tag redeploy .

Run it via:

docker run --rm -d -p 8080:80 --name redeploy redeploy

Now you can access the overview page at:

http://localhost:8080/cgi-bin/redeploy/secured/index

User: oli Password: oli

You can either trigger a build on this page or execute http://localhost:8080/cgi-bin/redeploy/exec?authorization=123&type=app-b from your build pipeline.

simple-build-server's People

Contributors

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