Question
Henrique Dias · Sep 23, 2020

Error in docker-compose build

Hi everyone, 

I'm trying to build my project on a Linux machine using Docker.

In my development environment, I use Windows 10 Pro with Docker Desktop version 2.3.0.5. Everything works fine, and the docker-compose build runs flawlessly.

But, when I tried to run the same project in a Linux. 
Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1025-azure x86_64), docker --version
Docker version 19.03.6, build 369ce74a3c

I'm getting the following error: 
ERROR: Service 'iris' failed to build: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/irissession.sh\": permission denied": unknown

I also asked for a friend of mine who tried the same procedure on a Macbook, and the results were the same error that I got on Linux.

Have anyone face the same problem before? If so, any advice?

The steps that I got during my docker-compose build:

diashenrique@npm-iris:~/npm-iris$ docker-compose build
Building iris
Step 1/15 : ARG IMAGE=store/intersystems/iris-community:2020.1.0.199.0
Step 2/15 : ARG IMAGE=intersystemsdc/iris-community:2020.1.0.209.0-zpm
Step 3/15 : ARG IMAGE=intersystemsdc/iris-community:2020.2.0.196.0-zpm
Step 4/15 : ARG IMAGE=intersystemsdc/iris-community:2020.3.0.200.0-zpm
Step 5/15 : FROM $IMAGE
 ---> 04bc22a13df1
Step 6/15 : USER root
 ---> Using cache
 ---> 8af76508188c
Step 7/15 : WORKDIR /opt/irisapp
 ---> Using cache
 ---> 278a8bde8b39
Step 8/15 : RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} .
 ---> Using cache
 ---> 1d21cd909da0
Step 9/15 : COPY irissession.sh /
 ---> Using cache
 ---> 3861504d7f6c
Step 10/15 : USER ${ISC_PACKAGE_MGRUSER}
 ---> Using cache
 ---> a894db3304f5
Step 11/15 : COPY Installer.cls .
 ---> Using cache
 ---> 4d4797768d2f
Step 12/15 : COPY src src
 ---> Using cache
 ---> 10b002f74924
Step 13/15 : SHELL ["/irissession.sh"]
 ---> Using cache
 ---> 75d1cdb90129
Step 14/15 : RUN     do $SYSTEM.OBJ.Load("Installer.cls", "ck")     set sc = ##class(App.Installer).setup()
 ---> Running in 6c59a3cabd47
ERROR: Service 'iris' failed to build: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/irissession.sh\": permission denied": unknow
00
1 0 2 214
Log in or sign up to continue

Replies

Hi Henrique!

It's a known issue. You need to add the attribute which disappears after check in and commit  from Windows.

I made a fix to the Full-stack repo