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-compose build failure under proxy #12

Open
yosshiki opened this issue Oct 1, 2020 · 0 comments
Open

docker-compose build failure under proxy #12

yosshiki opened this issue Oct 1, 2020 · 0 comments

Comments

@yosshiki
Copy link

yosshiki commented Oct 1, 2020

I couldn't docker-compose at step7 "Starting OperationHub".
probably because the building container cannot run "git clone" over the proxy.

how can I build operation hub under the proxy?

Logs is below.

docker-compose build
---
Building jupyterhub
Step 1/12 : FROM jupyterhub/jupyterhub:1.0.0
...
Step 5/12 RUN pip --no-cache-dir install git+https://github.com/NII-cloud-operation/Jupyter-LC_nblineage.git
...
  Running command git clone -q https://github.com/NII-cloud-operation/Jupyter-LC_nblineage.git /tmp/pip-req-build-m32fmpqv
  fatal: unable to access 'https://github.com/NII-cloud-operation/Jupyter-LC_nblineage.git' : server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
ERROR: Command "git clone -q https://github.com/NII-cloud-operation/Jupyter-LC_nblineage.git /tmp/pip-req-build-m32fmpqv" failed with error code 128 in None
ERROR: Service ' jupyterhub' failed to build: The command '/bin/sh -c pip --no-cache-dir install git+https://github.com/NII-cloud-operation/Jupyter-LC_nblineage.git' returned a non-zero code: 1

I tried adding these option but the result was the same.
--build-arg http_proxy=http://(myproxyserver):(port)
--build-arg https_proxy=http://(myproxyserver):(port)
--build-arg GIT_SSL_NO_VERIFY=1
--build-arg GIT_SSL_VERSION=tlsv1.2

I confirmed myproxy has no problem because I could run 'pip install' and 'git clone' from hostOS under the proxy.

Thank you.

mnagaku added a commit to mnagaku/OperationHub that referenced this issue Aug 15, 2024
Since it now specifies the old JupyterHub 2.3, a build error will occur if setuptools is the latest. If you revert to 65.4.1, you can build it and it will work without any problems.

Since the build error occurs at the same location, the following problem may also be fixed.

NII-cloud-operation#12
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

1 participant