Docker build failed for oae-hilary:latest

39 views
Skip to first unread message

zedm...@googlemail.com

unread,
Jul 9, 2018, 9:08:48 AM7/9/18
to Open Academic Environment (OAE)
Hi,

I try to build OAE Hilary with docker but fail every time.

My OS is CENTOS 7.5 and the docker version is 18.03.01 through yum installation (yum install docker-ce). I've followed the instruction on https://github.com/oaeproject/Hilary with regard to directory structure and so on.

I've try with both docker-compose and docker, but both fail with the same message. What am I missing?

Thanks,
Z

With docker (docker build -f Dockerfile -t oae-hilary:latest  .) or docker-compose (docker-compose create --build)

The build failed on step 5/13, with the message:


"
npm verb unlock done using /root/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
npm verb stack Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/npm/node_modules/abbrev'
npm verb cwd /
npm verb Linux 3.10.0-862.3.3.el7.x86_64
npm verb argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--verbose" "--global" "n...@4.6.1"
npm verb node v8.9.4
npm verb npm  v5.6.0
npm ERR! path /usr/local/lib/node_modules/npm/node_modules/abbrev
npm ERR! code ENOTEMPTY
npm ERR! errno -39
npm ERR! syscall rmdir
npm ERR! ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/npm/node_modules/abbrev'
npm verb exit [ -39, true ]

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-07-09T11_12_24_107Z-debug.log
The command '/bin/sh -c npm install --verbose --global n...@4.6.1' returned a non-zero code: 217
"

Miguel Laginha

unread,
Jul 9, 2018, 9:11:23 AM7/9/18
to zedm...@googlemail.com, Open Academic Environment (OAE)
Hi,

Can you move this discussion to gitter? I'll be better able to assist you in a proper chat environment.

Thanks.
_ miguel
--
You received this message because you are subscribed to the Google Groups "Open Academic Environment (OAE)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oae+uns...@apereo.org.
To post to this group, send email to o...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/oae/.

Zed McChen

unread,
Jul 9, 2018, 12:50:44 PM7/9/18
to Miguel Laginha, Open Academic Environment (OAE)


Hi Miguel,

Build completes OK on Ubuntu 18.04.

This is a bit puzzling as docker is supposed to be a self contained container and so it should have built on Centos 7.5 as well.

Thanks for your help.

Zhiming
Reply all
Reply to author
Forward
0 new messages