Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

add tini #383

Merged
merged 2 commits into from
Dec 19, 2016
Merged

add tini #383

merged 2 commits into from
Dec 19, 2016

Conversation

vixns
Copy link
Contributor

@vixns vixns commented Dec 16, 2016

No description provided.

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@brndnmtthws brndnmtthws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: if we're using tinit, do we still also need runit?

@@ -8,11 +8,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
runit \
socat \
&& rm -rf /var/lib/apt/lists/*
gpg \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't these be part of the build deps? I don't think they're required at runtime.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
updated.

@@ -29,22 +34,24 @@ RUN set -x \
wget \
' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get install -y --no-install-recommends $buildDeps \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

# Install Python packages with --upgrade so we get new packages even if a system
# package is already installed. Combine with --force-reinstall to ensure we get
# a local package even if the system package is up-to-date as the system package
# will probably be uninstalled with the build dependencies.
&& pip3 install --no-cache --upgrade --force-reinstall -r /marathon-lb/requirements.txt \
&& /marathon-lb/build-haproxy.sh \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@vixns
Copy link
Contributor Author

vixns commented Dec 17, 2016

tini and runit have different purposes. tini only prevent zombies in isolated environments, while runit is a (great) service supervisor.

@brndnmtthws
Copy link
Contributor

test this please

@brndnmtthws brndnmtthws merged commit 85f1421 into d2iq-archive:master Dec 19, 2016
@vixns vixns deleted the zombies_reaper branch December 19, 2016 22:07
@robsonpeixoto
Copy link
Contributor

Why not use docker run --init ?

@vixns
Copy link
Contributor Author

vixns commented Jan 31, 2017

Because we are using the mesos containerizer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants