Skip to content

Commit

Permalink
Merge pull request trinodb#14 from chancez/add_tini
Browse files Browse the repository at this point in the history
Dockerfile*: Add tini to Dockerfiles
  • Loading branch information
openshift-merge-robot authored Aug 2, 2019
2 parents 80dfb74 + 9ea6069 commit 2eb6d6a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ RUN yum -y install --setopt=skip_missing_names_on_install=False \
&& yum clean all \
&& rm -rf /var/cache/yum

ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini

RUN mkdir -p /opt/presto

ENV PRESTO_VERSION 315
Expand Down Expand Up @@ -132,7 +136,7 @@ USER 1003
EXPOSE 8080
WORKDIR $PRESTO_HOME

CMD ["bin/launcher", "run"]
CMD ["tini", "--", "bin/launcher", "run"]

LABEL io.k8s.display-name="OpenShift Presto" \
io.k8s.description="This is an image used by operator-metering to to install and run Presto." \
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile.okd
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ RUN yum -y install --setopt=skip_missing_names_on_install=False \
&& yum clean all \
&& rm -rf /var/cache/yum

ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini

RUN mkdir -p /opt/presto

ENV PRESTO_VERSION 315
Expand Down Expand Up @@ -132,7 +136,7 @@ USER 1003
EXPOSE 8080
WORKDIR $PRESTO_HOME

CMD ["bin/launcher", "run"]
CMD ["tini", "--", "bin/launcher", "run"]

LABEL io.k8s.display-name="OpenShift Presto" \
io.k8s.description="This is an image used by operator-metering to to install and run Presto." \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.rhel
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN yum -y install --setopt=skip_missing_names_on_install=False \
java-1.8.0-openjdk-devel \
less \
rsync \
tini \
faq \
&& yum clean all \
&& rm -rf /var/cache/yum
Expand Down Expand Up @@ -81,7 +82,7 @@ USER 1003
EXPOSE 8080
WORKDIR $PRESTO_HOME

CMD ["bin/launcher", "run"]
CMD ["tini", "--", "bin/launcher", "run"]

LABEL io.k8s.display-name="OpenShift Presto" \
io.k8s.description="This is an image used by operator-metering to to install and run Presto." \
Expand Down

0 comments on commit 2eb6d6a

Please sign in to comment.