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

"CONDA_DIR" #3

Closed
bjornjorgensen opened this issue Sep 6, 2023 · 10 comments
Closed

"CONDA_DIR" #3

bjornjorgensen opened this issue Sep 6, 2023 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@bjornjorgensen
Copy link

I don't think this will work

cnf_file = os.path.join(os.getenv("CONDA_DIR", "/usr/lib"), "ssl", "openssl.cnf")

@benz0li
Copy link
Member

benz0li commented Sep 6, 2023

It does.

In Python:

>>> import os
>>> cnf_file = os.path.join(os.getenv("CONDA_DIR", "/usr/lib"), "ssl", "openssl.cnf")
>>> cnf_file
'/usr/lib/ssl/openssl.cnf'

In Terminal

cat /usr/lib/ssl/openssl.cnf

#
# OpenSSL example configuration file.
# See doc/man5/config.pod for more info.
#
# This is mostly being used for generation of certificate requests,
# but may be used for auto loading of providers
...

@bjornjorgensen
Copy link
Author

ok, so it defaults to "/usr/lib" but what about removing "CONDA_DIR" ?

@benz0li
Copy link
Member

benz0li commented Sep 6, 2023

ok, so it defaults to "/usr/lib" but what about removing "CONDA_DIR" ?

Will do so when updating to JupyterLab 4.x. Also including jupyter/docker-stacks#1984.

I have not yet updated to JupyterLab 4.x, because some essential extensions are not yet compatible.
ℹ️ See jupyterlab/jupyterlab#14590 for more information.

@benz0li benz0li self-assigned this Sep 6, 2023
@benz0li benz0li added the enhancement New feature or request label Sep 6, 2023
@bjornjorgensen
Copy link
Author

ok, what are those essential extensions?

@benz0li
Copy link
Member

benz0li commented Sep 6, 2023

ok, what are those essential extensions?

  • jupyter-server-proxy
  • jupyterlab-git
  • jupyterlab-lsp

See

## Install JupyterLab
RUN export PIP_BREAK_SYSTEM_PACKAGES=1 \
&& pip install \
jupyter-server-proxy \
jupyterhub==${JUPYTERHUB_VERSION} \
jupyterlab==${JUPYTERLAB_VERSION} \
jupyterlab-git \
jupyterlab-lsp \
notebook \
nbconvert \
python-lsp-server[all] \

@bjornjorgensen
Copy link
Author

ok, thank you.
Well, my idea it to use debian testing or unstable, have it with python 3.12 RC (for testing) and java 21. Remove coder-server and only have a basic jupyterlab and not having GPU stuff. I use Visual Studio Code Insiders as IDE and the docker files are on a server. So I connect to it with remote ssh.

@benz0li
Copy link
Member

benz0li commented Sep 6, 2023

Well, my idea it to use debian testing or unstable, have it with python 3.12 RC (for testing) and java 21. Remove coder-server and only have a basic jupyterlab and not having GPU stuff. I use Visual Studio Code Insiders as IDE and the docker files are on a server. So I connect to it with remote ssh.

Then, it is better you build on https://github.com/b-data/python-docker-stack.

Be aware of https://github.com/b-data/python-docker-stack/blob/main/ver/latest.Dockerfile#L9 and that there is neither
glcr.b-data.ch/python/psi/3.12.0rc<n>/debian:testing nor
glcr.b-data.ch/python/psi/3.12.0rc<n>/debian:unstable

@benz0li
Copy link
Member

benz0li commented Sep 6, 2023

Then, it is better you build on https://github.com/b-data/python-docker-stack.

That is what I do for the Data Science Dev Containers: https://github.com/b-data/data-science-devcontainers

@benz0li
Copy link
Member

benz0li commented Oct 23, 2023

Will do so when updating to JupyterLab 4.x. Also including jupyter/docker-stacks#1984.

Not including jupyter/docker-stacks#2006 and jupyter/docker-stacks#2007, though.
👉 I.e. not going to migrate startup scripts and hooks to Python.

@benz0li
Copy link
Member

benz0li commented Nov 23, 2023

Closed by 536a918

@benz0li benz0li closed this as completed Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants