What is a ProcFile?

Card Puncher Data Processing

About

A Procfile 1) is a text file that maps:

The command are executed by a manager used in the entrypoint

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

Syntax

name: <command>

where:

  • name is a command name

Manager

Process Manager that supports proc file.

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

cd /app
overmind connect foo

Foreman

The first one formean





Discover More
Card Puncher Data Processing
How to start multiple processes in Docker?

To run multiple services in a single container there are multiple ways with a basic script via a process manager With a script: you start any number of programs in the background, and you...
What is a Process Manager? (aka supervisor)

process manager are applications that starts and manage processes. They are mostly used as VM entrypoint to start multiple processes. init systems are process manager. overmind...
Card Puncher Data Processing
What is the Entrypoint (Main) in Docker?

This page is the main entry in Docker. The entry point script is the script called when creating a container from an image with the docker run command When the entry point program exits, the VM is stopped...



Share this page:
Follow us:
Task Runner