Problem with building a custom Docker image from passenger-full:latest

158 views
Skip to first unread message

hipertracker

unread,
Aug 5, 2014, 7:06:42 PM8/5/14
to phusion-...@googlegroups.com
Dockerfile:

FROM phusion/passenger-full:latest
ENV HOME /root
CMD ["/sbin/my_init"]
RUN /build/utilities.sh
RUN /build/ruby2.1.sh
RUN /build/devheaders.sh 
RUN /build/python.sh
RUN /build/nodejs.sh
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

$ sudodocker build -t="hipertracker/docker-passenger" .
Sending build context to Docker daemon 3.072 kB
Sending build context to Docker daemon 
Step 0 : FROM phusion/passenger-full:latest
 ---> 5327fda0d529
Step 1 : ENV HOME /root
 ---> Using cache
 ---> ef3c80bbaa0b
Step 2 : CMD ["/sbin/my_init"]
 ---> Using cache
 ---> f66b9a26b978
Step 3 : RUN /build/utilities.sh
 ---> Using cache
 ---> 762ef77b7dba
Step 4 : RUN /build/ruby2.1.sh
 ---> Using cache
 ---> e8d9caecd890
Step 5 : RUN /build/devheaders.sh
 ---> Running in bfe27eac6fa4
+ apt-get install -y --no-install-recommends libxml2-dev libxslt1-dev
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libxml2-dev
E: Unable to locate package libxslt1-dev
2014/08/06 00:52:27 The command [/bin/sh -c /build/devheaders.sh] returned a non-zero code: 100

Tinco Andringa

unread,
Aug 6, 2014, 3:53:10 AM8/6/14
to phusion-...@googlegroups.com
Hi,

You should put `RUN /buid/devheaders.sh` before the ruby build command.

Kind regards,
Tinco
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phusion-passenger/0b03a9ce-0f76-4637-a654-2d2e10386db6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Phusion | Web application deployment, scaling and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

hipertracker

unread,
Aug 6, 2014, 4:23:00 AM8/6/14
to
No, moving devheaders above the Ruby build have not changed anything. :(

BTW, In first try, I  used https://github.com/phusion/passenger-docker#building as an example  where devheaders are below Ruby build.

Dockerfile:

FROM phusion/passenger-full:latest
ENV HOME /root
CMD ["/sbin/my_init"]
RUN /build/utilities.sh

RUN /build/devheaders.sh
RUN /build/ruby2.1.sh

RUN /build/python.sh
RUN /build/nodejs.sh
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

$ sudo docker build -t="hipertracker/docker-passenger" .
Sending build context to Docker daemon  2.56 kB


Sending build context to Docker daemon
Step 0 : FROM phusion/passenger-full:latest
 ---> 5327fda0d529
Step 1 : ENV HOME /root
 ---> Using cache
 ---> ef3c80bbaa0b
Step 2 : CMD ["/sbin/my_init"]
 ---> Using cache
 ---> f66b9a26b978
Step 3 : RUN /build/utilities.sh
 ---> Using cache
 ---> 762ef77b7dba

Step 4 : RUN /build/devheaders.sh
 ---> Running in 7d4695272f1a


+ apt-get install -y --no-install-recommends libxml2-dev libxslt1-dev
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libxml2-dev
E: Unable to locate package libxslt1-dev

2014/08/06 10:20:07 The command [/bin/sh -c /build/devheaders.sh] returned a non-zero code: 100

Tinco Andringa

unread,
Aug 6, 2014, 4:26:30 AM8/6/14
to hipertracker, phusion-...@googlegroups.com
Ah sorry, I was half awake and read your log wrong. You are missing a
`RUN apt-get update` before that. Apparently that's not done in that
script.

On Wed, Aug 6, 2014 at 10:23 AM, hipertracker <jaro...@zabiello.com> wrote:
> No, moving devheaders above the Ruby build did not change anything. :(
>
> Dockerfile:
>
> FROM phusion/passenger-full:latest
> ENV HOME /root
> CMD ["/sbin/my_init"]
> RUN /build/utilities.sh
> RUN /build/devheaders.sh
> RUN /build/ruby2.1.sh
> RUN /build/python.sh
> RUN /build/nodejs.sh
> RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
>
> $ sudo docker build -t="hipertracker/docker-passenger" .
> Sending build context to Docker daemon 2.56 kB
>
>
> Sending build context to Docker daemon
> Step 0 : FROM phusion/passenger-full:latest
> ---> 5327fda0d529
> Step 1 : ENV HOME /root
> ---> Using cache
> ---> ef3c80bbaa0b
> Step 2 : CMD ["/sbin/my_init"]
> ---> Using cache
> ---> f66b9a26b978
> Step 3 : RUN /build/utilities.sh
> ---> Using cache
> ---> 762ef77b7dba
> Step 4 : RUN /build/devheaders.sh
> ---> Running in 7d4695272f1a
>
> + apt-get install -y --no-install-recommends libxml2-dev libxslt1-dev
> Reading package lists...
> Building dependency tree...
> Reading state information...
> E: Unable to locate package libxml2-dev
> E: Unable to locate package libxslt1-dev
> 2014/08/06 10:20:07 The command [/bin/sh -c /build/devheaders.sh] returned a
> non-zero code: 100
>
>
> On Wednesday, August 6, 2014 8:53:10 AM UTC+1, Tinco Andringa wrote:
>>
Reply all
Reply to author
Forward
0 new messages