GithubHelp home page GithubHelp logo

byteduty / relayandcontainers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasonsychau/relayandcontainers

0.0 0.0 0.0 15 KB

This is a utility to order (Docker) containers in orchestration

License: Boost Software License 1.0

Shell 0.41% C 98.40% Dockerfile 1.19%

relayandcontainers's Introduction

RelayAndContainers

Please give a star โญ if you have my programs in your projects

This is a small template for a project run on Docker Containers.

Queuing containers is flexible by different orders of the programs in src directory.

The project is given name by the order that is given to your container orchestration.

Programs Description

first

The first program is called to declare when your other services are supposed to wait for the container running first to finish the earlier portions of the container script.

If first is reused, the effect is same as above statement. However, the ports are of importance to not confuse the sought containers.

next-wait

The next-wait program is for only holding a queue. The container that is running next-wait is held behind and until the other program is ready to permiss these next-wait containers to go onwards with their computations. The other programs are named first (the above program) and next-pass. These two programs (first and next-pass) are given the purpose of telling other containers to go when these programs are ready to let them. The waiting programs are (this) next-wait and the next-pass.

next-pass

The next-pass program is to allow a queued container to go. It is called to take over the position of allowing the passing of other containers that are waiting for this next-pass. The position is taken from containers running first or next-pass with the REQUEST_PORT that's given to this call of next-pass.

Example

Most basic example

One container is waiting for another.

Container 1 (l:3528) Container 2 (s:3528)
(running) next-wait
(running) (waiting for Container 1)
first (receiving permission from Container 1)
(queued and granting permissions) (running)

relayandcontainers's People

Contributors

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