nosh2 icon indicating copy to clipboard operation
nosh2 copied to clipboard

Operation not permitted

Open azzok opened this issue 4 years ago • 4 comments

While creating docker build using

docker build -t azzok/docker-nosh2-pub:v1.0 . I get the following error

make: /bin/sh: Operation not permitted make: *** [Makefile:192: ZendAccelerator.lo] Error 127

How to build docker image for nosh2, I was using the following method

  1. Create droplet with default Docker installed in digital ocean
  2. Install Docker composer using following commends

sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-uname -s-uname -m-o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

Then we’ll verify that the installation was successful by checking the version:

docker-compose --version

This will print out the version we installed:

Output docker-compose version 1.21.2, build a133471

  1. Clone repository

git clone https://github.com/shihjay2/nosh2 cd nosh2

  1. run build commend

docker build -t azzok/docker-nosh2-pub:v1.0 .

I get following error

make: /bin/sh: Operation not permitted make: *** [Makefile:192: ZendAccelerator.lo] Error 127 docker

Is any thing missing for above method. Can you help me to create docker build image for nosh2?

azzok avatar Jan 20 '21 15:01 azzok

Looks like you're using a very old version of docker-compose.
See here for the instructions to get the most updated version See here for already build Docker images for NOSH

shihjay2 avatar Jan 20 '21 18:01 shihjay2

I updated docker compose version 1.21.2 to 1.28.0

docker-compose version 1.28.0, build d02a7b1a

But still i am getting same Operation not permitted error

image

azzok avatar Jan 21 '21 05:01 azzok

Not sure if this is a NOSH issue specifically as I cannot replicate this problem with build the Docker image on Arch Linux or Ubuntu - confirm that the DigitalOcean droplet you're building this from has the correct permissions (I see that your terminal is using the root user in the screenshot but the docker command is in the noshuser home directory).

shihjay2 avatar Jan 22 '21 07:01 shihjay2

Same issue with my case? On Mac, Linux same case docker build . shows above error. I used recent versions.

webeng101 avatar Jan 29 '21 23:01 webeng101