Wrap emerge call with keep-alive script

- emerge takes longer than 10 minutes for some jobs to output something
- travis kills builds that do not output something for 10 minutes
- Workaround: add a keep-alive script that echos "RUNNING" every minute for one hour. This should keep the door open long enough for emerge to finish...

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2019-05-03 16:52:15 +02:00
parent ba9cfc95b9
commit 295b7b78f4

View file

@ -7,7 +7,7 @@ FROM gentoo/stage3-x86:latest
# copy the entire portage volume in
COPY --from=portage /usr/portage /usr/portage
RUN emerge -qv sys-libs/readline:0 net-libs/gnutls:0= sys-apps/util-linux dev-util/cmake sys-devel/make dev-vcs/git sys-libs/libfaketime
RUN (CNT=60 ; while [[ ${CNT} -ne 0 ]] ; do echo "RUNNING (${CNT})" ; sleep 60 ; ((CNT--)) ; done ) & emerge -qv sys-libs/readline:0 net-libs/gnutls:0= sys-apps/util-linux dev-util/cmake sys-devel/make dev-vcs/git sys-libs/libfaketime ; kill %1
# Setup language environment
ENV LC_ALL en_US.UTF-8