无头Ubuntu Docker容器中Git凭据配置时libsecret目录为空问题
问题:gnome-keyring缓存Git凭据时目标目录为空的原因
背景
我们正在使用JupyterLab的Git扩展,希望通过gnome-keyring缓存GitHub凭据。按照相关文档及参考资料执行安装命令后,发现/usr/share/doc/git/contrib/credential/libsecret目录为空,导致make命令无内容可执行,该问题并非个例。
相关配置
Dockerfile
FROM jupyter/minimal-notebook:hub-4.0.2 USER 1000 COPY start_up.sh /tmp/ USER root RUN chmod +x /tmp/start_up.sh RUN apt update && apt install -y \ build-essential \ gnome-keyring \ libglib2.0-dev \ libsecret-1-0 \ libsecret-1-dev USER 1000 # other stuff
启动脚本start_up.sh
#!/bin/bash -l dbus-run-session -- sh -c 'echo "foo" | gnome-keyring-daemon --unlock && exec jupyterhub-singleuser "$@"'
实际使用环境变量传递外部密钥
Kubernetes的values.yaml相关配置
singleuser: cmd: /tmp/start_up.sh nodeSelector: "lifecycle" : "jupyterhub"
疑问
我们计划在D-Bus会话中启动jupyterhub-singleuser以确保密钥环后端正常工作,请问为何目标目录未被填充?
内容的提问来源于stack exchange,提问作者dwolfeu
相关产品推荐
相关产品推荐

