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

Add VSCode to Datahub image #5742

Closed
wants to merge 2 commits into from
Closed

Add VSCode to Datahub image #5742

wants to merge 2 commits into from

Conversation

balajialg
Copy link
Contributor

Resolves #5716

@balajialg
Copy link
Contributor Author

balajialg commented May 21, 2024

I am not sure why the build fails with the following error message. I will probably wait till you return

Images found: 1
Building image us-central1-docker.pkg.dev/ucb-datahub-2018/user-images/primary-user-image
Trying to fetch parent image us-central1-docker.pkg.dev/ucb-datahub-2018/user-images/primary-user-image:2c04061
Traceback (most recent call last):
  File "/root/repo/venv/lib/python3.9/site-packages/requests/adapters.py", line 532, in send
    conn = self._get_connection(request, verify, proxies=proxies, cert=cert)
  File "/root/repo/venv/lib/python3.9/site-packages/requests/adapters.py", line 400, in _get_connection
    conn = self.poolmanager.connection_from_host(
  File "/root/repo/venv/lib/python3.9/site-packages/urllib3/poolmanager.py", line 246, in connection_from_host
    return self.connection_from_context(request_context)
  File "/root/repo/venv/lib/python3.9/site-packages/urllib3/poolmanager.py", line 258, in connection_from_context
    raise URLSchemeUnknown(scheme)
urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+docker

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/repo/venv/lib/python3.9/site-packages/docker/api/client.py", line 213, in _retrieve_server_version
    return self.version(api_version=False)["ApiVersion"]
  File "/root/repo/venv/lib/python3.9/site-packages/docker/api/daemon.py", line 181, in version
    return self._result(self._get(url), json=True)
  File "/root/repo/venv/lib/python3.9/site-packages/docker/utils/decorators.py", line 44, in inner
    return f(self, *args, **kwargs)
  File "/root/repo/venv/lib/python3.9/site-packages/docker/api/client.py", line 236, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/root/repo/venv/lib/python3.9/site-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "/root/repo/venv/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/root/repo/venv/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/root/repo/venv/lib/python3.9/site-packages/requests/adapters.py", line 534, in send
    raise InvalidURL(e, request=request)
requests.exceptions.InvalidURL: Not supported URL scheme http+docker

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/repo/venv/bin/hubploy", line 33, in <module>
    sys.exit(load_entry_point('hubploy==0.3', 'console_scripts', 'hubploy')())
  File "/root/repo/venv/lib/python3.9/site-packages/hubploy/__main__.py", line 122, in main
    image.build(not args.no_cache)
  File "/root/repo/venv/lib/python3.9/site-packages/hubploy/config.py", line 159, in build
    parent_image_spec = self.fetch_parent_image()
  File "/root/repo/venv/lib/python3.9/site-packages/hubploy/config.py", line 129, in fetch_parent_image
    self.docker.images.pull(parent_image_spec)
  File "/root/repo/venv/lib/python3.9/site-packages/hubploy/config.py", line 74, in docker
    self.__class__._docker = docker.from_env()
  File "/root/repo/venv/lib/python3.9/site-packages/docker/client.py", line 94, in from_env
    return cls(
  File "/root/repo/venv/lib/python3.9/site-packages/docker/client.py", line 45, in __init__
    self.api = APIClient(*args, **kwargs)
  File "/root/repo/venv/lib/python3.9/site-packages/docker/api/client.py", line 197, in __init__
    self._version = self._retrieve_server_version()
  File "/root/repo/venv/lib/python3.9/site-packages/docker/api/client.py", line 220, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker

Exited with code exit status 1

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

Successfully merging this pull request may close these issues.

Add code-server (jupyter-vscode-proxy) to JupyterHub?
2 participants