Skip to content

docker-compose build failure under proxy #12

@yosshiki

Description

@yosshiki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions