Giter VIP home page Giter VIP logo

apprunner's Introduction

(Heroku-ish) Slug Runner

A container image that runs Heroku-like slugs produced by slugbuilder.

What does it do exactly?

It takes a gzipped tarball of a "compiled" application via stdin or from a URL, letting you run a command in that application environment.

Using Slug Runner

First, you need Docker. Then you can either pull the image from the public index:

$ docker pull elasticio/apprunner

Or you can build from this source:

$ docker build -t elasticio/apprunner .

When you run the container, it always expects an app slug to be passed via stdin or by giving it a URL using the SLUG_URL environment variable. Lets run a Rake task that our app uses, attaching to stdout:

$ cat myslug.tgz | docker run -i -a stdin -a stdout elasticio/apprunner rake mytask

We can also load slugs using the SLUG_URL environment variable. This is currently the only way to run interactively, for example running Bash:

$ docker run -e SLUG_URL=http://example.com/slug.tgz -i -t elasticio/apprunner /bin/bash

Commands are run in the application environment, in the root directory of the application, with any default environment variables.

To provide .env variables to started image, use "--env-file" option

$ cat myslug.tgz | docker run -i -a stdin -a stdout -a stderr --env-file .env elasticio/apprunner bash sail.sh

apprunner's People

Contributors

anton-kotenko avatar bolgovr avatar ghaiklor avatar ivanoksak avatar pnedelko avatar zuker avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apprunner's Issues

Remove unnecessary warning messages

The warning messages we get on our platform that looks like

[2019-11-18 12:40:20.421]: node: /usr/lib/libstdc++.so.6: no version information available (required by node)
[2019-11-18 12:40:20.421]: node: /usr/lib/libstdc++.so.6: no version information available (required by node)
[2019-11-18 12:40:20.421]: node: /usr/lib/libstdc++.so.6: no version information available (required by node)
[2019-11-18 12:40:20.421]: node: /usr/lib/libstdc++.so.6: no version information available (required by node)
[2019-11-18 12:40:20.421]: node: /usr/lib/libstdc++.so.6: no version information available (required by node)
[2019-11-18 12:40:20.421]: node: /usr/lib/libstdc++.so.6: no version information available (required by node)
[2019-11-18 12:40:20.421]: node: /usr/lib/libstdc++.so.6: no version information available (required by node)
[2019-11-18 12:40:20.421]: node: /usr/lib/libstdc++.so.6: no version information available (required by node)

every time a component runs clutters our logs a lot. Since it provides no value to the user, it is worth investigating how to fix this issue, or make it not display in the platform logs.

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.