Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/imageroot/var/lib/nethserver/node/install-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ fi
# ensure the agent python packages are in the default python path
echo "/usr/local/agent/pypkg" >$(${core_dir}/bin/python3 -c "import sys; print(sys.path[-1] + '/pypkg.pth')")

# Build Python venv cache for NS8 libraries
${core_dir}/bin/python3 -mcompileall -q /usr/local/agent/pypkg

echo "Setup registry:"
if [[ ! -f /etc/nethserver/registry.json ]] ; then
echo '{"auths":{}}' > /etc/nethserver/registry.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ if [[ -e "${pyreqfile}" ]]; then
echo "Installing Python virtual environment deps from ${pyreqfile}"
/usr/local/agent/pyenv/bin/pip3 install -r "${pyreqfile}"
fi

# Refresh Python venv cache for NS8 libraries
/usr/local/agent/pyenv/bin/python3 -mcompileall -q /usr/local/agent/pypkg
Loading