ProcFile

Card Puncher Data Processing

About

A Procfile 1) is a text file that maps:

  • command
  • to a name

The command are executed by a manager used in the entrypoint

Syntax

name: <command>

where:

  • name is a command name

Example

  • A Procfile with two commands:
web: bundle exec rails server -p $PORT
foo: /app/foo
RUN apt-get update && \
    apt-get install -y \ 
        tmux \ # mandatory for overmind
        wget
# ...

RUN set -ex \
        && wget -q https://github.com/DarthSim/overmind/releases/download/v2.0.0/overmind-v2.0.0-linux-amd64.gz \
        && gunzip overmind-v2.0.0-linux-amd64.gz \
        && chmod +x overmind-v2.0.0-linux-amd64 \
        && mv overmind-v2.0.0-linux-amd64 /usr/local/bin/overmind

ADD Procfile /app/
CMD overmind start

Manager

Overmind

overmind

Because it wraps tmux, you can get a terminal window on any of your running programs.

After connecting to your container via bash

root@30952b25:/# cd /app
root@30952b25:/# overmind connect foo

Foreman

The first one formean





Discover More
Card Puncher Data Processing
Docker - Entrypoint (Main)

in Docker. The entry point script is the script called when creating a container from an image with the docker run command The entrypoint is specified in a dockerfile. When the entrypoint program exits,...
Process Manager

process manager are application that starts and manage processes. They are mostly used as VM entrypoint to start multiple process. Procfile Manager runit: Small supervisord:...



Share this page:
Follow us:
Task Runner