Giter Site home page Giter Site logo

runner's Introduction

Runner

用来运行 builder 制作的tgz文件,每一个源码构建的应用都是由runner镜像加载运行的。

Runner 运行原理

通过标准输入,文件挂载或者URL的形式将 压缩后 的应用程序(代码,运行时)传入到Runner镜像并运行。镜像的入口文件会读取Procfile中的内容并运行。

如何使用 Runner

Rainbond 安装后该镜像自动在计算节点拉取,不需要人工干预。下面主要介绍手动通过runner镜像运行builder生成的压缩包的场景。

  • 可以通过标准输入将压缩包载入到runner镜像,并运行:
$ cat myslug.tgz | docker run -i -a stdin -a stdout goodrain.me/runner
  • 可以通过挂载 slug 包的方式运行:
$ docker run -dti --name=runner \
-v path/to/myslug.tgz:/tmp/slug/slug.tgz \
-p 5000:5000 \
goodrain.me/runner

压缩包的内容会在runner容器启动后解压到 /app 目录,在正式启动应用程序之前,会先导入代码目录下 .profile.d 中的文件,这里会有应用程序所需要的环境变量。

最终,runner镜像的引导程序会读取代码目录下的Procfile文件,并启动应用程序。如果用户代码根目录中没有该文件,在builer构建时会根据用户在创建应用向导中的选择自动生成。

runner's People

Contributors

dazuimao1990 avatar ysicing avatar zhouyq avatar yangkaa avatar poneding 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.