Php: 7.1.8-fpm-alpine does not build

Created on 5 Sep 2017  路  8Comments  路  Source: docker-library/php

Currently, the aforementioned Dockerfile is not buildable - neither with a local Docker instance nor the official, automated build-system.

Error on Dockerhub :

+ export CFLAGS=-fstack-protector-strong -fpic -fpie -O2 CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -pie
+ docker-php-source extract
/bin/sh: docker-php-source: Permission denied

Removing intermediate container 90f5950ae10f

Error on a local docker instance (17.06.1-ce):

+ export CFLAGS=-fstack-protector-strong -fpic -fpie -O2 CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -pie
+ docker-php-source extract
/bin/sh: docker-php-source: not found

Most helpful comment

ERMAGERD - THANK YOU

Its now building unter linux ... Windows Docker still refuses, though

All 8 comments

error on a pretty clean debian system (Linux 3.16.0-0.bpo.4-amd64, Docker 17.03.0-ce) :

/bin/sh: docker-php-source: Permission denied

Perhaps the same as: https://github.com/docker-library/ghost/pull/83#issuecomment-324768379. In other words, are the files executable (chmod +x) before being committed to whatever git repo they are in?

sorry, no - i just did a chmod +x on all of the files and re-tried it on all three docker instances ... same result.

Except for the Linux instance - it now shows

/bin/sh: docker-php-source: not found

I cannot reproduce (and neither can the official images build server, as can be seen by the image tags being pushed) -- do you have an example Git repository which exhibits the issue in a way that can help us reproduce?

_* deleted links *_

Ah, newlines are bad on your shell scripts -- you've got \r\n (which is common on Windows), but need simply \n. There's a tool called dos2unix which you might have, or there's a setting in Git for Windows which can help (see https://help.github.com/articles/dealing-with-line-endings/).

/ # hexdump -C docker-php-source | head -n1
00000000  23 21 2f 62 69 6e 2f 73  68 0d 0a 73 65 74 20 2d  |#!/bin/sh..set -|

(note the 0d 0a, which should simply be 0a)

ERMAGERD - THANK YOU

Its now building unter linux ... Windows Docker still refuses, though

濡傛灉鏄湪windows缂栬緫, 鐒跺悗鍐峀inux 鎵цbuild. 涔熶細瀵艰嚧 docker-php-source: not found
鍥犱负鍦╳indows缂栬緫鐨勬枃浠跺埌Linux涓婁細鍑虹幇 ^M 瀛楃.

Was this page helpful?
0 / 5 - 0 ratings