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

Docker build failed #784

Open
weiwei2027 opened this issue Nov 20, 2023 · 1 comment
Open

Docker build failed #784

weiwei2027 opened this issue Nov 20, 2023 · 1 comment

Comments

@weiwei2027
Copy link

weiwei2027 commented Nov 20, 2023

hellow~,I tried to use the code of the master branch to build the docker image, but it failed. I tried the code of 1.0.0 again and got the same error. Can anyone help me?
OS: Ubuntu 20.04
docker: 24.0.7

terminal logs:

45.92 Traceback (most recent call last):
45.92   File "utilities/install.py", line 242, in <module>
45.92     geppetto_branch=args.geppetto_version,
45.92   File "utilities/install.py", line 206, in main
45.92     execute(cmd=['yarn', 'install', '--immutable'], cwd=WEBAPP_DIR)
45.92   File "utilities/install.py", line 38, in execute
45.92     exit_code = subprocess.call(cmd, cwd=cwd, *args, **kwargs)
45.92   File "/opt/conda/lib/python3.7/subprocess.py", line 339, in call
45.92     with Popen(*popenargs, **kwargs) as p:
45.92   File "/opt/conda/lib/python3.7/subprocess.py", line 800, in __init__
45.92     restore_signals, start_new_session)
45.92   File "/opt/conda/lib/python3.7/subprocess.py", line 1551, in _execute_child
45.92     raise child_exception_type(errno_num, err_msg, err_filename)
45.92 FileNotFoundError: [Errno 2] No such file or directory: 'yarn': 'yarn'
------
Dockerfile:50
--------------------
  48 |     RUN jupyter serverextension enable --py --sys-prefix jupyter_geppetto
  49 |     
  50 | >>> RUN python utilities/install.py ${BUILD_ARGS} --workspace $WORKSPACE_VERSION --no-test
  51 |     
  52 |     RUN jupyter labextension disable @jupyterlab/hub-extension
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c python utilities/install.py ${BUILD_ARGS} --workspace $WORKSPACE_VERSION --no-test" did not complete successfully: exit code: 1
@aranega
Copy link
Member

aranega commented Nov 21, 2023

Hi @weiwei2027 , thanks for your ticket. To overcome the issue you have, you need to add a parameter in the BUILD_ARGS on your command line: the --npm-skip option.

# Considering that your in the folder where is the Dockerfile
docker build -t netpyne-ui . --build-arg BUILD_ARGS="--npm-skip" 

Also, if you are building the development version of NetPyNE-UI, then you should currently install the development version of NetPyNE also:

# Considering that your in the folder where is the Dockerfile
docker build -t netpyne-ui . --build-arg BUILD_ARGS="--npm-skip --netpyne development" 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants