Subject: | Failed build with Docker |
Date: | Mon, 26 Feb 2018 06:57:18 -0500 |
To: | bug-forks-super [...] rt.cpan.org |
From: | gibson <gibson [...] skysquad.net> |
Hi,
I wanted to deploy my app using Docker, but Forks::Super cant be built in
such environment.
Using MacOS 10.13.3 (latest), with Docker for Mac 17.12.0-ce-mac49 (21995)
(latest).
I have tried with two different Docker images.
First one is official perl:5.26.1 image. Dockerfile:
---cut-here---
FROM perl:5.26.1
RUN cpanm \
--verbose \
--configure-timeout 3600 \
--build-timeout 3600 \
--test-timeout 7200 \
Forks::Super
---cut-here---
Second is official ubuntu:16.04 image with custom commands. Dockerfile:
---cut-here---
FROM ubuntu:16.04
ARG PERL_VERSION
SHELL ["/bin/bash", "-c"]
RUN apt update && \
apt-get -y install apt-utils && \
apt-get -y full-upgrade && \
apt-get -y install curl perl bzip2 build-essential && \
curl -L https://install.perlbrew.pl | bash && \
source ~/perl5/perlbrew/etc/bashrc && \
echo 'source ~/perl5/perlbrew/etc/bashrc' | tee -a ~/.bashrc && \
perlbrew install perl-$PERL_VERSION && \
perlbrew switch perl-$PERL_VERSION && \
perlbrew install-cpanm && \
rm -fr /var/lib/apt/lists/* && \
rm -fr /root/perl5/perlbrew/build/*
RUN ~/perl5/perlbrew/bin/cpanm \
--verbose \
--configure-timeout 3600 \
--build-timeout 3600 \
--test-timeout 7200 \
Forks::Super
---cut-here---
Both builds end on Forks::Super creating system-limits file. Both builds
kill running container.
Last output from F::S build:
---cut-here---
Gathering information on current system linux.5.026001
and creating Forks::Super::SysInfo package.
--------------------------------------------------
Creating Forks/Super/SysInfo.pm file
SysInfo.pm.PL: creating system-limits file.
The command '/bin/sh -c cpanm --verbose --configure-timeout 3600
--build-timeout 3600 --test-timeout 7200 Forks::Super' returned a
non-zero code: 137
---cut-here---
Everything above is from my local, dev machine.
Out of curiosity I tried building the same image on the Digital Oceans
droplet with pre-installed Docker (base Ubuntu 16.04). That would be my
deploy target for final app.
Result is the same, although cpanm returns a code: 143 (also at creating
system-limits file).
If you need any additional informations or tests - let me know.
Thanks,
gibson