Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while building 'workspace' – docker-php-ext-install: not found #2686

Closed
harmakit opened this issue Aug 25, 2020 · 6 comments
Closed

Comments

@harmakit
Copy link

harmakit commented Aug 25, 2020

Description:

When I'm trying to build workspace service with WORKSPACE_INSTALL_XMLRPC=true in .env i got

/bin/sh: 1: docker-php-ext-install: not found
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_XMLRPC} = true ]; then docker-php-ext-install xmlrpc ;fi' returned a non-zero code: 127

Expected Behavior:

Get xml-rpc library installed

Context information:

Output of git rev-parse HEAD

ddad36133a79e6caec011ff2d801d61bd369ba56

Output of docker version

Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:41:33 2020
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a66213fe
  Built:            Mon Jun 22 15:49:27 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker-compose version

docker-compose version 1.26.2, build eefe0d31
docker-py version: 4.2.2
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.1g  21 Apr 2020

System info: Mac, Windows or Linux. Include which disto/version

macos catalina 10.15.6 (19G2021)

Steps to reproduce the issue:

  1. set WORKSPACE_INSTALL_XMLRPC=true, PHP_VERSION=7.3 in .env
  2. run docker-compose up --build workspace
@dkotama
Copy link

dkotama commented Aug 31, 2020

I also get the same result when trying to install php xmlrpc via enabling WORKSPACE_INSTALL_XMLRPC=true
Here are the log result

Step 267/277 : RUN if [ ${INSTALL_XMLRPC} = true ]; then     docker-php-ext-install xmlrpc ;fi
 ---> Running in 6bb797e69798
/bin/sh: 1: docker-php-ext-install: not found
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_XMLRPC} = true ]; then     docker-php-ext-install xmlrpc ;fi' returned a non-zero code: 127

@juancruzmartino
Copy link

Have you tried to build it without ising the cache?

docker-compose build --no-cache workspace

@JulianaApolo
Copy link

Same error here.

@juancruzmartino docker-compose build --no-cache workspace doesn't work for me.

@javoscript
Copy link

javoscript commented Nov 26, 2020

Worked for me by replacing the line with apt-get install:

###########################################################################
# XMLRPC:
###########################################################################

ARG INSTALL_XMLRPC=false

RUN if [ ${INSTALL_XMLRPC} = true ]; then \
-    docker-php-ext-install xmlrpc \
+    apt-get update -yqq && \
+    apt-get install -yqq php-xmlrpc \
;fi



@stale
Copy link

stale bot commented Feb 27, 2021

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Feb 27, 2021
@stale
Copy link

stale bot commented Mar 20, 2021

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants