Hey everyone,
It is my first time posting also new to jupyter. I have an issue where i need to set the environment variables globally for all users to let them use ros without adding 20 lines of code near the top.
This is my config. yaml
proxy:
secretToken: “28c904976995157f71a3067f9577eb3401419c58d4e5f12da654337341893a18”
singleuser:
extraEnv:
GRANT_SUDO: “yes”
NOTEBOOK_ARGS: “–allow-root”
uid: 0
cmd: start-singleuser.sh
defaultUrl: “/lab”
image:
name: monyeinthebank/taigadevrepo
tag: latest
hub:
extraFiles:
# The file key is just a reference that doesn’t influence the
# actual file name.
myconfig:
# mountPath is required and must be the absolute file path.
mountPath: /usr/local/etc/jupyterhub/jupyterhub_config.d/rosload.py
# Choose one out of the three ways to represent the actual file
# content: data, stringData, or binaryData.
#
# data should be set to a mapping (dictionary). It will in the
# end be rendered to either YAML, JSON, or TOML based on the
# filename extension that are required to be either .yaml, .yml,
# .json, or .toml.
#
# If your content is YAML, JSON, or TOML, it can make sense to
# use data to represent it over stringData as data can be merged
# instead of replaced if set partially from separate Helm
# configuration files.
#
# Both stringData and binaryData should be set to a string
# representing the content, where binaryData should be the
# base64 encoding of the actual file content.
#
stringData:
config:
%set_env "ROS_VERSION"="1"
%set_env "PKG_CONFIG_PATH"="/opt/ros/noetic/lib/pkgconfig"
%set_env "ROS_PYTHON_VERSION"="3"
%set_env "ROS_PACKAGE_PATH"="/opt/ros/noetic/share"
%set_env "ROS_ETC_DIR"="/opt/ros/noetic/etc/ros"
%set_env "CMAKE_PREFIX_PATH"="/opt/ros/noetic"
%set_env "PYTHONPATH"="/opt/ros/noetic/lib/python3/dist-packages"
%set_env "ROS_MASTER_URI"="http://localhost:11311"
%set_env "LD_LIBRARY_PATH"="/opt/ros/noetic/lib"
%set_env "PATH"="/opt/ros/noetic/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
%set_env "ROS_ROOT"="/opt/ros/noetic/share/ros"
%set_env "ROS_DISTRO"="noetic"
auth:
whitelist:
users:
- jim
- monye
- not_the_chinese_government
admin:
users:
- adminuser1
- monye
Any help or direction would be much appreciated thank you.