nomad-coe / nomad

NOMAD lets you manage and share your materials science data in a way that makes it truly useful to you, your group, and the community.
https://nomad-lab.eu
Apache License 2.0
64 stars 14 forks source link

Unable to run Dockerfile #103

Closed saurabhgayaliexcelra closed 2 months ago

saurabhgayaliexcelra commented 2 months ago

Short description When I run docker build . it shows an error. Below is part of log file. Please find detailed log file as an attachment.

00original-build.log ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install --yes --quiet --no-install-recommends libgomp1 libmagic1 curl zip unzip && curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install --yes --quiet --no-install-recommends nodejs npm && rm -rf /var/lib/apt/lists/* && npm install -g configurable-http-proxy && npm uninstall -g npm" did not complete successfully: exit code: 100

lauri-codes commented 2 months ago

Thanks @saurabhgayaliexcelra for reporting this. I can indeed reproduce this on my machine, althought it is not showing up on our CI machines when they build the image. We will have a look.

lauri-codes commented 2 months ago

Update in the nodejs distributions caused installation problems with npm. This has now been fixed in the develop branch and will be a part of the next stable releases. Please re-open if you still encounter any problems.

saurabhgayaliexcelra commented 2 months ago

[Issue not resolved]

The develop branch is the default branch. The problem is still there. The error is now on Yarn build command.

ERROR: failed to solve: process "/bin/sh -c yarn run build" did not complete successfully: exit code: 1

Attached error log 00DevErrorlog00.log

lauri-codes commented 2 months ago

On line 2305 in your logs it says that one of our git submodules is missing. You can initialize the submodules by running the following command in the repository folder:

git submodule update --init --recursive

After this id done, you can try building the image again.

Your use case is a bit special, since it looks like you are cloning the source code and building the image manually. Note that if you intend to just try out the image, we have pre-built docker images here (e.g. the image corrresponding to develop branch is available under the name gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-fair:develop) , and that for development purposes it is easier to follow our development setup docs.